/* The Field Marks Journal — Field Notebook
   bg #f2efe6 · accent #2f6b4f · ink #2a2a22 · serif
   motif: field-mark arrows, small square dots, muted green
   NOTE: square corners throughout — no border-radius anywhere. */

:root {
  --bg: #f2efe6;
  --bg2: #faf8f1;
  --accent: #2f6b4f;
  --accent2: #5a8a6d;
  --ink: #2a2a22;
  --muted: #6f6c5d;
  --line: rgba(47, 107, 79, 0.28);
  --line-soft: rgba(42, 42, 34, 0.14);
  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", "Book Antiqua", "Times New Roman", serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.field {
  margin: 0;
  font-family: var(--serif);
  color: var(--ink);
  background:
    linear-gradient(rgba(47, 107, 79, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47, 107, 79, 0.035) 1px, transparent 1px),
    var(--bg);
  background-size: 28px 28px;
  line-height: 1.7;
  font-size: 17px;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.nave-inner { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ---- header ---- */
.field-head {
  background: rgba(242, 239, 230, 0.94);
  border-bottom: 1px solid var(--line);
}
.head-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 14px;
  padding-bottom: 14px;
  flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 14px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-size: 1.22rem; font-weight: 700; letter-spacing: 0.01em; }
.brand-tag { font-size: 0.72rem; color: var(--muted); letter-spacing: 0.06em; }

/* field-guide annotation arrow (logo mark) — sharp corners only */
.fieldmark {
  display: inline-block;
  width: 30px;
  height: 26px;
  position: relative;
  flex: 0 0 auto;
}
.fieldmark::before {
  content: "";
  position: absolute;
  left: 0; top: 11px;
  width: 20px; height: 4px;
  background: var(--accent);
}
.fieldmark::after {
  content: "";
  position: absolute;
  left: 16px; top: 3px;
  width: 0; height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 14px solid var(--accent);
}
.fieldmark.small { width: 20px; height: 18px; }
.fieldmark.small::before { top: 7px; width: 13px; height: 3px; }
.fieldmark.small::after { left: 10px; top: 1px; border-top-width: 8px; border-bottom-width: 8px; border-left-width: 10px; }

.trail-nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.trail-nav a {
  color: var(--ink);
  font-size: 0.82rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}
.trail-nav a:hover { color: var(--accent); border-bottom-color: var(--accent); text-decoration: none; }

/* field-mark arrow band */
.field-band {
  height: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='36' viewBox='0 0 72 36'%3E%3Cpath d='M6 14 L30 14 L30 10 L40 18 L30 26 L30 22 L6 22 Z' fill='%232f6b4f' opacity='0.22'/%3E%3Crect x='48' y='16' width='5' height='5' fill='%232f6b4f' opacity='0.22'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-position: center top;
  background-size: 72px 36px;
  opacity: 0.9;
}

/* ---- hero (field desk) ---- */
.guide-hero { padding: 58px 0 40px; }
.hero-kicker {
  color: var(--accent);
  font-size: 0.76rem;
  letter-spacing: 0.22em;
  margin: 0 0 14px;
}
.guide-hero h1 {
  font-size: clamp(2rem, 4.4vw, 3rem);
  line-height: 1.15;
  margin: 0 0 18px;
  max-width: 22ch;
  font-weight: 700;
}
.hero-lede { font-size: 1.12rem; color: var(--muted); max-width: 62ch; margin: 0; }

/* ---- habitat nav ---- */
.habitat-nav { margin: 34px auto 8px; }
.guide-label {
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--line-soft);
  padding-bottom: 8px;
  margin: 0 0 20px;
}
.habitat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}
.habitat-tile {
  display: block;
  border: 1px solid var(--line);
  background: var(--bg2);
  padding: 20px 18px 18px;
  color: var(--ink);
  position: relative;
}
.habitat-tile:hover { text-decoration: none; border-color: var(--accent); background: #fff; }
.tile-mark {
  display: block;
  width: 26px;
  height: 20px;
  position: relative;
  margin-bottom: 12px;
}
.tile-mark::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 16px; height: 3px;
  background: var(--accent);
}
.tile-mark::after {
  content: "";
  position: absolute;
  left: 12px; top: 2px;
  width: 0; height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 11px solid var(--accent);
}
.tile-name { display: block; font-size: 1.16rem; font-weight: 700; }
.tile-count { display: block; font-size: 0.78rem; color: var(--muted); letter-spacing: 0.04em; margin-top: 4px; }

/* ---- grouped sections ---- */
.guide-section { margin: 46px auto 0; }
.guide-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 10px;
  margin-bottom: 24px;
}
.guide-head h2 { margin: 0; font-size: 1.5rem; }
.guide-more { font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; }
.card-rail {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 22px;
}

/* ---- field card ---- */
.field-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--bg2);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  padding: 20px 20px 22px;
  color: var(--ink);
}
.field-card:hover {
  text-decoration: none;
  border-color: var(--accent);
  border-top-color: var(--accent2);
  box-shadow: 0 10px 26px rgba(42, 42, 34, 0.09);
}
.sigil {
  align-self: flex-start;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 3px 9px;
  color: #fff;
  background: var(--accent);
}
.s-backyard { background: #3a6b35; }
.s-raptor { background: #7a4a2b; }
.s-water { background: #2f6d8a; }
.s-woodland { background: #4a5d2f; }
.s-open { background: #a8823a; }

.card-title { font-size: 1.24rem; font-weight: 700; line-height: 1.3; }
.card-facts { display: grid; gap: 7px; border-top: 1px solid var(--line-soft); padding-top: 12px; }
.cf { display: grid; grid-template-columns: 78px 1fr; gap: 10px; font-size: 0.86rem; }
.cf dt { color: var(--muted); letter-spacing: 0.03em; }
.cf dd { margin: 0; }
.card-desc { font-size: 0.9rem; color: var(--muted); }

/* ---- page head ---- */
.page-head { padding: 40px 24px 22px; border-bottom: 1px solid var(--line-soft); margin-bottom: 30px; }
.crumb { font-size: 0.82rem; color: var(--muted); margin: 0 0 10px; letter-spacing: 0.03em; }
.page-head h1 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); line-height: 1.18; margin: 0 0 10px; max-width: 30ch; }
.lede { color: var(--muted); margin: 0; }

/* ---- entry page: field card panel + prose ---- */
.entry-frame {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 44px;
  align-items: start;
  padding-bottom: 30px;
}
.field-panel {
  position: sticky;
  top: 20px;
  background: var(--bg2);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  padding: 20px;
}
.panel-head { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; margin-bottom: 16px; }
.panel-label { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.panel-facts { margin: 0; display: grid; gap: 12px; }
.fact-row { border-bottom: 1px solid var(--line-soft); padding-bottom: 10px; }
.fact-row:last-child { border-bottom: 0; padding-bottom: 0; }
.fact-row dt { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; }
.fact-row dd { margin: 0; font-size: 0.98rem; }

/* ---- prose ---- */
.entry { max-width: 720px; }
.sec { margin: 0 0 34px; }
.sec h2 {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 1.42rem;
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line-soft);
}
.sec-num {
  flex: 0 0 auto;
  font-size: 0.86rem;
  color: #fff;
  background: var(--accent);
  padding: 2px 9px;
  letter-spacing: 0.05em;
}
.entry p { margin: 0 0 16px; }
.entry.legal { padding-top: 0; padding-bottom: 50px; }
.entry.legal h2 { font-size: 1.24rem; margin-top: 28px; }

.related-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.related-list li { border-left: 2px solid var(--line); padding-left: 12px; }
.related-list a { color: var(--ink); font-size: 1rem; }
.related-list a:hover { color: var(--accent); }

/* ---- footer ---- */
.field-foot { margin-top: 60px; border-top: 1px solid var(--line); background: rgba(250, 248, 241, 0.7); }
.foot-inner { display: flex; flex-wrap: wrap; gap: 26px; align-items: center; justify-content: space-between; padding-top: 30px; padding-bottom: 30px; }
.foot-brand { max-width: 46ch; }
.foot-brand .brand-name { display: inline-block; margin-left: 10px; vertical-align: middle; font-weight: 700; }
.foot-brand p { margin: 10px 0 0; color: var(--muted); font-size: 0.9rem; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.foot-nav a { color: var(--ink); font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase; }
.foot-nav a:hover { color: var(--accent); }
.copyright { flex-basis: 100%; margin: 0; color: var(--muted); font-size: 0.8rem; border-top: 1px solid var(--line-soft); padding-top: 16px; }

/* ---- responsive ---- */
@media (max-width: 860px) {
  .entry-frame { grid-template-columns: 1fr; gap: 28px; }
  .field-panel { position: static; }
  .guide-hero { padding: 40px 0 28px; }
  .guide-head { flex-wrap: wrap; }
}
@media (max-width: 560px) {
  body.field { font-size: 16px; }
  .head-inner { gap: 12px; }
  .trail-nav { gap: 4px 12px; }
  .trail-nav a { font-size: 0.74rem; }
  .cf { grid-template-columns: 1fr; gap: 2px; }
  .habitat-grid { grid-template-columns: 1fr; }
  .card-rail { grid-template-columns: 1fr; }
}
