:root {
  color-scheme: light;
  --paper: #f7f7f2;
  --paper-strong: #ffffff;
  --ink: #111111;
  --muted: #67635c;
  --line: rgba(17, 17, 17, 0.18);
  --line-strong: rgba(17, 17, 17, 0.36);
  --red: #8f1f2f;
  --teal: #00766d;
  --gold: #d7a642;
  --graphite: #242424;
  --font-serif: "Iowan Old Style", "Noto Serif SC", "Songti SC", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

html {
  background: var(--paper);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(90deg, rgba(17, 17, 17, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, var(--paper), #ededeb 62%, var(--paper));
  background-size: 80px 80px, auto;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

body::selection {
  background: var(--red);
  color: var(--paper-strong);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
textarea,
select {
  font: inherit;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 100;
  transform: translateY(-180%);
  border: 1px solid var(--ink);
  background: var(--paper-strong);
  padding: 10px 14px;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  gap: 24px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: rgba(247, 247, 242, 0.92);
  padding: 14px 28px;
  backdrop-filter: blur(16px);
}

.brand {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.brand span {
  font-family: var(--font-serif);
  font-size: 1.34rem;
  font-weight: 700;
}

.brand small {
  color: var(--muted);
  font-size: 0.75rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: center;
}

.site-nav a,
.lang-button,
.filter-button,
.button,
.text-link {
  transition:
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.site-nav a {
  min-height: 36px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 7px 13px;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-nav a:hover,
.site-nav a.is-active {
  border-color: var(--line-strong);
  color: var(--ink);
}

.language-switch {
  display: grid;
  grid-template-columns: repeat(2, 44px);
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  background: var(--paper-strong);
}

.lang-button {
  height: 32px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.lang-button.is-active {
  background: var(--ink);
  color: var(--paper-strong);
}

.hero,
.page-hero,
.about-hero,
.section-block,
.contact-band,
.site-footer,
.index-strip {
  width: min(100% - 48px, 1280px);
  margin-inline: auto;
}

.hero-home {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  gap: 48px;
  align-items: center;
  min-height: 78svh;
  padding: 58px 0 46px;
}

.hero-copy {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-serif);
  line-height: 1.02;
}

h1 {
  max-width: 900px;
  font-size: 5.4rem;
  font-weight: 760;
}

h2 {
  font-size: 2.7rem;
}

h3 {
  font-size: 1.45rem;
}

.hero-intro,
.page-hero p,
.about-hero p {
  max-width: 680px;
  color: var(--graphite);
  font-size: 1.17rem;
}

.hero-intro {
  margin: 26px 0 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 11px 18px;
  font-weight: 800;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--ink);
  color: var(--paper-strong);
}

.button-primary:hover {
  background: var(--red);
  border-color: var(--red);
}

.button-quiet {
  background: rgba(255, 255, 255, 0.46);
}

.hero-visual {
  position: relative;
  margin: 0;
  min-width: 0;
}

.hero-visual img,
.about-hero img {
  width: 100%;
  height: 660px;
  border: 1px solid var(--line);
  object-fit: cover;
  filter: saturate(0.95) contrast(1.02);
}

.hero-visual figcaption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.52);
  color: var(--paper-strong);
  padding-top: 14px;
  text-transform: uppercase;
}

.index-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-block: 1px solid var(--line-strong);
}

.index-strip div {
  display: flex;
  min-height: 96px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-right: 1px solid var(--line);
  padding: 22px 24px;
}

.index-strip div:last-child {
  border-right: 0;
}

.index-strip span {
  color: var(--muted);
}

.index-strip strong {
  color: var(--teal);
  font-family: var(--font-serif);
  font-size: 2rem;
}

.section-block {
  padding: 92px 0;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
  margin-bottom: 34px;
}

.section-heading .eyebrow {
  grid-column: 1 / -1;
  margin-bottom: -10px;
}

.text-link {
  justify-self: end;
  border-bottom: 2px solid currentColor;
  color: var(--red);
  font-weight: 800;
}

.text-link:hover {
  color: var(--teal);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.archive-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.work-card {
  min-width: 0;
}

.work-card a {
  display: grid;
  height: 100%;
  min-height: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-strong);
  overflow: hidden;
}

.work-card a:hover {
  border-color: var(--ink);
}

.work-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.work-card-copy {
  display: grid;
  gap: 12px;
  padding: 22px;
}

.work-card-copy span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.work-card-copy p {
  margin: 0;
  color: var(--graphite);
}

.work-card.large {
  grid-row: span 2;
}

.work-card.large img {
  aspect-ratio: 4 / 4.35;
}

.section-ink {
  width: 100%;
  max-width: none;
  border-block: 1px solid var(--ink);
  background:
    linear-gradient(120deg, rgba(143, 31, 47, 0.28), transparent 40%),
    var(--ink);
  color: var(--paper-strong);
  padding-inline: max(24px, calc((100% - 1280px) / 2));
}

.section-ink .section-heading,
.section-ink .note-list {
  width: min(100%, 1280px);
  margin-inline: auto;
}

.section-ink .eyebrow,
.section-ink .text-link {
  color: var(--gold);
}

.section-ink p,
.section-ink time {
  color: rgba(247, 247, 242, 0.72);
}

.note-list {
  display: grid;
  border-top: 1px solid var(--line-strong);
}

.note-list article {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) minmax(160px, 0.32fr);
  gap: 28px;
  align-items: baseline;
  border-bottom: 1px solid var(--line);
  padding: 30px 0;
}

.note-list.compact article {
  grid-template-columns: 160px minmax(0, 1fr);
}

.note-list.compact article p {
  grid-column: 2;
}

.note-list time {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

.note-list p {
  margin: 0;
  color: var(--graphite);
}

.contact-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 30px;
  align-items: center;
  margin-bottom: 80px;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(0, 118, 109, 0.22), transparent 55%),
    var(--red);
  color: var(--paper-strong);
  padding: 34px;
}

.contact-band .eyebrow {
  color: rgba(247, 247, 242, 0.75);
}

.contact-band h2 {
  max-width: 820px;
}

.contact-band .button-primary {
  border-color: var(--paper-strong);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid var(--line);
  padding: 28px 0 42px;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer p {
  margin: 0;
}

.site-footer div {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.site-footer a:hover {
  color: var(--ink);
}

.page-hero {
  min-height: 48svh;
  border-bottom: 1px solid var(--line-strong);
  padding: 84px 0 54px;
}

.page-hero h1 {
  max-width: 1040px;
}

.page-hero p:last-child {
  margin-top: 24px;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.filter-button {
  min-width: 76px;
  min-height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--paper-strong);
  color: var(--graphite);
  cursor: pointer;
  font-weight: 800;
}

.filter-button:hover,
.filter-button.is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper-strong);
}

[hidden] {
  display: none !important;
}

.page-hero-notes {
  background:
    linear-gradient(90deg, rgba(215, 166, 66, 0.22), transparent),
    transparent;
}

.about-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.7fr);
  gap: 54px;
  align-items: center;
  min-height: 70svh;
  padding: 70px 0 58px;
}

.about-hero img {
  height: 540px;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.about-grid article {
  border-top: 4px solid var(--ink);
  background: var(--paper-strong);
  padding: 28px;
}

.statement-list {
  display: grid;
  gap: 18px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.statement-list li {
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
  color: var(--graphite);
  font-size: 1.08rem;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border: 1px solid var(--line-strong);
}

.tool-grid span {
  display: grid;
  min-height: 112px;
  place-items: center;
  border-right: 1px solid var(--line);
  padding: 16px;
  text-align: center;
  font-family: var(--font-serif);
  font-size: 1.12rem;
}

.tool-grid span:last-child {
  border-right: 0;
}

@media (max-width: 1100px) {
  h1 {
    font-size: 4.35rem;
  }

  h2 {
    font-size: 2.25rem;
  }

  .hero-home,
  .about-hero {
    grid-template-columns: 1fr;
  }

  .hero-visual img,
  .about-hero img {
    height: 520px;
  }

  .tool-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .tool-grid span {
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 860px) {
  .site-header {
    grid-template-columns: 1fr auto;
    gap: 12px;
    padding: 12px 18px;
  }

  .site-nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    order: 3;
  }

  .hero,
  .page-hero,
  .about-hero,
  .section-block,
  .contact-band,
  .site-footer,
  .index-strip {
    width: min(100% - 32px, 1280px);
  }

  .hero-home {
    min-height: auto;
    padding-top: 42px;
  }

  h1 {
    font-size: 3.42rem;
  }

  .hero-visual img,
  .about-hero img {
    height: 440px;
  }

  .index-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .index-strip div:nth-child(2) {
    border-right: 0;
  }

  .index-strip div {
    min-height: 84px;
  }

  .section-block {
    padding: 68px 0;
  }

  .work-grid,
  .archive-grid,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .work-card.large {
    grid-row: auto;
  }

  .work-card.large img {
    aspect-ratio: 4 / 3;
  }

  .note-list article,
  .note-list.compact article {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .note-list.compact article p {
    grid-column: auto;
  }

  .contact-band {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .brand small {
    white-space: normal;
  }

  .language-switch {
    grid-template-columns: repeat(2, 40px);
  }

  .site-nav a {
    min-height: 34px;
    padding: 6px 10px;
    font-size: 0.86rem;
  }

  h1 {
    font-size: 2.7rem;
  }

  h2 {
    font-size: 1.92rem;
  }

  h3 {
    font-size: 1.24rem;
  }

  .hero-intro,
  .page-hero p,
  .about-hero p {
    font-size: 1rem;
  }

  .hero-visual img,
  .about-hero img {
    height: 340px;
  }

  .section-heading {
    grid-template-columns: 1fr;
  }

  .text-link {
    justify-self: start;
  }

  .index-strip {
    grid-template-columns: 1fr;
  }

  .index-strip div,
  .index-strip div:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .index-strip div:last-child {
    border-bottom: 0;
  }

  .contact-band {
    padding: 24px;
  }

  .tool-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
