/* Eau de Over Journal. Brand kit edition 1.0: ink on cream, gold for display
   only, SF for text and New York for headlines. System fonts, no requests. */

:root {
  color-scheme: light dark;
  --bg: #F6F3EE;
  --surface: #FFFFFF;
  --text: #1D1D1F;
  --text-2: #6E6E73;
  --gold: #A8874F;
  --gold-deep: #8F7040;
  --rule: #E3DCD0;
  --band: rgba(168, 135, 79, 0.16);
  --band-2: rgba(168, 135, 79, 0.32);
  --band-3: rgba(168, 135, 79, 0.55);
  --cool: #5E7C8A;
  --serif: "New York", ui-serif, "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "Segoe UI", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0A0908; --surface: #16130F; --text: #F6F3EE; --text-2: #A9A298;
    --gold: #C9A961; --gold-deep: #C9A961; --rule: #2A2520;
    --band: rgba(201, 169, 97, 0.14); --band-2: rgba(201, 169, 97, 0.28); --band-3: rgba(201, 169, 97, 0.5);
    --cool: #8FB3C2;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 18px/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; height: auto; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }
a { color: inherit; text-decoration-color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 3px; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--text); color: var(--bg); padding: 10px 16px; z-index: 10; }
.skip:focus { left: 12px; top: 12px; }

/* header, crumbs, footer */
.site-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 22px; padding-bottom: 22px; flex-wrap: wrap; }
.mark { font: 500 13px/1 var(--sans); letter-spacing: 0.34em; text-decoration: none; white-space: nowrap; }
.site-head nav { display: flex; gap: 22px; }
.site-head nav a { font-size: 15px; text-decoration: none; color: var(--text-2); min-height: 44px; display: inline-flex; align-items: center; }
.site-head nav a:hover { color: var(--text); }
.crumbs { font-size: 14px; color: var(--text-2); }
.crumbs a { color: var(--text-2); }
.site-foot { border-top: 1px solid var(--rule); margin-top: 72px; padding-top: 28px; padding-bottom: 48px; }
.site-foot p { margin: 0 0 10px; max-width: 68ch; }
.tagline { font-family: var(--serif); font-style: italic; color: var(--text-2); margin-left: 12px; }
.fine { font-size: 13px; line-height: 1.5; color: var(--text-2); }

/* article */
.prose { max-width: 68ch; margin: 0 auto; }
.art-head, .index-head { padding: 28px 0 8px; }
.kicker { font: 600 12px/1.4 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-deep); margin: 0 0 14px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.01em; line-height: 1.12; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(34px, 7vw, 54px); }
.dek { font-family: var(--serif); font-size: clamp(20px, 3.2vw, 23px); line-height: 1.45; color: var(--text-2); margin: 18px 0 0; }
.byline { font-size: 14px; color: var(--text-2); margin: 18px 0 0; padding-bottom: 22px; border-bottom: 1px solid var(--rule); }
.prose h2 { font-size: clamp(25px, 4.4vw, 31px); margin: 48px 0 14px; }
.prose h3 { font-size: 21px; margin: 32px 0 10px; }
.prose p, .prose li { margin: 0 0 18px; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 18px; }
.prose li { margin-bottom: 8px; }
.prose li::marker { color: var(--gold); }
blockquote { margin: 28px 0; padding: 2px 0 2px 20px; border-left: 2px solid var(--gold); font-family: var(--serif); font-size: 21px; line-height: 1.45; }
blockquote p { margin: 0; }
small.modelled { font-size: 11px; line-height: 1.3; color: var(--text-2); font-weight: 400; letter-spacing: 0; margin-left: 3px; }
figcaption small.modelled { display: block; margin: 6px 0 0; }

/* tables */
.table-wrap { overflow-x: auto; margin: 0 0 24px; -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; font-size: 16px; line-height: 1.5; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--rule); }
thead th { font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-2); font-weight: 600; }
tbody th { font-weight: 600; }

/* diagrams */
.diagram { margin: 32px 0; padding: 18px 16px 14px; background: var(--surface); border: 1px solid var(--rule); border-radius: 16px; }
.diagram svg { width: 100%; }
.diagram figcaption { font-size: 15px; line-height: 1.5; margin-top: 10px; }
.diagram text { font-family: var(--sans); }
.d-tick { font-size: 12px; fill: var(--text-2); }
.d-label { font-size: 13px; fill: var(--text); }
.d-strong { font-weight: 600; font-size: 15px; }
.d-grade { font-family: var(--serif) !important; font-size: 22px; font-weight: 600; fill: var(--gold-deep); }
.d-grid { stroke: var(--rule); stroke-width: 1; }
.d-axis { stroke: var(--text-2); stroke-width: 1; }
.d-line { fill: none; stroke: var(--gold); stroke-width: 2.6; stroke-linejoin: round; }
.d-you { fill: none; stroke: var(--text); stroke-width: 1.6; stroke-dasharray: 5 5; }
.d-cool { fill: none; stroke: var(--cool); stroke-width: 2.6; }
.d-thr { stroke: var(--text-2); stroke-width: 1; stroke-dasharray: 2 4; }
.d-mark { stroke: var(--text-2); stroke-width: 1; stroke-dasharray: 3 3; }
.d-area { fill: var(--band); }
.d-band { fill: var(--band); stroke: var(--gold); stroke-width: 1; }
.d-top { fill: var(--band); } .d-heart { fill: var(--band-2); } .d-base { fill: var(--band-3); }
.d-skin { fill: var(--band-2); } .d-skin2 { fill: var(--band); }
.d-film { fill: var(--gold); }
.d-arrow { fill: none; stroke: var(--text); stroke-width: 1.4; }
.d-head { fill: var(--text); }
.d-glass { fill: none; stroke: var(--text-2); stroke-width: 1.4; }
.d-cap { fill: var(--text-2); }
.d-juice { fill: var(--band-3); }

/* the In the app box */
.app-box { margin: 40px 0; padding: 22px 22px 6px; border-radius: 16px; background: var(--surface); border: 1px solid var(--rule); border-top: 3px solid var(--gold); }
.app-box .kicker { margin-bottom: 8px; }
.app-box p { font-size: 17px; }
.app-cta { margin-top: 4px; }
.btn { display: inline-flex; align-items: center; min-height: 46px; padding: 0 22px; border-radius: 12px; background: var(--text); color: var(--bg); font-weight: 600; font-size: 15px; text-decoration: none; }
.btn:hover { opacity: 0.9; }
.box { margin: 28px 0; padding: 18px 20px 2px; border-left: 3px solid var(--gold); background: var(--surface); border-radius: 0 12px 12px 0; }

/* sources and related */
.sources-title { font-size: 21px !important; margin-top: 56px !important; padding-top: 24px; border-top: 1px solid var(--rule); }
ol.sources { font-size: 14px; line-height: 1.55; color: var(--text-2); }
ol.sources li { margin-bottom: 10px; overflow-wrap: anywhere; }
ol.sources a { color: var(--text-2); }
.related { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--rule); }
.related h2 { font-size: 21px !important; margin: 0 0 14px !important; }
.related ul { list-style: none; padding: 0; }
.related li { margin: 0 0 14px; }
.related li a { font-family: var(--serif); font-size: 19px; font-weight: 600; text-decoration: none; }
.related li a:hover { text-decoration: underline; text-decoration-color: var(--gold); }
.related li span { display: block; font-size: 15px; color: var(--text-2); }

/* index cards */
.cards { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.card a { display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 22px; background: var(--surface); border: 1px solid var(--rule); border-radius: 16px; text-decoration: none; transition: border-color 0.2s ease; }
.card a:hover { border-color: var(--gold); }
.card .kicker { margin: 0; }
.card-title { font-family: var(--serif); font-weight: 600; font-size: 22px; line-height: 1.2; }
.card-dek { font-size: 16px; line-height: 1.5; color: var(--text-2); flex: 1; }
.card time { font-size: 13px; color: var(--text-2); }
hr.between { border: 0; border-top: 1px solid var(--rule); margin: 72px auto; max-width: 68ch; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
.index-head.prose { margin-left: 0; }
@media (max-width: 560px) {
  .diagram { padding: 14px 10px 12px; margin-left: -6px; margin-right: -6px; }
  .d-label { font-size: 17px; }
  .d-tick { font-size: 15px; }
  .d-strong { font-size: 18px; }
}
