/* Un Mètre de Cuivre — paper-and-iron palette */
:root {
  --paper: #f6f0e4;
  --paper-dim: #efe6d2;
  --iron: #1d1b17;
  --iron-soft: #2a2721;
  --slate: #4a4f54;
  --mute: #7a716a;
  --rule: rgba(29, 27, 23, 0.14);
  --copper: #a66a38;
  --copper-dim: #8f5a2d;
  --bar: 4px;
  --col-max: 68ch;
  --page-max: 1120px;
}

* { box-sizing: border-box; }

html, body { background: var(--paper); color: var(--iron); }
body {
  font-family: "EB Garamond", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-size: 18px;
  line-height: 1.55;
  margin: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

main, header, footer, nav, section, article { position: relative; z-index: 1; }

a { color: var(--iron); text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--copper); color: var(--copper-dim); }

/* Shell */
.shell {
  max-width: var(--page-max);
  padding: 32px 36px 72px;
  margin: 0 auto;
}

/* Masthead */
.mast {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 40px;
}
.mast-title {
  font-family: "EB Garamond", Georgia, serif;
  font-weight: 500;
  font-size: 34px;
  line-height: 1;
  letter-spacing: -0.005em;
  margin: 0 0 6px;
}
.mast-title a { text-decoration: none; }
.mast-sub {
  font-family: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mute);
}
.mast-nav {
  display: flex;
  gap: 20px;
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
  flex-wrap: wrap;
  justify-content: flex-end;
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.04em;
}
.mast-nav a { text-decoration: none; color: var(--slate); }
.mast-nav a:hover { color: var(--copper); }
.mast-nav a[aria-current="page"] { color: var(--iron); text-decoration: underline; text-decoration-color: var(--copper); text-underline-offset: 4px; }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: start;
  margin: 24px 0 72px;
}
.hero-text {
  max-width: 48ch;
}
.hero-kicker {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--copper-dim);
  margin: 0 0 14px;
}
.hero-h {
  font-family: "EB Garamond", Georgia, serif;
  font-weight: 500;
  font-size: 42px;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 20px;
}
.hero-h em {
  font-style: italic;
  color: var(--copper-dim);
}
.hero-lede {
  font-size: 19px;
  line-height: 1.55;
  color: var(--slate);
  margin: 0 0 16px;
}
.hero-meta {
  display: flex;
  gap: 18px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mute);
}
.hero-meta span { border-left: 2px solid var(--copper); padding-left: 10px; }
.hero-meta span:first-child { border: 0; padding: 0; }

.hero-print {
  position: relative;
}
.plate {
  background: var(--iron);
  color: var(--paper-dim);
  padding: 10px;
  box-shadow: 0 1px 0 var(--iron-soft), 0 24px 40px -22px rgba(29, 27, 23, 0.35);
  transform: rotate(-0.4deg);
}
.plate svg { width: 100%; height: auto; display: block; }
.plate-caption {
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--paper-dim);
  text-transform: uppercase;
  padding: 10px 2px 2px;
  display: flex;
  justify-content: space-between;
  opacity: 0.78;
}

/* Section titles */
.section-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin: 72px 0 24px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--rule);
}
.section-head h2 {
  font-family: "EB Garamond", Georgia, serif;
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.005em;
  margin: 0;
}
.section-head .tag {
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mute);
}

/* Grid of posts */
.post-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px 40px;
}
.post {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.post-thumb {
  background: var(--iron);
  padding: 8px;
}
.post-thumb svg { display: block; width: 100%; height: auto; }
.post-date {
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mute);
  margin: 10px 0 0;
}
.post h3 {
  font-family: "EB Garamond", Georgia, serif;
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.005em;
  margin: 2px 0 4px;
}
.post h3 a { text-decoration: none; }
.post h3 a:hover { color: var(--copper-dim); }
.post-excerpt {
  font-size: 17px;
  color: var(--slate);
  margin: 0;
  line-height: 1.5;
}

/* Field notes list */
.notes-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px 48px;
}
.notes-list li {
  border-top: 1px solid var(--rule);
  padding-top: 14px;
}
.notes-list .n-coord {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--copper-dim);
  text-transform: uppercase;
  margin: 0 0 4px;
}
.notes-list h3 { font-size: 20px; margin: 0 0 6px; font-weight: 500; }
.notes-list p { margin: 0; color: var(--slate); font-size: 16px; }

/* Article body */
.article {
  max-width: var(--col-max);
  margin: 0 auto;
}
.article .meta {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mute);
  margin: 0 0 20px;
}
.article h1 {
  font-family: "EB Garamond", Georgia, serif;
  font-weight: 500;
  font-size: 40px;
  line-height: 1.1;
  margin: 8px 0 24px;
  letter-spacing: -0.01em;
}
.article p { margin: 0 0 18px; }
.article p + p { text-indent: 1.5em; }
.article .figure {
  margin: 36px 0 32px;
}
.article .figure .plate { transform: rotate(0.3deg); }
.article h2 {
  font-family: "EB Garamond", Georgia, serif;
  font-weight: 500;
  font-size: 24px;
  margin: 36px 0 12px;
}
.article blockquote {
  border-left: 3px solid var(--copper);
  margin: 24px 0;
  padding: 2px 0 2px 20px;
  color: var(--slate);
  font-style: italic;
}
.article .end {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--mute);
  text-align: center;
  margin: 40px 0 0;
  text-transform: uppercase;
}

/* Field notes page detail */
.coord-block {
  display: inline-block;
  padding: 2px 8px;
  background: var(--paper-dim);
  border: 1px solid var(--rule);
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.04em;
}

/* Footer */
.foot {
  margin-top: 96px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 32px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--mute);
}
.foot h4 {
  font-family: "EB Garamond", Georgia, serif;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0;
  margin: 0 0 10px;
  color: var(--iron);
  text-transform: none;
}
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot li { margin: 4px 0; }
.foot a { color: var(--slate); text-decoration: none; }
.foot a:hover { color: var(--copper-dim); }
.foot-legal {
  grid-column: 1 / -1;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

/* Responsive */
@media (max-width: 860px) {
  .shell { padding: 20px 20px 48px; }
  .mast { grid-template-columns: 1fr; }
  .mast-nav { justify-content: flex-start; margin-top: 10px; }
  .hero { grid-template-columns: 1fr; gap: 32px; margin: 16px 0 48px; }
  .hero-h { font-size: 32px; }
  .post-grid, .notes-list { grid-template-columns: 1fr; gap: 32px; }
  .article h1 { font-size: 30px; }
  .foot { grid-template-columns: 1fr 1fr; }
}

/* Cookie banner */
.cookie {
  position: fixed;
  left: 20px; right: 20px; bottom: 20px;
  background: var(--iron);
  color: var(--paper-dim);
  padding: 14px 18px;
  z-index: 10;
  display: flex; gap: 14px; align-items: center; justify-content: space-between;
  box-shadow: 0 10px 30px -10px rgba(0,0,0,0.4);
  transform: translateY(140%);
  transition: transform 0.4s ease;
}
.cookie.open { transform: translateY(0); }
.cookie p { margin: 0; font-size: 13px; font-family: "IBM Plex Mono", monospace; letter-spacing: 0.02em; max-width: 60ch; }
.cookie button {
  background: var(--copper);
  color: var(--paper);
  border: 0;
  padding: 8px 14px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}
.cookie button.ghost { background: transparent; color: var(--paper-dim); border: 1px solid rgba(246,240,228,0.2); }
