@font-face {
  font-family: 'Instrument Sans';
  src: url('./assets/fonts/instrument-sans-regular.ttf') format('truetype');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Instrument Sans';
  src: url('./assets/fonts/instrument-sans-medium.ttf') format('truetype');
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'Newsreader';
  src: url('./assets/fonts/newsreader-regular.ttf') format('truetype');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Newsreader';
  src: url('./assets/fonts/newsreader-italic.ttf') format('truetype');
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f5f4ef;
  --ink: #292a25;
  --secondary: #4c4e45;
  --line: #d5d5ca;
  --yellow: #e8c52b;
  --sans: 'Instrument Sans', Arial, sans-serif;
  --serif: 'Newsreader', Georgia, serif;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 2rem; }
body { margin: 0; }
::selection { color: var(--ink); background: var(--yellow); }
a { color: inherit; }
button { font: inherit; }
a, button { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--ink); outline-offset: 6px; }
p, h1, h2 { margin: 0; }
.page-shell { width: min(100%, 100rem); margin-inline: auto; padding: 0 clamp(1.5rem, 5.4vw, 6rem); }
.skip-link { position: absolute; top: .75rem; left: 1.5rem; padding: .8rem; transform: translateY(-180%); background: var(--ink); color: var(--paper); z-index: 5; }
.skip-link:focus { transform: translateY(0); }

.site-header { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding: 1.8rem 0; border-bottom: 1px solid var(--line); }
.identity { display: inline-flex; align-items: center; gap: .8rem; text-decoration: none; min-width: 0; }
.brand-symbol { position: relative; display: block; flex: 0 0 2.6rem; height: 4.25rem; overflow: hidden; }
.brand-symbol img { position: absolute; width: 4.75rem; height: auto; max-width: none; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.brand-text { display: flex; min-width: 0; flex-direction: column; gap: .25rem; }
.wordmark-image { display: block; width: 17rem; max-width: 100%; height: auto; }
.signature { display: flex; align-items: baseline; justify-content: center; gap: .6em; font-size: 1rem; line-height: 1.5; color: var(--secondary); margin-inline: 2.51% 2.4%; white-space: nowrap; }
.header-contact { min-height: 2.75rem; display: flex; align-items: center; gap: .85rem; text-decoration: none; font-size: .9375rem; }
.header-contact:hover { text-decoration: underline; text-underline-offset: .35rem; }
.yellow-mark { width: .6rem; height: .6rem; background: var(--yellow); }

.introduction { padding: clamp(3rem, 5.5vw, 5.5rem) 0; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); grid-template-areas: 'heading portrait' 'copy portrait'; column-gap: clamp(2rem, 5vw, 5.5rem); row-gap: 2rem; align-items: center; }
.hero-heading { grid-area: heading; align-self: end; }
.place { font-size: .9375rem; line-height: 1.5; color: var(--secondary); margin-bottom: 2.2rem; }
h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(4.1rem, 7.2vw, 7.3rem); line-height: .99; letter-spacing: -.045em; }
h1 em { font-weight: 400; }
.hero-copy { grid-area: copy; align-self: start; padding-bottom: .55rem; }
.material-mark { display: block; width: 2.5rem; height: .3rem; background: var(--yellow); margin-bottom: 1.6rem; }
.hero-copy p { max-width: 43ch; font-size: 1.125rem; line-height: 1.65; }
.hero-contact { display: inline-flex; gap: .65rem; align-items: center; min-height: 2.75rem; margin-top: 1.25rem; font-size: 1rem; text-decoration-thickness: 1px; text-underline-offset: .35rem; }
.hero-contact:hover { text-decoration-thickness: 2px; }
.hero-portrait { grid-area: portrait; margin: 0; background: #e9e7df; aspect-ratio: 1 / 1.13; align-self: center; overflow: hidden; }
.hero-portrait img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: center bottom; }

.material-study { margin: 0 0 3.5rem; }
.material-panel { margin: 0; min-width: 0; }
.material-frame { overflow: hidden; }
.material-project .material-frame { aspect-ratio: 9 / 4; }
.material-study img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.material-project img { object-position: 50% 65%; transform: scale(1.28); transform-origin: 50% 65%; }
.doorways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 2.7rem 0; border-top: 1px solid var(--line); }
.doorway { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; padding-inline: clamp(1.5rem, 3vw, 3rem); }
.doorway:first-child { padding-left: 0; }
.doorway:last-child { padding-right: 0; }
.doorway + .doorway { border-left: 1px solid var(--line); }
.doorway h2 { font-family: var(--serif); font-size: clamp(2.1rem, 3.4vw, 3rem); font-weight: 400; line-height: 1.15; letter-spacing: -.025em; }
.doorway p { font-size: 1rem; line-height: 1.65; margin-top: .85rem; margin-bottom: 1.5rem; max-width: 28ch; }
.coming-soon { color: var(--secondary); font-size: .9375rem; line-height: 1.5; margin-top: auto; }

.next-chapter { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; padding: 3.25rem 0; border-top: 1px solid var(--line); }
.section-label { display: block; font-size: .9375rem; line-height: 1.5; color: var(--secondary); }
.chapter-heading h2 { font-family: var(--serif); font-size: clamp(2.125rem, 3.4vw, 3.1rem); font-weight: 400; line-height: 1.12; letter-spacing: -.025em; margin-top: 1.1rem; }
.chapter-copy { padding-top: .1rem; max-width: 38ch; font-size: 1rem; line-height: 1.75; }
.chapter-copy p + p { margin-top: 1rem; }

.contact { padding: 2.8rem 0 3rem; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.contact h2 { font-family: var(--serif); font-size: clamp(1.85rem, 3vw, 2.65rem); font-weight: 400; line-height: 1.2; letter-spacing: -.025em; margin-top: .7rem; }
.contact-actions { position: relative; display: flex; align-items: flex-end; flex-direction: column; gap: .6rem; }
.email-link { font-size: clamp(1.2rem, 2.3vw, 1.65rem); line-height: 1.4; text-decoration-thickness: 1px; text-underline-offset: .4rem; }
.email-link:hover { text-decoration-color: var(--ink); background: var(--yellow); }
.copy-email { color: var(--secondary); background: transparent; border: none; border-bottom: 1px solid transparent; padding: .4rem 0; cursor: pointer; font-size: .9375rem; min-height: 2.75rem; }
.copy-email:hover { color: var(--ink); text-decoration: underline; text-underline-offset: .25rem; }
.copy-status { position: absolute; right: 0; top: 100%; color: var(--secondary); font-size: .9375rem; white-space: nowrap; }
.site-footer { padding: 1.6rem 0 2rem; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .75rem 2rem; border-top: 1px solid var(--line); font-size: .9375rem; line-height: 1.5; color: var(--secondary); }
.footer-identity { display: inline-flex; align-items: center; gap: .85rem; }
.brand-symbol.footer-seal { flex-basis: 1.9rem; height: 3rem; }
.brand-symbol.footer-seal img { width: 3.35rem; }

@media (max-width: 1000px) {
  .introduction { column-gap: 2rem; row-gap: 1.5rem; }
  h1 { font-size: clamp(3.4rem, 7.2vw, 4.5rem); }
  .hero-copy p { font-size: 1rem; }
}
@media (max-width: 700px) {
  .site-header { padding: 1.4rem 0; gap: .75rem; }
  .identity { gap: .45rem; }
  .brand-symbol { flex-basis: 2rem; height: 3.25rem; }
  .brand-symbol img { width: 3.7rem; }
  .wordmark-image { width: 12rem; }
  .signature { font-size: .9375rem; }
  .header-contact { gap: .5rem; font-size: .9375rem; }
  .yellow-mark { width: .45rem; height: .45rem; }
  .introduction { grid-template-columns: 1fr; grid-template-areas: 'heading' 'portrait' 'copy'; gap: 2rem; padding: 3rem 0; }
  h1 { font-size: clamp(3.5rem, 11.5vw, 5.6rem); }
  .place { margin-bottom: 1.75rem; }
  .hero-portrait { width: min(100%, 24rem); justify-self: center; aspect-ratio: 1 / 1.04; }
  .hero-copy p { max-width: 40ch; font-size: 1.0625rem; }
  .material-mark { width: 2rem; margin-bottom: 1.25rem; }
  .material-study { margin-bottom: 2.5rem; }
  .material-project .material-frame { aspect-ratio: 3 / 2; }
  .material-project img { transform: scale(1.16); transform-origin: 50% 60%; }
  .doorways { grid-template-columns: 1fr; padding: 0; }
  .doorway { padding: 1.8rem 0; }
  .doorway + .doorway { border-left: none; border-top: 1px solid var(--line); }
  .doorway p { max-width: none; margin-bottom: 1rem; }
  .next-chapter { grid-template-columns: 1fr; gap: 1.6rem; padding: 2.5rem 0; }
  .chapter-heading h2 { margin-top: .8rem; }
  .chapter-heading h2 br { display: none; }
  .chapter-copy { max-width: 42ch; }
  .contact { flex-direction: column; align-items: flex-start; gap: 1.6rem; padding: 2.5rem 0 3rem; }
  .contact-actions { align-items: flex-start; }
  .copy-status { left: 0; right: auto; }
  .site-footer { font-size: .9375rem; }
}
@media (max-width: 360px) {
  .site-header { flex-wrap: wrap; gap: .75rem; }
  .identity { flex: 1 1 15rem; }
  .brand-text { width: 12rem; }
  .header-contact { margin-left: auto; }
}
@media (max-width: 359px) {
  .page-shell { padding-inline: 1.25rem; }
  .site-header { gap: .75rem; }
  .identity { gap: .25rem; }
  .brand-symbol { flex-basis: 2rem; }
  .brand-symbol img { width: 3.5rem; }
  .wordmark-image { width: 12rem; }
  .header-contact .yellow-mark { display: none; }
  h1 { font-size: 3.15rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
