/* ============================================================
   1820 Arlington — shared styles
   Warm coastal editorial. Sun-faded palette, serif/italic display,
   tight monospace captions.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Inter+Tight:wght@300;400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --shell:        #F4EDE2;   /* paper / sand */
  --shell-2:      #ECE2D1;   /* deeper paper */
  --shell-3:      #E2D5BD;   /* tonal block */
  --ink:          #1B2A2E;   /* deep intracoastal */
  --ink-2:        #2C3D40;
  --ink-soft:     #4F6065;
  --tile:         #C46B4A;   /* terracotta */
  --tile-deep:    #A35637;
  --palm:         #7A8B6F;   /* palm green */
  --palm-deep:    #5C6E54;
  --rule:         rgba(27, 42, 46, 0.18);
  --rule-soft:    rgba(27, 42, 46, 0.10);

  --serif:  'Instrument Serif', 'Cormorant Garamond', Georgia, serif;
  --sans:   'Inter Tight', system-ui, -apple-system, sans-serif;
  --mono:   'JetBrains Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  background: var(--shell);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Background grain — subtle warm noise */
body::before {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.35;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.42  0 0 0 0 0.32  0 0 0 0 0.22  0 0 0 0.08 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  mix-blend-mode: multiply;
}

/* ---------- Type ---------- */

.display, h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 0.96;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h1 { font-size: clamp(56px, 9vw, 148px); margin: 0; }
h2 { font-size: clamp(40px, 5.5vw, 88px); margin: 0; }
h3 { font-size: clamp(26px, 2.6vw, 40px); margin: 0; }

em, .italic { font-style: italic; }

p { text-wrap: pretty; max-width: 62ch; }
.lede { font-size: 22px; line-height: 1.4; max-width: 32ch; }

.eyebrow,
.caption,
.mono {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 400;
}
.caption { text-transform: none; letter-spacing: 0.02em; font-size: 12px; }

a { color: inherit; text-decoration: none; }
a.link { border-bottom: 1px solid var(--rule); padding-bottom: 1px; transition: border-color .2s; }
a.link:hover { border-color: var(--ink); }

hr.rule { border: 0; border-top: 1px solid var(--rule); margin: 0; }

/* ---------- Layout primitives ---------- */

.wrap {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 48px;
}
@media (max-width: 720px) {
  .wrap { padding: 0 22px; }
}

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

/* ---------- Top nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 237, 226, 0.86);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule-soft);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 0;
}
.nav-mark {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: -0.01em;
  display: flex; align-items: baseline; gap: 10px;
}
.nav-mark .num { font-style: italic; color: var(--tile); }
.nav-links {
  display: flex; gap: 36px; align-items: center;
}
.nav-links a {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  position: relative;
  padding-bottom: 4px;
  transition: color .2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a.active::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: -19px;
  height: 1px;
  background: var(--tile);
}
.nav-cta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  padding: 10px 16px;
  color: var(--ink);
  transition: background .2s, color .2s;
}
.nav-cta:hover { background: var(--ink); color: var(--shell); }

/* ---------- Footer ---------- */

.foot {
  border-top: 1px solid var(--rule);
  margin-top: 120px;
  padding: 60px 0 40px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}
.foot-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
}
.foot h4 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 14px;
  color: var(--ink);
  font-weight: 500;
}
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.foot .colophon { font-family: var(--serif); font-size: 28px; line-height: 1.1; color: var(--ink); letter-spacing: -0.01em; }
.foot .colophon em { color: var(--tile); }
.foot .meta {
  margin-top: 50px;
  display: flex; justify-content: space-between;
  border-top: 1px solid var(--rule-soft);
  padding-top: 22px;
}

@media (max-width: 720px) {
  .foot-inner { grid-template-columns: 1fr 1fr; }
}

/* ---------- Placeholder image ---------- */

.ph {
  position: relative;
  background:
    repeating-linear-gradient(
      135deg,
      var(--shell-2) 0 14px,
      var(--shell-3) 14px 28px
    );
  border: 1px solid var(--rule);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  color: var(--ink-soft);
}
.ph.img { background: var(--shell-2); }
.ph.img > img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.ph.img > .label { display: none; }
.ph.img > .corner { background: rgba(244, 237, 226, 0.92); }
.ph.ink {
  background:
    repeating-linear-gradient(
      135deg,
      #243335 0 14px,
      #1B2A2E 14px 28px
    );
  border-color: rgba(255,255,255,0.08);
  color: rgba(244, 237, 226, 0.7);
}
.ph.tile-bg {
  background:
    repeating-linear-gradient(
      135deg,
      #C46B4A 0 14px,
      #B05E40 14px 28px
    );
  color: rgba(255,255,255,0.85);
  border-color: rgba(0,0,0,0.08);
}
.ph.palm-bg {
  background:
    repeating-linear-gradient(
      135deg,
      #8A9B7F 0 14px,
      #7A8B6F 14px 28px
    );
  color: rgba(255,255,255,0.85);
  border-color: rgba(0,0,0,0.08);
}
.ph .label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  padding: 10px 12px;
  background: rgba(244, 237, 226, 0.92);
  margin: 12px;
  border: 1px solid var(--rule);
  color: var(--ink);
  max-width: calc(100% - 24px);
}
.ph .corner {
  position: absolute;
  top: 12px; right: 12px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  background: rgba(244, 237, 226, 0.92);
  border: 1px solid var(--rule);
  padding: 5px 8px;
  color: var(--ink);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 14px 22px;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background .2s, color .2s;
}
.btn:hover { background: var(--ink); color: var(--shell); }
.btn.solid { background: var(--ink); color: var(--shell); }
.btn.solid:hover { background: var(--tile); border-color: var(--tile); }
.btn .arrow { display: inline-block; transition: transform .2s; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Section header ---------- */

.section-head {
  display: flex;
  align-items: baseline;
  gap: 28px;
  margin-bottom: 36px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--rule);
}
.section-head .num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--tile);
}
.section-head .label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.section-head .title {
  font-family: var(--serif);
  font-size: 28px;
  margin-left: auto;
  font-style: italic;
  color: var(--ink-soft);
}
.section-head h2.title {
  line-height: 1.2;
  letter-spacing: normal;
}

/* ---------- Marquee ticker ---------- */

.ticker {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
  white-space: nowrap;
  background: var(--shell-2);
}
.ticker-track {
  display: inline-block;
  padding: 14px 0;
  animation: ticker 60s linear infinite;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.ticker-track span { margin: 0 28px; }
.ticker-track .dot { color: var(--tile); }
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- Misc ---------- */

.tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid var(--rule);
  padding: 5px 10px;
  color: var(--ink-soft);
  background: var(--shell);
}
.tag.tile { color: var(--tile); border-color: rgba(196, 107, 74, 0.4); }
.tag.palm { color: var(--palm-deep); border-color: rgba(122, 139, 111, 0.5); }

/* Reveal helpers (CSS-only, prefers-reduced-motion-aware) */
@media (prefers-reduced-motion: no-preference) {
  .fade-in {
    animation: fadeIn 1.1s cubic-bezier(.2,.7,.2,1) both;
  }
  .fade-up {
    animation: fadeUp 1.1s cubic-bezier(.2,.7,.2,1) both;
  }
  @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
  @keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
}
