/* The Earth Science Journal — geological cross-section visual.
   Strata bands, section lines, rock tones. Square corners, no emoji, sans-serif. */
:root {
  --bg: #f1efe9;
  --paper: #f7f4ec;
  --panel: #e7e2d6;
  --ink: #383228;
  --muted: #6f6858;
  --line: #cfc9b8;
  --accent: #7a5c3a;
  --accent-dark: #5f462b;
  --s1: #7a5c3a;
  --s2: #9c8259;
  --s3: #b7a483;
  --s4: #6b6350;
  --s5: #4a4438;
  --c-cl: #2f6f6a;
  --c-ge: #7a5c3a;
  --c-hz: #9a4a2e;
  --c-oc: #2c5d7a;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.66;
  font-size: 16px;
}
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); text-decoration: underline; }

/* strata rule — reused accent band that echoes layered rock */
.strata-rule {
  height: 6px;
  background: repeating-linear-gradient(180deg,
    var(--s1) 0, var(--s1) 2px,
    var(--s3) 2px, var(--s3) 4px,
    var(--s4) 4px, var(--s4) 6px);
}

/* header */
.core-header { background: var(--paper); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.brand-mark {
  width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--ink); background: var(--s5);
}
.brand-mark span { width: 22px; height: 22px; display: block;
  background: repeating-linear-gradient(180deg,
    var(--s3) 0, var(--s3) 4px, var(--s1) 4px, var(--s1) 8px,
    var(--s2) 8px, var(--s2) 12px, var(--s4) 12px, var(--s4) 16px, var(--s5) 16px, var(--s5) 22px); }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-weight: 700; letter-spacing: .2px; }
.brand-tag { font-size: 11px; color: var(--muted); letter-spacing: 1px; text-transform: uppercase; }
.main-nav { display: flex; gap: 22px; }
.main-nav a { color: var(--ink); font-size: 14px; border-bottom: 2px solid transparent; padding-bottom: 3px; }
.main-nav a:hover { border-bottom-color: var(--accent); text-decoration: none; }

/* hero — the cross-section */
.strata-hero { background: var(--paper); border-bottom: 1px solid var(--line); }
.strata-hero .wrap { padding-top: 40px; padding-bottom: 34px; }
.hero-kicker { color: var(--accent); font-size: 12px; letter-spacing: 2.5px; font-weight: 700; margin-bottom: 12px; }
.strata-hero h1 { font-size: 36px; line-height: 1.12; font-weight: 700; margin-bottom: 14px; max-width: 760px; }
.hero-lede { max-width: 680px; color: var(--muted); font-size: 17px; }
.section-line {
  margin-top: 26px; height: 52px; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink);
  background: repeating-linear-gradient(180deg,
    var(--s1) 0, var(--s1) 7px,
    var(--s3) 7px, var(--s3) 12px,
    var(--s4) 12px, var(--s4) 16px,
    var(--s2) 16px, var(--s2) 26px,
    var(--s5) 26px, var(--s5) 30px,
    var(--s3) 30px, var(--s3) 36px,
    var(--s1) 36px, var(--s1) 44px,
    var(--s2) 44px, var(--s2) 52px);
}

/* sections */
section { padding: 30px 0; }
.section-label { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; font-weight: 700; }
.legend-list { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.legend-list li { font-size: 14px; color: var(--ink); border-left: 4px solid var(--line); padding-left: 12px; }
.legend-list li strong { display: block; font-size: 13px; letter-spacing: .3px; }

/* category (horizon) chips and cards */
.horizon-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.horizon-card {
  background: var(--paper); border: 1px solid var(--line); border-left: 6px solid var(--accent);
  padding: 16px; display: flex; flex-direction: column; gap: 6px; color: var(--ink);
}
.horizon-card:hover { border-color: var(--accent); text-decoration: none; }
.horizon-count { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; letter-spacing: .5px; }
.horizon-name { font-weight: 700; font-size: 17px; }
.horizon-proc { font-size: 12px; color: var(--muted); }

.cat-chip {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .7px; text-transform: uppercase;
  padding: 2px 8px; border: 1px solid currentColor;
}
.c-cl { color: var(--c-cl); }
.c-ge { color: var(--c-ge); }
.c-hz { color: var(--c-hz); }
.c-oc { color: var(--c-oc); }
.horizon-card.hc-cl { border-left-color: var(--c-cl); }
.horizon-card.hc-ge { border-left-color: var(--c-ge); }
.horizon-card.hc-hz { border-left-color: var(--c-hz); }
.horizon-card.hc-oc { border-left-color: var(--c-oc); }

/* group + specimen grid */
.group-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 16px; border-bottom: 2px solid var(--ink); padding-bottom: 8px; }
.group-head h2 { font-size: 22px; font-weight: 700; }
.group-more { font-size: 13px; }
.specimen-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }

.specimen-card {
  background: var(--paper); border: 1px solid var(--line);
  border-left: 6px solid var(--accent);
  padding: 16px; display: flex; flex-direction: column; gap: 10px; color: var(--ink);
}
.specimen-card:hover { border-color: var(--accent); text-decoration: none; }
.specimen-card.sc-cl { border-left-color: var(--c-cl); }
.specimen-card.sc-ge { border-left-color: var(--c-ge); }
.specimen-card.sc-hz { border-left-color: var(--c-hz); }
.specimen-card.sc-oc { border-left-color: var(--c-oc); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.card-title { font-weight: 700; font-size: 16px; line-height: 1.3; }
.card-process { font-size: 12px; color: var(--muted); border-top: 1px dotted var(--line); padding-top: 8px; }
.card-process b { color: var(--accent); letter-spacing: .4px; text-transform: uppercase; font-size: 10px; display: block; }
.card-desc { font-size: 13px; color: var(--muted); }

/* page head */
.page-head { padding: 36px 0 12px; }
.crumb { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.crumb a { color: var(--muted); }
.page-head h1 { font-size: 31px; line-height: 1.2; font-weight: 700; }
.lede { color: var(--muted); margin-top: 8px; }

/* item layout — specimen sheet + prose */
.specimen-layout { display: grid; grid-template-columns: 320px 1fr; gap: 30px; padding-top: 22px; padding-bottom: 40px; }
.specimen-sheet { align-self: start; background: var(--paper); border: 1px solid var(--line); border-top: 6px solid var(--accent); }
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.sheet-label { font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.fact-list { }
.fact-row { display: flex; border-bottom: 1px solid var(--line); font-size: 14px; }
.fact-row dt { flex: 0 0 42%; padding: 9px 14px; color: var(--muted); border-right: 1px solid var(--line); font-weight: 600; }
.fact-row dd { flex: 1; padding: 9px 14px; }
.fact-row dd ul { list-style: none; }
.fact-row dd li { padding: 1px 0; }

.prose { background: var(--paper); border: 1px solid var(--line); padding: 26px 30px; }
.prose .sec { margin-bottom: 24px; }
.prose .sec:last-child { margin-bottom: 0; }
.prose h2 { font-size: 19px; font-weight: 700; margin-bottom: 10px; display: flex; align-items: baseline; gap: 10px; }
.sec-num { color: var(--accent); font-variant-numeric: tabular-nums; font-size: 13px; border: 1px solid var(--accent); padding: 0 5px; }
.prose p { margin-bottom: 12px; color: #3d372c; }
.prose p:last-child { margin-bottom: 0; }
.related-list { list-style: none; margin: 0; padding: 0; }
.related-list li { padding: 6px 0; border-bottom: 1px solid var(--line); }

/* legal prose */
.page-head.legal { padding-bottom: 0; }
.prose.legal-prose h2 { font-size: 18px; display: block; }

/* footer */
.site-footer { background: var(--paper); margin-top: 20px; padding: 30px 0 26px; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.footer-brand { flex: 1 1 320px; }
.footer-brand p { color: var(--muted); font-size: 14px; margin-top: 6px; }
.footer-nav { display: flex; gap: 16px; }
.footer-nav a { color: var(--ink); font-size: 14px; }
.copyright { flex: 1 1 100%; font-size: 12px; color: var(--muted); margin-top: 10px; }

@media (max-width: 900px) {
  .horizon-grid { grid-template-columns: repeat(2, 1fr); }
  .specimen-grid { grid-template-columns: repeat(2, 1fr); }
  .legend-list { grid-template-columns: 1fr; }
  .specimen-layout { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .horizon-grid, .specimen-grid { grid-template-columns: 1fr; }
  .header-inner { flex-direction: column; gap: 10px; }
  .main-nav { gap: 14px; }
  .strata-hero h1 { font-size: 28px; }
}
