/* TopoPlate: one page, no frameworks, no web fonts, no trackers. */

:root {
  --paper: #f4ecdc;
  --paper-deep: #ebe0c9;
  --ink: #2e2116;
  --sepia: #7a4f2a;
  --rule: #c9b48f;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --display: Didot, "Bodoni 72", "Bodoni MT", "Iowan Old Style", Georgia, serif;
}

* { box-sizing: border-box; }

html { background: var(--paper); color: var(--ink); }

body {
  margin: 0 auto;
  max-width: 72rem;
  padding: 0 1.25rem;
  font: 1.0625rem/1.6 var(--serif);
}

a { color: var(--sepia); }
a:focus-visible, .cta:focus-visible { outline: 3px solid var(--sepia); outline-offset: 3px; }

/* --- Masthead: a title block, like the one on the sheet --- */
.masthead {
  text-align: center;
  padding: 3.5rem 0 2.5rem;
  border-bottom: 1px solid var(--rule);
}
.wordmark {
  margin: 0;
  font: 400 clamp(2.4rem, 7vw, 4.2rem)/1 var(--display);
  letter-spacing: 0.06em;
}
.masthead h1 {
  max-width: 38rem;
  margin: 1rem auto 0;
  font-size: clamp(1.05rem, 2.4vw, 1.3rem);
  font-weight: 400;
  font-style: italic;
}
.cta-wrap { margin: 2rem 0 0.5rem; }
.cta {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.95rem;
  border: 1px solid var(--ink);
  box-shadow: 0 0 0 3px var(--paper), 0 0 0 4px var(--ink);
}
.cta:hover { background: var(--sepia); border-color: var(--sepia); }
.cta-note { margin: 0.75rem 0 0; font-size: 0.9rem; color: var(--sepia); }

/* --- Section heads: letterspaced small caps between rules --- */
h2 {
  margin: 3rem 0 1.5rem;
  text-align: center;
  font-weight: 400;
  font-size: 0.95rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

/* --- The six maps, each on a mat --- */
.maps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fill, minmax(min(17rem, 100%), 1fr));
}
figure { margin: 0; }
.mat {
  aspect-ratio: 1 / 1;
  display: grid;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  place-items: center;
  padding: 1.25rem;
  background: var(--paper-deep);
  border: 1px solid var(--rule);
}
.mat img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  box-shadow: 0 1px 2px rgba(46, 33, 22, 0.25), 0 6px 18px rgba(46, 33, 22, 0.18);
}
figcaption { margin-top: 0.75rem; text-align: center; font-size: 0.95rem; }
figcaption strong { display: block; font-weight: 600; }
.to-shop { text-align: center; margin: 2rem 0 0; }

/* --- How they're made --- */
.how ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.5rem 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(min(16rem, 100%), 1fr));
  counter-reset: step;
}
.how li { counter-increment: step; }
.how h3 {
  margin: 0 0 0.4rem;
  font-weight: 600;
  font-size: 1.05rem;
}
.how h3::before { content: counter(step, upper-roman) ". "; color: var(--sepia); }
.how p { margin: 0; }

.contact { text-align: center; }

/* --- Footer: the credit lines, set small as on the sheet --- */
footer {
  margin-top: 3.5rem;
  padding: 1.5rem 0 2.5rem;
  border-top: 1px solid var(--rule);
  text-align: center;
  font-size: 0.8rem;
  color: #5a4532;
}
footer p { margin: 0.3rem 0; }

@media (prefers-reduced-motion: no-preference) {
  .cta { transition: background-color 0.15s; }
}

/* Per-map links to the Etsy print and download listings */
.buy { display: block; margin-top: 0.25rem; font-size: 0.9rem; letter-spacing: 0.04em; }
