:root {
  color-scheme: light;
  --paper: #f7f3e9;
  --paper-deep: #efe7d7;
  --ink: #222422;
  --muted: #5f635e;
  --line: #cfc6b5;
  --cinnabar: #9e332d;
  --river: #335f75;
  --serif: "Songti SC", "STSong", "Noto Serif CJK SC", "Source Han Serif SC", serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  --shell: min(1280px, calc(100vw - 80px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--serif);
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: #fff;
  background: var(--ink);
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: relative;
  z-index: 5;
  width: var(--shell);
  min-height: 78px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(113, 101, 81, .24);
}
.brand { display: inline-flex; align-items: center; gap: 14px; }
.brand strong { font-size: 30px; font-weight: 650; letter-spacing: .14em; }
.brand-seal {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 54px;
  height: 32px;
  border: 1px solid #9e6a4c;
  color: #87573e;
}
.brand-seal i {
  display: grid;
  place-items: center;
  font-style: normal;
  font-size: 14px;
}
.brand-seal i + i { border-left: 1px solid #b99075; }
nav { display: flex; gap: clamp(24px, 4vw, 58px); }
nav a { color: #454944; font-size: 16px; letter-spacing: .12em; }
nav a:hover { color: var(--cinnabar); }

.hero {
  position: relative;
  min-height: 540px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero-background {
  position: absolute;
  inset: 0;
  background: url("assets/hero-ink-book.webp") center center / cover no-repeat;
}
.hero-copy {
  position: relative;
  z-index: 1;
  width: var(--shell);
  margin: 0 auto;
  padding: 76px 0 70px;
}
.hero h1 {
  max-width: 790px;
  margin: 0;
  font-size: clamp(50px, 4.7vw, 68px);
  font-weight: 580;
  line-height: 1.22;
  letter-spacing: .035em;
}
.hero p {
  max-width: 610px;
  margin: 34px 0 30px;
  color: #454c49;
  font-size: 19px;
  line-height: 2;
  letter-spacing: .03em;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  width: fit-content;
  padding: 7px 0 9px;
  border-bottom: 1px solid currentColor;
  color: var(--river);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 650;
  letter-spacing: .1em;
}
.text-link span { transition: transform .2s ease; }
.text-link:hover span { transform: translateX(5px); }
.text-link--accent { color: var(--cinnabar); font-size: 17px; }

.catalogue { width: var(--shell); margin: 0 auto; padding: 76px 0 108px; }
.section-heading {
  display: grid;
  grid-template-columns: minmax(220px, .45fr) 1fr;
  align-items: end;
  gap: 34px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}
.section-heading h2,
.years h2,
.about h2 { margin: 0; font-size: clamp(36px, 4vw, 52px); font-weight: 590; letter-spacing: .12em; }
.section-heading p { max-width: 620px; margin: 0 0 5px; color: var(--muted); font-size: 17px; line-height: 1.8; }

.work-entry {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(390px, .85fr);
  gap: clamp(44px, 6vw, 92px);
  align-items: center;
  padding: 42px 0;
  border-bottom: 1px solid var(--line);
}
.work-image { position: relative; aspect-ratio: 2 / .82; overflow: hidden; background: #ddd4c4; }
.work-image::after { content: ""; position: absolute; inset: 0; border: 1px solid rgba(37, 34, 28, .15); pointer-events: none; }
.work-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s ease; }
.work-image:hover img { transform: scale(1.018); }
.work-entry:first-of-type .work-image img { object-position: center 47%; }
.work-entry:nth-of-type(3) .work-image img { object-position: center 64%; }
.work-copy {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 10px 22px;
  align-items: start;
}
.work-number { margin: 8px 0 0; color: #93684a; font-size: 13px; letter-spacing: .15em; writing-mode: vertical-rl; }
.work-copy h3 { margin: 0; font-size: clamp(40px, 4vw, 58px); font-weight: 600; letter-spacing: .08em; }
.work-season { margin: 13px 0 0; font-size: 20px; letter-spacing: .09em; }
.work-route { margin: 20px 0 0; color: var(--muted); font-size: 17px; letter-spacing: .06em; }
.work-copy .text-link { grid-column: 2; margin-top: 34px; }

.years {
  display: grid;
  grid-template-columns: .8fr 1.4fr;
  gap: clamp(60px, 10vw, 150px);
  align-items: center;
  padding: 88px max(40px, calc((100vw - 1280px) / 2));
  background: #eee5d5;
  border-block: 1px solid #d5c4a8;
}
.years-copy p { max-width: 420px; margin: 24px 0 0; color: #4c514c; font-size: 18px; line-height: 1.9; }
.years-frame {
  position: relative;
  min-height: 210px;
  display: grid;
  place-items: center;
  padding: 46px;
  border: 1px solid #c9a47c;
  background: rgba(255, 252, 245, .42);
}
.years-frame::before,
.years-frame::after { content: ""; position: absolute; width: 18px; height: 18px; border-color: #b9895d; }
.years-frame::before { top: 7px; left: 7px; border-top: 1px solid; border-left: 1px solid; }
.years-frame::after { right: 7px; bottom: 7px; border-right: 1px solid; border-bottom: 1px solid; }
.years-frame p { max-width: 530px; margin: 0; color: #68675f; font-size: 17px; line-height: 1.9; text-align: center; }

.about {
  width: min(870px, calc(100vw - 80px));
  margin: 0 auto;
  padding: 112px 0;
  text-align: center;
}
.about p { margin: 30px 0 0; color: var(--muted); font-size: 18px; line-height: 2; }

footer {
  width: var(--shell);
  margin: 0 auto;
  padding: 36px 0 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  border-top: 1px solid var(--line);
  color: #5a5d58;
  font-family: var(--sans);
  font-size: 13px;
}
.footer-title { margin: 0; font-family: var(--serif); letter-spacing: .12em; }
.filings { display: flex; align-items: center; gap: 24px; }
.filings a { display: inline-flex; align-items: center; gap: 7px; }
.filings a:hover { color: var(--cinnabar); }
.filings img { width: 18px; height: 20px; object-fit: contain; }

a:focus-visible { outline: 2px solid var(--cinnabar); outline-offset: 5px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

@media (max-width: 900px) {
  :root { --shell: min(100% - 48px, 760px); }
  .site-header { min-height: 74px; }
  .brand strong { font-size: 24px; }
  nav { gap: 22px; }
  .hero { min-height: 600px; }
  .hero-background { background-position: 58% center; opacity: .75; }
  .hero-copy { padding-top: 76px; }
  .hero h1 { max-width: 650px; font-size: 56px; }
  .work-entry { grid-template-columns: 1fr; gap: 30px; }
  .work-image { aspect-ratio: 16 / 7; }
  .work-copy { grid-template-columns: 46px 1fr; }
  .years { grid-template-columns: 1fr; gap: 44px; padding-inline: 48px; }
  footer { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 620px) {
  :root { --shell: calc(100% - 32px); }
  .site-header { min-height: 72px; }
  .brand { gap: 9px; }
  .brand strong { font-size: 20px; letter-spacing: .08em; }
  .brand-seal { width: 42px; height: 28px; }
  nav a:nth-child(3) { display: none; }
  nav { gap: 17px; }
  nav a { font-size: 13px; letter-spacing: .05em; }
  .hero { min-height: 650px; }
  .hero-background { background-position: 64% center; opacity: .5; }
  .hero-copy { padding: 74px 0 66px; }
  .hero h1 { font-size: clamp(42px, 12vw, 58px); line-height: 1.28; }
  .hero p { margin-top: 28px; font-size: 17px; line-height: 1.9; }
  .catalogue { padding: 76px 0 88px; }
  .section-heading { grid-template-columns: 1fr; gap: 18px; }
  .section-heading h2, .years h2, .about h2 { font-size: 38px; }
  .section-heading p { font-size: 16px; }
  .work-entry { padding: 30px 0 38px; }
  .work-image { aspect-ratio: 4 / 3; }
  .work-copy h3 { font-size: 42px; }
  .work-season { font-size: 18px; }
  .work-route { font-size: 15px; line-height: 1.7; }
  .years { padding: 70px 24px; }
  .years-frame { min-height: 180px; padding: 32px 26px; }
  .about { width: calc(100% - 40px); padding: 84px 0; }
  .about p { font-size: 17px; }
  footer { width: calc(100% - 32px); }
  .filings { align-items: flex-start; flex-direction: column; gap: 12px; }
}
