:root {
  --paper: #f7f2ea;
  --paper-2: #efe6d8;
  --card: #fffdf9;
  --ink: #2a1d17;
  --ink-soft: #5c4a40;
  --maroon: #7b2a1f;
  --maroon-deep: #5a1c14;
  --ochre: #a8822e;
  --ochre-soft: #e9d9b0;
  --line: #e0d4c2;
  --shadow: 0 1px 2px rgba(60, 35, 20, .06), 0 8px 24px rgba(60, 35, 20, .08);
  --radius: 14px;
  --max: 1160px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--maroon); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--maroon-deep); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.eyebrow {
  font: 600 .75rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase;
  color: var(--ochre); margin-bottom: 14px; display: block;
}
.lede { font-size: 1.12rem; color: var(--ink-soft); max-width: 62ch; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 100; background: var(--card); padding: 8px 12px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 242, 234, .9);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand-mark {
  font: 800 1.05rem/1 var(--sans); letter-spacing: .06em; color: var(--paper);
  background: var(--ochre); padding: 8px 9px 7px; border-radius: 6px;
}
.brand-name { font-family: var(--serif); font-size: 1.1rem; font-weight: 600; }
.brand-name small { display: block; font: 500 .68rem/1.2 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.nav { display: flex; gap: 4px; }
.nav a {
  text-decoration: none; color: var(--ink-soft); font-size: .92rem; font-weight: 500;
  padding: 8px 12px; border-radius: 8px;
}
.nav a:hover { color: var(--maroon); background: var(--paper-2); }
.nav a.cta { background: var(--maroon); color: #fff; }
.nav a.cta:hover { background: var(--maroon-deep); color: #fff; }
.menu-btn { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font: inherit; color: var(--ink); cursor: pointer; }

@media (max-width: 900px) {
  .menu-btn { display: block; }
  .nav {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 8px 16px 16px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px; }
}

/* Hero */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, #f9f5ee 0%, var(--paper) 100%); }
.hero .wrap { position: relative; z-index: 2; padding-top: 88px; padding-bottom: 150px; }
.hero-script {
  font-family: "Kaushan Script", "Brush Script MT", cursive;
  color: var(--maroon); font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0 0 6px;
}
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.4rem); max-width: 16ch; color: var(--ink);
}
.hero h1 em { font-style: normal; color: var(--maroon); }
.hero .lede { font-size: clamp(1.05rem, 1.6vw, 1.25rem); margin-top: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  padding: 13px 20px; border-radius: 10px; font-weight: 600; font-size: .95rem;
  border: 1px solid transparent; transition: transform .15s ease, background .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--maroon); color: #fff; }
.btn-primary:hover { background: var(--maroon-deep); color: #fff; }
.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--card); }
.btn-ghost:hover { border-color: var(--ochre); color: var(--ink); }
.strata { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 190px; z-index: 1; }
.hero-stats {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0;
  margin-top: 54px; max-width: 640px; border-top: 1px solid var(--line);
}
.hero-stats div { padding: 18px 16px 0 0; }
.hero-stats b { display: block; font: 600 1.9rem/1 var(--serif); color: var(--maroon); }
.hero-stats span { font-size: .85rem; color: var(--ink-soft); }

.hero-cover {
  position: absolute; z-index: 1; right: max(24px, calc((100vw - var(--max)) / 2 + 24px)); top: 56px;
  width: 300px; margin: 0; transform: rotate(3deg);
  box-shadow: 0 2px 4px rgba(60,35,20,.08), 0 24px 48px rgba(60,35,20,.18); border-radius: 4px; overflow: hidden;
}
.hero-cover img { width: 100%; height: 520px; object-fit: cover; object-position: top; }
@media (max-width: 1100px) { .hero-cover { display: none; } }

/* Sections */
section.block { padding: 96px 0; }
section.alt { background: var(--paper-2); }
.section-head { margin-bottom: 44px; }

/* About */
.about { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: start; }
.portrait { position: relative; }
.portrait img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4/4.4; object-fit: cover; object-position: 30% 30%; width: 100%; }
.portrait figcaption { margin-top: 12px; font-size: .88rem; color: var(--ink-soft); }
.portrait figcaption b { color: var(--ink); display: block; font-family: var(--serif); font-size: 1.05rem; }
.timeline { list-style: none; padding: 0; margin: 28px 0 0; border-left: 2px solid var(--ochre-soft); }
.timeline li { position: relative; padding: 0 0 18px 22px; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--paper); border: 2px solid var(--ochre); }
.timeline b { font-family: var(--serif); color: var(--maroon); margin-right: 8px; }

/* Activities */
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; }
.tile .num { font: 600 .8rem/1 var(--sans); color: var(--ochre); letter-spacing: .1em; }
.tile h3 { margin-top: 12px; }
.tile p { color: var(--ink-soft); font-size: .95rem; margin: 0; }
.note { margin-top: 28px; color: var(--ink-soft); max-width: 75ch; }

/* Doc cards */
.docs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.doc {
  display: flex; flex-direction: column; text-decoration: none; color: var(--ink);
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
}
.doc:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--ochre-soft); color: var(--ink); }
.doc-thumb { height: 190px; overflow: hidden; background: #fff; border-bottom: 1px solid var(--line); position: relative; }
.doc-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; filter: saturate(.9); transition: transform .4s ease; }
.doc:hover .doc-thumb img { transform: scale(1.03); }
.doc-thumb::after { content: ""; position: absolute; inset: auto 0 0 0; height: 50px; background: linear-gradient(transparent, rgba(255,253,249,.95)); }
.doc-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.tag { font: 600 .7rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ochre); margin-bottom: 8px; }
.doc-body h3 { margin: 0 0 6px; font-size: 1.15rem; }
.doc-body p { margin: 0; font-size: .92rem; color: var(--ink-soft); }
.doc-body .meta { margin-top: auto; padding-top: 14px; font-size: .82rem; color: var(--maroon); font-weight: 600; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filters button {
  font: 500 .88rem var(--sans); padding: 8px 14px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: var(--card); color: var(--ink-soft);
}
.filters button[aria-pressed="true"] { background: var(--maroon); border-color: var(--maroon); color: #fff; }

/* Products */
.products { display: grid; grid-template-columns: 2fr 1fr; gap: 28px; }
.plist { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 0; }
.plist h3 { padding: 16px 22px 6px; margin: 0; font-size: 1rem; font-family: var(--sans); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.plist ul { list-style: none; margin: 0; padding: 0; }
.plist li a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 13px 22px; text-decoration: none; color: var(--ink); border-top: 1px solid var(--line);
}
.plist li:first-child a { border-top: 0; }
.plist li a:hover { background: var(--paper); color: var(--maroon); }
.plist .el { display: flex; align-items: center; gap: 14px; }
.chip {
  font: 700 .72rem/1 var(--sans); min-width: 46px; text-align: center; padding: 7px 6px; border-radius: 6px;
  background: var(--ochre-soft); color: var(--maroon-deep);
}
.plist.retired .chip { background: var(--paper-2); color: var(--ink-soft); }
.plist .arrow { color: var(--ink-soft); font-size: .82rem; white-space: nowrap; }
.cols-2 ul { display: grid; grid-template-columns: 1fr 1fr; }
.cols-2 li:nth-child(2) a { border-top: 0; }
.cols-2 li:nth-child(odd) a { border-right: 1px solid var(--line); }
.order-card { background: var(--maroon); color: #f7ecdf; border-radius: var(--radius); padding: 28px; }
.order-card h3 { color: #fff; font-size: 1.4rem; }
.order-card a { color: #fff; }
.order-card .btn { background: #fff; color: var(--maroon); margin-top: 8px; }

/* News */
.news { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.news article { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.news time { font: 600 .75rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ochre); }
.news h3 { margin-top: 10px; }
.news p { color: var(--ink-soft); }

/* Publications */
.pubs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.pub { display: block; text-decoration: none; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; transition: border-color .2s; }
.pub:hover { border-color: var(--ochre); color: var(--ink); }
.pub p { color: var(--ink-soft); font-size: .93rem; margin: 0; }

/* Contact */
.contact { background: var(--ink); color: #e9ddcf; }
.contact h2, .contact h3 { color: #fff; }
.contact .eyebrow { color: var(--ochre-soft); }
.contact .lede { color: #cdbfb0; }
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 36px; }
.person { border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); padding: 28px; }
.person .role { color: var(--ochre-soft); font-size: .88rem; margin-bottom: 16px; }
.person dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: .95rem; }
.person dt { color: #a99a8b; }
.person dd { margin: 0; }
.person a { color: #fff; }

.site-footer { background: var(--ink); color: #a99a8b; border-top: 1px solid rgba(255,255,255,.1); font-size: .85rem; }
.site-footer .wrap { padding-top: 24px; padding-bottom: 28px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.site-footer a { color: #e9ddcf; }

/* Archive page */
.page-head { padding: 64px 0 24px; }
.archive-group { margin-bottom: 44px; }
.archive-group h2 { font-size: 1.5rem; }
.archive-list { list-style: none; margin: 0; padding: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.archive-list li a { display: flex; justify-content: space-between; gap: 16px; padding: 13px 20px; border-top: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.archive-list li:first-child a { border-top: 0; }
.archive-list li a:hover { background: var(--paper); color: var(--maroon); }
.archive-list .d { color: var(--ink-soft); font-size: .88rem; white-space: nowrap; }

@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .docs, .pubs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .products { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; gap: 32px; }
  .portrait img { aspect-ratio: 4/3; max-height: 420px; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  section.block { padding: 64px 0; }
  .hero .wrap { padding-top: 56px; padding-bottom: 170px; }
  .hero-stats span { display: block; line-height: 1.35; margin-top: 4px; }
  .grid-4, .docs, .pubs, .news, .contact-grid { grid-template-columns: 1fr; }
  .cols-2 ul { grid-template-columns: 1fr; }
  .cols-2 li:nth-child(2) a { border-top: 1px solid var(--line); }
  .cols-2 li:nth-child(odd) a { border-right: 0; }
  .hero-stats b { font-size: 1.5rem; }
  .brand-name small { display: none; }
  .person dl { grid-template-columns: 1fr; gap: 2px; }
  .person dd { margin-bottom: 8px; }
  .archive-list li a { flex-direction: column; gap: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* Hero portrait */
.hero-grid { display: grid; grid-template-columns: 7fr 5fr; gap: 56px; align-items: center; }
.hero-portrait { margin: 0; }
.hero .wrap.hero-grid { padding-top: 64px; padding-bottom: 200px; }
.hero-portrait img { aspect-ratio: 4/3.4; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-portrait { max-width: 480px; }
  .hero-portrait img { aspect-ratio: 4/3; }
}

/* Brochure script logotype */
.hero-script img { display: block; width: min(400px, 80vw); height: auto; margin: 0 0 14px -4px; }
