/* Garman Meridian — single-page holding house. Zero JS, zero external dependencies. */
:root {
  --vellum: #F5EFE2;
  --vellum-light: #FAF6EC;
  --vellum-deep: #ECE3D0;
  --ink: #231B14;
  --sepia: #574B40;
  --sepia-soft: #685B4E;
  --sanguine: #8B2C1D;
  --slate: #23404E;
  --rule: rgba(35, 27, 20, 0.18);
  --rule-strong: rgba(35, 27, 20, 0.42);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --radius: 2px;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
section[id], footer[id] { scroll-margin-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--vellum);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--sanguine); outline-offset: 3px; }

.wrap { width: min(var(--wrap), 100% - 64px); margin-inline: auto; }

.skip-link {
  position: absolute; left: 12px; top: -48px; z-index: 10;
  padding: 8px 14px; background: var(--ink); color: var(--vellum-light);
  border-radius: var(--radius); text-decoration: none; font-family: var(--sans); font-size: 14px;
}
.skip-link:focus { top: 12px; }

.folio {
  margin: 0;
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sepia-soft);
}

/* Header */
.masthead {
  position: sticky; top: 0; z-index: 5;
  min-height: 62px;
  background: rgba(245, 239, 226, 0.94);
  border-bottom: 1px solid var(--rule);
  backdrop-filter: saturate(1.1) blur(6px);
}
.masthead__inner { min-height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand__seal { width: 34px; height: 34px; flex: none; }
.brand__name {
  font-size: 15px; letter-spacing: 0.2em; text-transform: uppercase; white-space: nowrap;
}
.nav { display: flex; gap: 28px; font-family: var(--sans); font-size: 14px; }
.nav a { text-decoration: none; color: var(--sepia); white-space: nowrap; padding: 6px 0; border-bottom: 1px solid transparent; }
.nav a:hover { color: var(--ink); border-bottom-color: var(--sanguine); }

/* Screen 1 */
.front { padding: 88px 0 96px; }
.front__grid { display: grid; grid-template-columns: 5fr 6fr; gap: 72px; align-items: center; }
.astrolabe-svg { width: 76px; height: 76px; margin-bottom: 28px; }
h1 {
  margin: 14px 0 20px;
  font-weight: 400;
  font-size: clamp(44px, 5.6vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.01em;
}
.lede { margin: 0; max-width: 30ch; font-size: 21px; line-height: 1.5; color: var(--sepia); }
.front__links { margin: 32px 0 0; font-family: var(--sans); font-size: 14px; }
.front__links a { color: var(--sanguine); text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }

.plate { margin: 0; }
.matte {
  padding: 12px;
  background: var(--vellum-light);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 5px var(--vellum-light), inset 0 0 0 6px var(--rule);
}
.matte img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 1px; }
.plate figcaption { margin-top: 12px; font-family: var(--sans); font-size: 12px; letter-spacing: 0.08em; color: var(--sepia-soft); text-align: right; }

/* Screen 2: doors */
.houses { padding: 88px 0 72px; background: var(--vellum-light); border-block: 1px solid var(--rule); }
.section-head { margin-bottom: 40px; }
h2 { margin: 10px 0 0; font-weight: 400; font-size: clamp(30px, 3.2vw, 40px); line-height: 1.15; }
.doors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.door {
  display: flex; flex-direction: column;
  background: var(--vellum);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
}
.door__plate { display: block; border-bottom: 1px solid var(--rule); overflow: hidden; }
.door__plate img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform 0.6s ease; }
.door:hover .door__plate img { transform: scale(1.02); }
.door__body { display: flex; flex-direction: column; flex: 1; padding: 26px 28px 30px; }
.door__num { margin: 0 0 6px; font-size: 13px; letter-spacing: 0.2em; color: var(--sanguine); }
h3 { margin: 0 0 10px; font-weight: 400; font-size: 26px; line-height: 1.2; }
.door__mandate { margin: 0 0 14px; font-family: var(--sans); font-size: 13px; line-height: 1.45; color: var(--slate); font-weight: 600; }
.door__text { margin: 0 0 24px; font-size: 16px; color: var(--sepia); }
.btn {
  margin-top: auto; align-self: flex-start;
  display: inline-block; padding: 9px 16px;
  font-family: var(--sans); font-size: 13.5px; text-decoration: none; text-transform: lowercase;
  color: var(--ink); border: 2px solid var(--ink); border-radius: var(--radius);
  transition: background 0.2s ease, color 0.2s ease;
}
.btn:hover { background: var(--ink); color: var(--vellum-light); }

/* Shelf */
.shelf { padding: 56px 0; }
.shelf__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.tile {
  display: grid; grid-template-columns: 132px 1fr auto; gap: 20px; align-items: center;
  padding: 12px 20px 12px 12px;
  text-decoration: none;
  border: 1px solid var(--rule-strong); border-radius: var(--radius);
  background: var(--vellum-light);
  transition: border-color 0.2s ease;
}
.tile:hover { border-color: var(--ink); }
.tile img { width: 132px; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 1px; }
.tile__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.tile__title { font-size: 19px; }
.tile__meta { font-family: var(--sans); font-size: 13px; color: var(--sepia-soft); }
.tile__arrow { color: var(--sanguine); font-size: 18px; }

/* Contact + colophon */
.colophon { padding: 0 0 56px; }
.contact-band {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 32px;
  padding: 26px 0;
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--rule);
  font-family: var(--sans); font-size: 14px; color: var(--sepia);
}
.contact-band__mail { font-family: var(--serif); font-size: 24px; color: var(--sanguine); text-decoration: none; border-bottom: 1px solid transparent; }
.contact-band__mail:hover { border-bottom-color: currentColor; }
.contact-band__legal { color: var(--sepia); text-decoration: none; border-bottom: 1px solid var(--rule-strong); padding-bottom: 1px; }
.contact-band__legal:hover { color: var(--ink); border-bottom-color: var(--sanguine); }
.colophon__links {
  display: flex; flex-wrap: wrap; gap: 8px 22px; padding-top: 18px;
  font-family: var(--sans); font-size: 12.5px;
}
.colophon__links a { color: var(--sepia-soft); text-decoration: none; }
.colophon__links a:hover { color: var(--ink); text-decoration: underline; }

/* Legal & Privacy page */
.legal { padding: 64px 0 80px; }
.legal__inner { max-width: 760px; }
.legal__head { padding-bottom: 28px; margin-bottom: 36px; border-bottom: 1px solid var(--rule-strong); }
.legal__head h1 { font-size: clamp(34px, 4.4vw, 52px); margin: 12px 0 14px; }
.legal__updated { margin: 0; font-family: var(--sans); font-size: 13px; color: var(--sepia-soft); }
.legal__section { padding: 28px 0; border-bottom: 1px solid var(--rule); }
.legal__section:last-child { border-bottom: 0; }
.legal__section h2 { font-size: clamp(24px, 2.6vw, 30px); margin: 0 0 14px; }
.legal__section p { margin: 0 0 14px; color: var(--sepia); }
.legal__section p:last-child { margin-bottom: 0; }
.legal__section ul { margin: 0 0 14px; padding-left: 20px; color: var(--sepia); }
.legal__section li { margin-bottom: 8px; }
.legal__callout {
  margin: 18px 0;
  padding: 16px 20px;
  background: var(--vellum-light);
  border: 1px solid var(--rule-strong);
  border-left: 3px solid var(--sanguine);
  border-radius: var(--radius);
  color: var(--ink);
  font-size: 16px;
}
.legal__back { display: inline-block; margin-top: 28px; font-family: var(--sans); font-size: 14px; color: var(--sanguine); text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }

/* Tablet */
@media (max-width: 960px) {
  .front { padding: 56px 0 64px; }
  .front__grid { grid-template-columns: 1fr; gap: 44px; }
  .lede { max-width: 36ch; }
  .doors { grid-template-columns: 1fr; gap: 24px; }
  .door { flex-direction: row; }
  .door__plate { flex: 0 0 42%; border-bottom: 0; border-right: 1px solid var(--rule); }
  .door__plate img { height: 100%; aspect-ratio: auto; min-height: 220px; }
  .shelf__grid { grid-template-columns: 1fr; gap: 16px; }
}

/* Phone */
@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 40px); }
  .masthead__inner { padding: 6px 0; }
  .brand { gap: 10px; }
  .brand__seal { width: 30px; height: 30px; }
  .brand__name { font-size: 12.5px; letter-spacing: 0.14em; }
  .nav { gap: 2px 18px; font-size: 13px; flex-wrap: wrap; justify-content: flex-end; }
  .nav__long { display: none; }
  .folio { font-size: 10.5px; letter-spacing: 0.12em; }
  .front { padding: 40px 0 48px; }
  .astrolabe-svg { width: 60px; height: 60px; margin-bottom: 20px; }
  .lede { font-size: 18px; }
  .houses { padding: 56px 0 48px; }
  .section-head { margin-bottom: 28px; }
  .door { flex-direction: column; }
  .door__plate { border-right: 0; border-bottom: 1px solid var(--rule); }
  .door__plate img { aspect-ratio: 16 / 9; min-height: 0; height: auto; }
  .door__body { padding: 22px 22px 26px; }
  .shelf { padding: 40px 0; }
  .tile { grid-template-columns: 88px 1fr auto; gap: 14px; padding-right: 14px; }
  .tile img { width: 88px; }
  .tile__title { font-size: 17px; }
  .contact-band { flex-direction: column; gap: 6px; }
  .contact-band__mail { font-size: 21px; }
}
@media (max-width: 440px) {
  .brand__name { font-size: 11px; letter-spacing: 0.1em; }
  .nav { gap: 2px 12px; font-size: 12px; }
}
