/* The shared screen edition uses the project's local typefaces and theme palette. */
@media screen {
  :root {
    --ruling: color-mix(in srgb, var(--gold) 43%, var(--line));
    --sheet: color-mix(in srgb, var(--gunmetal) 76%, var(--obsidian));
  }

  .site-head {
    border-bottom-color: var(--line-strong);
  }

  .site-head__inner > .brand {
    min-height: 48px;
  }

  .nav-items > a:not(.nav-cta) {
    font-weight: 550;
    letter-spacing: .012em;
    text-transform: none;
  }

  .nav-items > a:not(.nav-cta):hover {
    text-decoration: underline;
    text-underline-offset: .34em;
  }

  .nav-items > a[aria-current="page"] {
    font-weight: 700;
  }

  .nav-toggle, .r13-theme-toggle {
    min-width: 44px;
  }

  .home-intro,
  .page-hero.portrait-hero,
  .gallery-intro {
    background-color: var(--obsidian);
    background-image: linear-gradient(90deg, var(--field-grid) 1px, transparent 1px);
    background-position: center;
    background-size: clamp(5rem, 12.5vw, 13rem) 100%;
  }

  .home-byline,
  .page-hero.portrait-hero .portrait-copy .eyebrow {
    font: 600 .78rem/1.5 var(--mono);
    letter-spacing: .08em;
  }

  .home-intro__copy, .portrait-copy {
    min-width: 0;
  }

  .home-intro__copy .home-intro__lead {
    font-size: clamp(1.04rem, 1.27vw, 1.23rem);
    line-height: 1.6;
  }

  .page-hero.portrait-hero .portrait-copy p:not(.eyebrow) {
    max-width: 50ch;
  }

  .founder-image figcaption {
    border-bottom-color: var(--ruling);
    gap: 0 .65rem;
    line-height: 1.4;
  }

  .founder-image figcaption a,
  .home-principal,
  .site-foot__links a,
  .case-disclosure summary {
    min-height: 44px;
  }

  .home-principal {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    color: var(--white);
    font: 550 .98rem/1.45 var(--sans);
    text-decoration: underline;
    text-decoration-color: var(--gold);
    text-underline-offset: .24em;
  }

  .home-orientation {
    background: var(--sheet);
    border-block: 1px solid var(--ruling);
  }

  .home-orientation .wrap,
  .home-orientation ul {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
  }

  .home-orientation ul {
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .home-orientation li {
    min-width: 0;
    margin: 0;
  }

  .home-orientation a {
    position: relative;
    display: grid;
    align-content: center;
    min-height: 52px;
    height: 100%;
    gap: .2rem;
    padding: .95rem 2.65rem .95rem 1rem;
    border-inline-start: 1px solid var(--line);
    color: var(--white);
    font: 600 1.03rem/1.27 var(--sans);
    text-decoration: none;
  }

  .home-orientation a::after {
    content: "";
    position: absolute;
    right: 1rem;
    top: 50%;
    width: .43rem;
    height: .43rem;
    border: solid var(--gold);
    border-width: 1.5px 1.5px 0 0;
    transform: translateY(-50%) rotate(45deg);
  }

  .home-orientation a > span:not(:only-child) {
    color: var(--muted);
    font: 400 .91rem/1.4 var(--sans);
  }

  .home-orientation a:is(:hover, :focus-visible) {
    background: var(--panel);
    text-decoration: underline;
    text-underline-offset: .19em;
  }

  .home-principal:hover, .site-foot__links a:hover {
    color: var(--ice);
  }

  .section-heading, .r13-section-head {
    row-gap: .9rem;
    margin-bottom: clamp(1.55rem, 3.4vw, 3.4rem);
  }

  .section-heading h2, .r13-section-head h2,
  .home-section-heading h2, .gallery-section-heading h2 {
    text-wrap: balance;
    overflow-wrap: break-word;
  }

  .section-heading h2, .r13-section-head h2 {
    font-size: clamp(2.5rem, 4.4vw, 4.85rem);
    line-height: 1.04;
  }

  .section-heading p:not(.eyebrow), .r13-section-head p:not(.eyebrow),
  .casebook-grid p, .r31-record-entries p {
    line-height: 1.64;
    text-wrap: pretty;
  }

  .home-reading, .case-note, .r30-jump-bar {
    border-block-color: var(--ruling);
  }

  .r30-jump-bar {
    padding-block: .38rem;
  }

  .r30-jump-bar__links {
    gap: 0 clamp(.5rem, 1vw, 1.2rem);
  }

  .r30-jump-bar__links a {
    display: flex;
    align-items: center;
    gap: .48rem;
    min-height: 44px;
    padding: .4rem .25rem;
    font: 550 .94rem/1.36 var(--sans);
    letter-spacing: 0;
    text-transform: none;
  }

  .r30-jump-bar__links a::before {
    content: "";
    flex: none;
    width: .38rem;
    height: .38rem;
    border-inline-end: 1.5px solid var(--gold);
    border-block-end: 1.5px solid var(--gold);
    transform: rotate(45deg) translateY(-1px);
  }

  .r30-jump-bar__links a:hover {
    text-underline-offset: .2em;
    text-decoration: underline;
  }

  .field-index__links {
    gap: 0;
    border-top: 2px solid var(--gold);
    border-bottom: 1px solid var(--ruling);
  }

  .field-index__links a {
    padding: 1.05rem clamp(.65rem, 1.1vw, 1.3rem);
    border: 0;
    border-inline-start: 1px solid var(--line-strong);
  }

  .field-index__links a:is(:hover, :focus-visible) {
    background: var(--sheet);
  }

  .option-table caption, .option-table th {
    font-weight: 600;
  }

  .r30-matrix a {
    min-height: 44px;
  }

  .field :is(input, textarea, select):not(:focus),
  .service-finder__choice select:not(:focus),
  .note-search__row :is(input, button):not(:focus) {
    border-color: #718095;
  }

  .field :is(input, textarea, select):focus-visible {
    outline-color: var(--ice);
    outline-offset: 2px;
  }

  .site-foot__links a {
    display: inline-flex;
    align-items: center;
  }
}

@media screen and (min-width: 901px) {
  .home-intro__grid, .page-hero.portrait-hero .wrap.portrait-spread {
    column-gap: clamp(2rem, 5vw, 5rem);
  }

  .field-index__links {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media screen and (max-width: 900px) {
  .site-head .nav-items.is-open {
    max-height: calc(100dvh - 68px);
    overflow-y: auto;
  }

  .site-head .nav-items.is-open a {
    min-height: 48px;
    padding-block: .7rem;
  }

  .site-head .nav-items.is-open a[aria-current="page"] {
    padding-inline-start: .8rem;
    box-shadow: inset 3px 0 var(--gold);
  }

  .r30-jump-bar__links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr));
    gap: 0 .85rem;
    padding: 0;
  }

  .r30-jump-bar__links a {
    height: 100%;
    white-space: normal;
  }

  .field-index__links {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr));
  }

  .field-index__links a {
    border-bottom: 1px solid var(--line);
  }
}

@media screen and (max-width: 600px) {
  .home-orientation .wrap, .home-orientation ul {
    grid-auto-flow: row;
    grid-auto-columns: auto;
  }

  .home-orientation a {
    min-height: 48px;
    padding: .65rem 1.75rem .65rem 0;
    border-inline: 0;
    border-bottom: 1px solid var(--line);
  }

  .home-orientation a::after {
    right: .3rem;
  }

  .r30-jump-bar__links, .field-index__links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .field-index__links a { padding: .85rem .65rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

@media print {
  .home-orientation { display: none; }
}

@media screen {
  .reading-index {
    background: var(--obsidian);
  }

  .r30-matrix-wrap, .r30-jump-bar__inner {
    min-width: 0;
    max-width: 100%;
  }

  .reading-group + .reading-group {
    margin-top: clamp(1.75rem, 3.2vw, 3.25rem);
  }

  .reading-group > h3 {
    margin-bottom: .75rem;
    font: 600 clamp(1.25rem, 1.8vw, 1.65rem)/1.25 var(--sans);
    letter-spacing: -.025em;
  }

  .reading-group .reading-grid a {
    background: var(--sheet);
    min-width: 0;
    min-height: 5.5rem;
    color: var(--white);
    padding: clamp(.85rem, 1.8vw, 1.55rem);
    gap: .5rem;
  }

  .reading-group .reading-grid a span {
    font-size: .78rem;
    color: var(--gold);
  }

  .reading-group .reading-grid a:is(:hover, :focus-visible) {
    background: var(--panel);
    text-decoration: underline;
    text-underline-offset: .2em;
  }
}

@media screen and (min-width: 761px) {
  .reading-group .reading-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}


@media screen and (max-width: 360px) {
  .r13-practice h3 {
    hyphens: auto;
    overflow-wrap: anywhere;
  }
  .r30-jump-bar__links {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Printed details belong to the page furniture; the draft itself is plain text. */
.edition-mark {
  display: none;
}
@media screen and (forced-colors: none) {
  .memo-letterhead,
  .catalog-count {
    display: flex;
    align-items: center;
    gap: .65rem;
    min-width: 0;
  }
  .memo-letterhead {
    justify-content: space-between;
  }

  @supports (mask-image: linear-gradient(black, black)) or (-webkit-mask-image: linear-gradient(black, black)) {
    .edition-mark {
      display: block;
      flex: none;
      inline-size: 1.5rem;
      aspect-ratio: 542 / 500;
      pointer-events: none;
      user-select: none;
      background-color: var(--gold);
      -webkit-mask: url("/assets/r50/catalog-impression.png") center / contain no-repeat;
      mask: url("/assets/r50/catalog-impression.png") center / contain no-repeat;
    }
    [data-edition-mark="worksheet"] {
      inline-size: 2rem;
      background-color: var(--muted);
      opacity: .52;
    }
    [data-edition-mark="catalog"] {
      opacity: .82;
      transform: rotate(-5deg);
    }
    [data-edition-mark="field-notes"] {
      inline-size: 1.625rem;
      margin: clamp(1.5rem, 4vw, 2.75rem) auto 0;
      background-color: var(--soft);
      opacity: .66;
    }
  }
}
