/* Leo Brown · editorial portfolio, with restrained technical detail. */
:root {
  --ink: #193439;
  --body: #526365;
  --muted: #798884;
  --teal: #136e67;
  --copper: #b75e3f;
  --paper: #fafbf8;
  --sidebar-bg: #edf2ee;
  --line: #dce5df;
  --sidebar: 282px;
  --gutter: clamp(36px, 5vw, 90px);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.8;
  color: var(--body);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--copper); }
a, button { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--copper); outline-offset: 4px; }
button { font: inherit; cursor: pointer; }
img { display: block; max-width: 100%; height: auto; }
svg { display: block; width: 24px; height: 24px; flex-shrink: 0; }
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; font-weight: 400; }
h1 { font-size: clamp(38px, 3.5vw, 54px); letter-spacing: -1.5px; }
h2 { font-size: 26px; letter-spacing: -.6px; }
h3 { font-size: 21px; letter-spacing: -.35px; }
p { margin-bottom: 24px; }
.skip-link { position: fixed; z-index: 30; left: 300px; top: 12px; padding: 8px 18px; background: white; transform: translateY(-180%); }
.skip-link:focus { transform: none; }
/* The rail is an index into the work, rather than a row of menu buttons. */
.sidebar { position: fixed; inset: 0 auto 0 0; width: var(--sidebar); padding: 43px 28px 26px 34px; background: var(--sidebar-bg); border-right: 1px solid var(--line); display: grid; grid-template-rows: auto minmax(0, 1fr) auto; z-index: 10; }
.brand { display: block; color: var(--ink); margin: 0 0 48px; }
.brand > span { display: block; font-size: 29px; line-height: 1.15; font-weight: 300; letter-spacing: -1.2px; }
.brand small { display: block; margin-top: 12px; color: var(--teal); font: 10px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 1.3px; text-transform: uppercase; }
.sidebar nav { overflow: auto; scrollbar-width: thin; scrollbar-color: #bdcec5 transparent; padding-right: 6px; padding-left: 15px; margin-left: -15px; }
.nav-link { position: relative; display: flex; align-items: center; padding: 13px 0; font-size: 16px; color: var(--ink); line-height: 1.4; }
.nav-link:hover { color: var(--teal); }
.nav-link[aria-current="page"], .nav-group.is-current > .nav-row .nav-link { color: var(--teal); font-weight: 500; }
.nav-link[aria-current="page"]:before, .nav-group.is-current > .nav-row .nav-link:before { content: ""; position: absolute; left: -15px; top: 18px; height: 15px; width: 3px; background: var(--copper); }
.nav-row { display: flex; align-items: center; }
.nav-row .nav-link { flex: 1; }
.nav-expander { display: grid; place-items: center; border: 0; color: var(--teal); background: transparent; width: 32px; height: 32px; border-radius: 4px; }
.nav-expander:hover { background: #dce8df; }
.nav-expander svg { width: 19px; height: 19px; transition: transform .2s; }
.nav-expander[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav-children { margin: 3px 0 13px; padding: 3px 0 3px 12px; border-left: 1px solid #c8d9cf; }
.nav-children a { display: block; margin: 1px 0; padding: 7px 9px; font-size: 12px; line-height: 1.45; color: #59716b; border-radius: 3px; }
.nav-children a > span { display: block; font-size: 14px; font-weight: 500; }
.nav-children a > small { display: block; color: #687e75; font-size: 11px; font-weight: 400; line-height: 1.4; margin-top: 3px; }
.nav-children a[aria-current="page"] > small { color: #46685c; }
.nav-children a:hover { color: var(--teal); background: #e1ebe3; }
.nav-children a[aria-current="page"] { background: #dce9e0; color: #145c53; font-weight: 500; box-shadow: inset 2px 0 var(--teal); }
.has-js .nav-children { height: 0; overflow: hidden; visibility: hidden; margin-top: 0; margin-bottom: 0; padding-top: 0; padding-bottom: 0; }
.has-js .nav-group.is-expanded .nav-children { height: auto; visibility: visible; margin-top: 3px; margin-bottom: 13px; padding-top: 3px; padding-bottom: 3px; }
.sidebar-footer { padding-top: 32px; }
.socials { display: flex; gap: 10px; align-items: center; }
.social-monogram { width: 60px; height: 60px; object-fit: contain; margin-left: auto; opacity: .37; mix-blend-mode: multiply; flex-shrink: 0; }
.social-link { width: 34px; height: 34px; display: grid; place-items: center; color: white; border-radius: 5px; transition: transform .2s, filter .2s; }
.social-link svg { width: 17px; height: 17px; }
.social-link.linkedin { background: #176c8b; }
.social-link.instagram { background: #a95055; }
.social-link.facebook { background: #416791; }
.social-link:hover { color: white; transform: translateY(-2px); filter: brightness(1.1); }
.sidebar-footer p { margin: 14px 0 0; font-size: 10px; letter-spacing: .3px; color: #74857d; }
.menu-toggle { display: none; }
.pages, .project-page { margin-left: var(--sidebar); min-height: 100vh; }
.page, .project-page { padding: 61px var(--gutter) 90px; max-width: 1800px; }
.page { min-height: 100vh; }
.page-heading { margin-bottom: 52px; }
.page-heading:before { content: ""; display: block; width: 31px; height: 3px; background: var(--copper); margin-bottom: 20px; }
.page-heading h1 { margin: 0 0 15px; }
.page-heading h1:focus, .introduction h1:focus { outline: none; }
.page-heading p { font: 11px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .5px; color: var(--teal); margin: 0; }
.underlined { display: table; padding-bottom: 12px; margin-bottom: 30px; position: relative; }
.underlined:after { content: ""; display: block; width: 27px; height: 2px; background: var(--teal); position: absolute; bottom: 0; left: 0; }
/* A compact portrait with a narrow right-edge fade and one rounded corner. */
.landing-page { padding-top: 57px; }
.landing-hero { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 18px; align-items: start; margin: 0 -22px 64px 0; min-height: 470px; }
.introduction { position: relative; z-index: 1; padding: 0 0 25px; }
.eyebrow { display: flex; align-items: center; gap: 9px; font: 11px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; text-transform: uppercase; letter-spacing: 1.4px; color: var(--teal); margin-bottom: 24px; }
.signal-dot { height: 6px; width: 6px; border-radius: 50%; background: var(--copper); }
.introduction h1 { font-size: clamp(48px, 4.6vw, 68px); font-weight: 300; letter-spacing: -3px; line-height: 1.03; margin-bottom: 33px; }
.bio-lead { color: var(--ink); font-size: clamp(21px, 1.8vw, 28px); line-height: 1.55; font-weight: 400; letter-spacing: -.5px; max-width: 580px; margin-bottom: 23px; }
.bio-detail { font-size: 15px; line-height: 1.9; max-width: 510px; }
.bio-detail a { border-bottom: 1px solid #bad5ca; }
.text-link { display: inline-flex; align-items: center; gap: 27px; color: var(--teal); padding: 5px 0; margin-top: 12px; font-size: 14px; font-weight: 500; }
.text-link span { font-size: 22px; }
.portrait { position: relative; align-self: start; justify-self: end; margin-top: clamp(7px, .7vw, 10px); width: 90%; height: clamp(420px, 34vw, 500px); min-height: 420px; overflow: hidden; }
.portrait img { width: 100%; height: 100%; min-height: 0; max-height: none; object-fit: cover; object-position: 50% 30%; border-radius: 0 45px 0 0; filter: saturate(.85); mask-image: linear-gradient(to right, #000 96%, transparent 100%); }
.photo-caption { position: absolute; bottom: 9px; left: 32px; right: 0; z-index: 1; font: 10px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .3px; color: #52675d; }
.landing-expertise { padding-top: 34px; border-top: 1px solid var(--line); }
.landing-expertise .expertise-group { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin: 0; }
.landing-expertise h2 { grid-column: 1 / -1; font-size: 23px; margin-bottom: 2px; }
.landing-expertise .expertise-item { display: block; margin: 0; }
.landing-expertise .item-icon { margin-bottom: 18px; }
.landing-expertise .expertise-item h3 { font-size: 19px; }
.expertise-group { margin-bottom: 57px; }
.expertise-item { display: flex; gap: 19px; margin-bottom: 34px; }
.item-icon { color: var(--teal); flex-shrink: 0; width: 34px; padding-top: 1px; }
.item-icon svg { width: 30px; height: 30px; }
.expertise-item h3 { margin: 0 0 10px; }
.expertise-item p { font-size: 14px; line-height: 1.95; margin: 0; }
.experience-layout { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(285px, 1fr); gap: 57px; }
.technical-heading { font-size: 27px; margin-bottom: 14px; }
.technical-skills > p { color: var(--muted); font-size: 13px; }
.technical-skills .underlined { font-size: 22px; margin-bottom: 24px; }
.skill-group { margin-bottom: 38px; }
.skill { margin-bottom: 15px; }
.skill-label { display: flex; align-items: start; justify-content: space-between; gap: 15px; font-size: 12px; line-height: 1.5; margin-bottom: 7px; }
.skill-label > span:last-child { color: var(--muted); font: 10px/1.8 ui-monospace, SFMono-Regular, Menlo, monospace; flex-shrink: 0; }
.skill-track { height: 3px; background: #e2ebe6; }
.skill-track span { display: block; width: var(--skill-value); height: 100%; background: var(--teal); }
.skill-group:nth-of-type(2n) .skill-track span { background: #ad7653; }
.projects-intro { max-width: 710px; font-size: 20px; line-height: 1.7; color: var(--ink); margin-bottom: 42px; }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 47px 28px; }
.project-card { display: block; color: var(--ink); }
.project-image { aspect-ratio: 1.65; overflow: hidden; background: #e8eee9; border-radius: 2px; }
.project-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s, filter .35s; filter: saturate(.85); }
.project-card:hover .project-image img { transform: scale(1.025); filter: saturate(1); }
.project-caption { position: relative; padding: 18px 34px 0 0; }
.project-caption > span:first-child { color: var(--teal); font: 10px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .3px; }
.project-caption h2 { font-size: 24px; margin: 7px 0 0; }
.project-arrow { position: absolute; right: 0; top: 24px; font-size: 24px; color: var(--copper); }
.appointments { max-width: 1060px; }
.legacy-anchor { display: block; scroll-margin-top: 100px; }
.appointment { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 28px; padding: 0 0 38px; margin: 0 0 35px; border-bottom: 1px solid var(--line); }
.appointment:last-child { border-bottom: 0; }
.appointment-meta { display: flex; flex-direction: column; align-items: start; font-size: 11px; line-height: 1.7; color: var(--muted); }
.year { color: var(--teal); font: 17px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; margin-bottom: 9px; }
.appointment-meta img { width: auto; max-width: 65px; max-height: 65px; object-fit: contain; margin-top: 22px; }
.appointment-copy h3 { margin-bottom: 15px; font-size: 25px; }
.appointment-copy h3 a { color: var(--ink); display: flex; align-items: start; gap: 20px; }
.appointment-copy h3 a:hover { color: var(--teal); }
.appointment-copy h3 span { font-size: 21px; margin-left: auto; color: var(--copper); }
.appointment-copy p { font-size: 14px; margin: 0; }
.contact-intro { padding-top: 20px; max-width: 700px; margin-bottom: 50px; }
.contact-intro .eyebrow { margin-bottom: 18px; }
.contact-intro h2 { font-size: clamp(38px, 4.2vw, 65px); font-weight: 300; letter-spacing: -2px; margin-bottom: 27px; }
.contact-intro > p:last-child { font-size: 21px; line-height: 1.7; color: var(--ink); max-width: 650px; }
.contact-options { max-width: 940px; border-top: 2px solid var(--teal); }
.contact-option { display: flex; gap: 26px; align-items: center; padding: 29px 0; border-bottom: 1px solid var(--line); color: var(--ink); }
.contact-option:hover { color: var(--teal); }
.contact-option > svg { color: var(--teal); width: 28px; height: 28px; }
.contact-option > span:nth-child(2) { display: flex; flex-direction: column; }
.contact-label { color: var(--muted); font: 10px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .7px; margin-bottom: 5px; }
.contact-option strong { font-size: clamp(20px, 2.2vw, 31px); font-weight: 400; letter-spacing: -.6px; }
.contact-arrow { color: var(--copper); font-size: 29px; margin-left: auto; }
.page-arrows { display: none; position: fixed; right: 24px; bottom: 20px; gap: 8px; z-index: 5; }
.page-arrows a { display: grid; place-items: center; width: 34px; height: 34px; color: var(--teal); background: var(--paper); border: 1px solid var(--line); border-radius: 50%; }
.page-arrows svg { width: 17px; height: 17px; }
.page-arrows .previous svg { transform: rotate(180deg); }
.page-arrows a:hover { border-color: var(--teal); }
body.has-page-navigation .page { display: none; }
body.has-page-navigation .page.is-active { display: block; }
body.has-page-navigation .page-arrows { display: flex; }
body.has-page-navigation .page-arrows[hidden] { display: none; }
.pages > .project-page { margin-left: 0; }
.page.is-entering { animation: slide-down .45s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes slide-down { from { opacity: 0; transform: translateY(-32px); } to { opacity: 1; transform: translateY(0); } }
.back-link { font-size: 12px; color: var(--teal); display: inline-block; margin-bottom: 33px; }
.project-page .page-heading { margin-bottom: 48px; }
.project-page h1 { max-width: 950px; }
.project-layout { display: grid; grid-template-columns: minmax(0, 1fr) clamp(210px, 19vw, 330px); gap: clamp(28px, 3.5vw, 54px); align-items: start; }
.project-content { grid-column: 1; grid-row: 1; min-width: 0; }
.project-body { max-width: 930px; font-size: 16px; line-height: 1.95; }
.project-body > p:first-child, .project-lead { font-size: 21px; color: var(--ink); line-height: 1.8; }
.project-body h2, .project-body h3, .project-body h4 { margin: 44px 0 18px; font-size: 28px; scroll-margin-top: 30px; }
.project-body h3 strong { font-weight: 400; }
.project-body img { width: auto; max-height: 850px; margin: 28px auto; object-fit: contain; }
.project-body figure { margin: 28px 0; color: var(--muted); font-size: 12px; }
.project-body figure img { margin-bottom: 12px; }
.project-details { grid-column: 2; grid-row: 1; position: sticky; top: 32px; align-self: start; width: 100%; max-width: 330px; max-height: calc(100dvh - 64px); overflow-y: auto; scrollbar-width: thin; font-size: 13px; overflow-wrap: anywhere; border-top: 2px solid var(--teal); padding-top: 24px; }
.project-details dl { margin: 0 0 25px; }
.project-details dt { color: var(--muted); font: 10px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; margin: 0 0 7px; }
.project-details dd { margin: 0 0 23px; color: var(--ink); }
.project-details img { max-height: 320px; width: auto; margin: 18px 0; }
.project-toc { border-bottom: 1px solid var(--line); padding-bottom: 24px; margin-bottom: 26px; }
.project-toc h2 { font-size: 17px; margin-bottom: 15px; }
.project-toc a { display: block; margin-bottom: 10px; font-size: 13px; line-height: 1.5; }
@media (max-width: 1180px) {
  :root { --sidebar: 245px; --gutter: 38px; }
  .sidebar { padding-left: 27px; padding-right: 21px; }
  .brand > span { font-size: 28px; }
  .landing-hero { grid-template-columns: 1.05fr .95fr; min-height: 460px; }
  .introduction h1 { font-size: 55px; }
  .bio-lead { font-size: 23px; }
  .portrait, .portrait img { min-height: 390px; }
  .experience-layout { grid-template-columns: minmax(0, 1.5fr) minmax(250px, 1fr); gap: 32px; }
  .project-layout { gap: 32px; }
  .landing-expertise .expertise-group { gap: 23px; }
}
@media (max-width: 1000px) {
  .project-layout { grid-template-columns: minmax(0, 1fr); }
  .project-details { grid-column: 1; grid-row: 2; position: static; max-height: none; overflow-y: visible; }
  .project-content { display: contents; }
  .project-content > .page-heading { grid-row: 1; margin-bottom: 8px; }
}
@media (max-width: 900px) {
  .sidebar { padding-top: 32px; }
  .brand { margin-bottom: 30px; }
  .landing-hero { grid-template-columns: 1fr; margin-right: 0; gap: 12px; }
  .introduction { padding-bottom: 0; }
  .portrait { width: 100%; justify-self: stretch; margin-top: 0; }
  .portrait, .portrait img { min-height: 0; height: 290px; }
  .portrait img { object-position: 50% 0%; }
  .photo-caption { left: 12px; }
  .landing-expertise .expertise-group { grid-template-columns: 1fr; gap: 30px; }
  .landing-expertise .expertise-item { display: flex; }
  .experience-layout { grid-template-columns: 1fr; gap: 20px; }
  .technical-skills { padding-top: 30px; border-top: 1px solid var(--line); }
  .project-grid { grid-template-columns: 1fr; }
  .appointment { grid-template-columns: 85px minmax(0, 1fr); gap: 22px; }
}
@media (max-width: 700px) {
  :root { --gutter: 24px; }
  .sidebar { inset: 0 0 auto; width: 100%; height: 76px; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; }
  .brand { margin: 0; }
  .brand > span { font-size: 27px; }
  .brand small { display: none; }
  .menu-toggle { display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 38px; height: 38px; border: 0; background: transparent; }
  .menu-toggle span { width: 21px; height: 2px; background: var(--teal); }
  .sidebar > nav { position: absolute; top: 75px; left: 0; right: 0; background: var(--sidebar-bg); max-height: calc(100dvh - 76px); padding: 17px 28px 24px; margin-left: 0; border-bottom: 1px solid var(--line); }
  .has-js .sidebar > nav { height: 0; overflow: hidden; visibility: hidden; padding-top: 0; padding-bottom: 0; border-bottom-width: 0; }
  .has-js .sidebar > nav.is-open { height: auto; overflow: auto; visibility: visible; padding-top: 17px; padding-bottom: 24px; border-bottom-width: 1px; }
  .sidebar-footer { display: none; }
  .pages, .project-page { margin-left: 0; }
  .pages { padding-top: 76px; }
  .page { padding: 35px 24px 75px; min-height: calc(100vh - 76px); }
  .page-heading { margin-bottom: 38px; }
  .page-heading h1 { font-size: 39px; }
  .page-heading:before { width: 23px; margin-bottom: 17px; }
  .landing-hero { margin-bottom: 33px; }
  .introduction h1 { font-size: 55px; margin-bottom: 27px; }
  .eyebrow { font-size: 10px; margin-bottom: 23px; }
  .bio-lead { font-size: 24px; }
  .bio-detail { font-size: 15px; }
  .portrait, .portrait img { height: 285px; }
  .landing-expertise { padding-top: 26px; }
  .landing-expertise .expertise-group { gap: 25px; }
  .landing-expertise h2 { font-size: 24px; }
  .expertise-item { gap: 15px; }
  .expertise-item h3 { font-size: 20px; }
  .expertise-item p { font-size: 14px; }
  .project-caption h2 { font-size: 25px; }
  .projects-intro { font-size: 19px; }
  .appointment { grid-template-columns: 68px minmax(0, 1fr); gap: 16px; }
  .appointment-meta { font-size: 10px; }
  .appointment-meta img { max-width: 51px; }
  .appointment-copy h3 { font-size: 22px; }
  .appointment-copy p { font-size: 14px; }
  .contact-intro { padding-top: 12px; margin-bottom: 30px; }
  .contact-intro h2 { font-size: 43px; letter-spacing: -1.5px; }
  .contact-intro > p:last-child { font-size: 20px; }
  .contact-option { gap: 15px; padding: 25px 0; }
  .contact-option > svg { width: 23px; height: 23px; }
  .contact-option strong { font-size: 20px; letter-spacing: -.5px; }
  .contact-arrow { font-size: 24px; }
  .page-arrows { right: 16px; bottom: 14px; }
  .project-page { padding: 109px 24px 65px; }
  .pages > .project-page { padding-top: 33px; }
  .project-page h1 { font-size: 39px; }
  .project-layout { gap: 30px; }
  .project-body { font-size: 15px; }
  .project-body > p:first-child { font-size: 19px; }
  .project-body h2, .project-body h3, .project-body h4 { font-size: 26px; scroll-margin-top: 96px; }
  .skip-link { left: 12px; }
  body:not(.has-js) .sidebar { position: relative; height: auto; display: block; padding: 20px 24px; }
  body:not(.has-js) .sidebar > nav { position: static; max-height: none; padding: 20px 0 0; }
  body:not(.has-js) .menu-toggle { display: none; }
  body:not(.has-js) .pages { padding-top: 0; }
  body:not(.has-js) .project-page { padding-top: 35px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *:before, *:after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  .sidebar, .page-arrows, .back-link, .text-link { display: none; }
  .pages, .project-page { margin: 0; padding-top: 0; }
  .page, body.has-page-navigation .page { display: block !important; min-height: 0; break-before: page; padding: 20px; }
  .page:first-child { break-before: auto; }
  .landing-hero { min-height: 0; }
  .portrait, .portrait img { min-height: 0; }
  .project-page { padding: 0; }
  .project-layout { display: block; }
  .project-details { position: static; max-height: none; overflow: visible; margin-bottom: 30px; }
}
.project-text-cover { padding: 27px 30px; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; position: relative; background: #e7eee8; color: var(--ink); }
.cover-name { font: 11px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--teal); }
.cover-description { font-size: clamp(22px, 2.2vw, 35px); line-height: 1.25; letter-spacing: -.8px; padding-bottom: 8px; }
.cover-mark { position: absolute; top: 25px; right: 28px; font-size: 23px; color: var(--copper); }
.project-logo { display: grid; place-items: center; padding: 30px; background: #edf1eb; }
.project-logo img { width: auto; height: auto; max-height: 150px; max-width: 50%; object-fit: contain; }
.screenshot-preview img { object-position: top; }
.project-summary { color: var(--body); font-size: 12px; line-height: 1.6; margin: 8px 0 0; }
.project-overview { max-width: 1080px; margin: 0 0 48px; }
.project-screenshot img { width: 100%; height: auto; max-height: none; object-fit: contain; border: 1px solid var(--line); border-radius: 4px; }
.project-screenshot figcaption { font-size: 12px; color: var(--body); margin-top: 12px; line-height: 1.7; }
.project-body .project-screenshot { margin: 33px 0; }
.project-body .project-screenshot img { margin: 0; }
.contact-intro > p:not(.availability-note) { font-size: 21px; line-height: 1.7; color: var(--ink); }
.contact-intro > p.availability-note { font-size: 15px; line-height: 1.9; color: var(--body); border-left: 3px solid var(--copper); padding-left: 18px; margin-top: 26px; }
@media (max-width: 700px) {
  .brand > span { font-size: 25px; }
  .introduction h1 { font-size: 54px; }
  .project-text-cover { padding: 24px; }
  .cover-description { font-size: 28px; }
  .project-overview { margin-bottom: 32px; }
  .contact-intro > p:not(.availability-note) { font-size: 20px; }
}

.project-intro { max-width: 850px; font-size: 21px; line-height: 1.8; color: var(--ink); margin-bottom: 32px; }
@media (max-width: 700px) { .project-intro { font-size: 19px; } }

.page-loading { margin: 0 0 0 var(--sidebar); padding: 61px var(--gutter); font-size: 14px; color: var(--muted); }
.script-fallback { padding: 0 var(--gutter) 60px; }
.script-fallback h2 { font-size: 22px; }
.script-fallback ul { columns: 3 200px; padding-left: 18px; }
.script-fallback li { break-inside: avoid; font-size: 13px; }
@media (max-width: 700px) { .page-loading { margin-left: 0; padding: 109px 24px; } }

/* Project labels stay legible in both the rail and the work index. */
#projects .project-caption h2 { font-size: 26px; font-weight: 500; }
#projects .project-summary { font-size: 13px; }
.project-page .page-heading p { font-size: 12px; }
@media (max-width: 700px) {
 #projects-nav a { padding: 10px 9px; }
 .nav-children a > span { font-size: 17px; }
 .nav-children a > small { font-size: 13px; }
 #projects .project-caption h2 { font-size: 27px; }
 #projects .project-summary { font-size: 15px; }
 .project-page .page-heading p { font-size: 13px; }
}

/* Article photographs open without leaving the reading position. */
.article-image-trigger { display: block; width: 100%; margin: 0; padding: 0; border: 0; background: transparent; cursor: zoom-in; }
a.article-image-trigger { width: auto; }
.article-image-trigger img { cursor: zoom-in; }
body.image-modal-open { overflow: hidden; }
.image-modal { width: 96vw; height: 94dvh; max-width: none; max-height: none; padding: 18px 22px; border: 1px solid #dce5df; border-radius: 8px; color: var(--ink); background: var(--paper); overflow: hidden; }
.image-modal[open] { display: flex; flex-direction: column; gap: 12px; }
.image-modal::backdrop { background: rgb(12 27 30 / .88); }
.image-modal-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-shrink: 0; }
.image-modal-toolbar h2 { font-size: 16px; margin: 0; letter-spacing: 0; }
.image-modal-close { border: 1px solid var(--line); border-radius: 4px; padding: 6px 15px; background: white; color: var(--ink); line-height: 1.5; }
.image-modal-close:hover { border-color: var(--teal); color: var(--teal); }
.image-modal-stage { display: grid; place-items: center; flex: 1; min-height: 0; min-width: 0; }
.image-modal-stage img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.image-modal-caption { flex-shrink: 0; margin: 0; font-size: 12px; line-height: 1.5; color: var(--body); }
.image-modal-error { margin: 0; }
@media (max-width: 700px) {
  .image-modal { width: 100vw; height: 100dvh; margin: 0; padding: 14px; border: 0; border-radius: 0; }
  .image-modal-caption { font-size: 11px; }
}
