/*  Alan Godfrey Maps - shared stylesheet
    One copy of this file sits at the web root. Every page in the site
    links it with:  <link rel="stylesheet" href="godfreymaps.css">

    Rules are grouped: tokens, base elements, page layout,
    sheet lists (index/area pages), leaf-page blocks, footer, media queries.
*/

/* ---- Design tokens ---------------------------------------------- */
:root {
  --paper: #fdfcf9;
  --ink: #22201d;
  --muted: #5c574f;
  --accent: #8b2c20;
  --accent-soft: #f3e9e6;
  --rule: #e0dbd2;
  --measure: 46rem;
}

/* ---- Base ------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1rem/1.6 Georgia, "Times New Roman", serif;
  -webkit-text-size-adjust: 100%;
}
a {
  color: var(--accent);
}
p {
  margin: 0 0 1rem;
}
p:last-child {
  margin-bottom: 0;
}

/* ---- Page shell ------------------------------------------------- */
.page {
  max-width: 56rem;
  margin: 0 auto;
  padding: 0 1.25rem 3rem;
}
header {
  text-align: center;
  padding: 1.5rem 0 0;
}
.banner {
  display: block;
  width: auto;
  max-width: min(20rem, 100%);
  height: auto;
  margin: 0 auto 1.5rem;
}
.banner-link {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 1.5rem;
}
.eyebrow {
  margin: 0;
  font: 0.8rem/1.4 system-ui, -apple-system, "Segoe UI", sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
h1 {
  margin: 0.35rem 0 0;
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  line-height: 1.15;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.lede {
  max-width: var(--measure);
  margin: 1.75rem auto 0;
  font-size: 1.0625rem;
}
.lede a {
  color: var(--accent);
}
main {
  max-width: var(--measure);
  margin: 0 auto;
}
hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 2.5rem auto;
  max-width: var(--measure);
}
h2 {
  margin: 1.75rem 0 0.75rem;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
h2:first-child {
  margin-top: 0;
}
section {
  scroll-margin-top: 1rem;
}

/* ---- Sheet lists (index and area pages) ------------------------- */
ul.sheets {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
}
ul.sheets li {
  position: relative;
  padding: 0.85rem 1rem 0.85rem 1.6rem;
  border-left: 3px solid var(--accent-soft);
}
ul.sheets li::before {
  content: "";
  position: absolute;
  left: 0.55rem;
  top: 1.25rem;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--accent);
}
ul.sheets a {
  color: var(--ink);
  font-weight: 600;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.sheet-no {
  display: block;
  font: 0.72rem/1.4 system-ui, -apple-system, "Segoe UI", sans-serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.colour-badge {
  display: inline-block;
  margin-top: 0.4rem;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font: 0.7rem/1.5 system-ui, -apple-system, "Segoe UI", sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.colour-badge img {
  display: inline-block;
  vertical-align: middle;
  width: auto;
  max-height: 1em;
  margin-right: 0.35rem;
}
.out-of-print {
  color: var(--muted);
  font-style: italic;
}
.as-note {
  display: block;
  margin: 0.75rem 0 0.35rem;
  font: 0.72rem/1.4 system-ui, -apple-system, "Segoe UI", sans-serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.note {
  padding: 1rem 1.25rem;
  background: var(--accent-soft);
  border-radius: 2px;
  font-size: 0.9375rem;
  margin: 0;
  color: var(--muted);
}

/* ---- Leaf page blocks ------------------------------------------- */
.intro-list {
  max-width: var(--measure);
  margin: 1.75rem auto 0;
  padding-left: 1.1rem;
}
.intro-list li {
  margin-bottom: 0.35rem;
}
.sheet {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  margin: 0 0 1.5rem;
}
.sheet img {
  flex: 0 0 11rem;
  width: 11rem;
  height: auto;
  border: 1px solid var(--rule);
  padding: 0.25rem;
  background: #fff;
}
.sheet-text {
  flex: 1 1 20rem;
}
.spec {
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  border-left: 3px solid var(--accent-soft);
  font-size: 0.9375rem;
  color: var(--muted);
}
.spec strong {
  color: var(--ink);
}
.spec img {
  vertical-align: middle;
  margin-left: 0.35rem;
}
.ref {
  font: 0.72rem/1.5 system-ui, -apple-system, "Segoe UI", sans-serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
figure {
  margin: 0;
}
figure img {
  display: block;
  max-width: 100%;
  height: auto;
}
.long-name {
  overflow-wrap: anywhere;
}
.thumb {
  float: right;
  width: 8.5rem;
  height: auto;
  margin: 0.25rem 0 1rem 1.25rem;
  border: 1px solid var(--rule);
  padding: 0.25rem;
  background: #fff;
}

/* ---- Price images ----------------------------------------------- */
.price {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 1.5rem;
  justify-content: center;
  text-align: left;
}
.price img {
  flex: 0 0 auto;
}
.price p {
  flex: 1 1 18rem;
  margin: 0;
}
.price-small {
  display: block;
  width: auto;
  max-width: 7rem;
  height: auto;
}

/* ---- Footer ----------------------------------------------------- */
nav.crumbs {
  max-width: var(--measure);
  margin: 0 auto;
  font: 0.9375rem/1.7 system-ui, -apple-system, "Segoe UI", sans-serif;
}
footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  max-width: var(--measure);
  margin-inline: auto;
  font: 0.9375rem/1.7 system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--muted);
}
footer a {
  color: var(--accent);
}
footer address {
  font-style: normal;
  margin-top: 0.5rem;
}
footer .contact {
  color: var(--ink);
  margin: 0;
}

/* ---- Remaining rules -------------------------------------------- */
:root {
  --paper: #fdfcf9;
  --ink: #22201d;
  --muted: #5c574f;
  --accent: #8b2c20;
  --accent-soft: #f3e9e6;
  --rule: #e0dbd2;
  --measure: 46rem;
}
ul.sheets a:hover {
  color: var(--accent);
}

/* ---- Narrow screens --------------------------------------------- */
@media (max-width: 34rem) { .sheet img { flex: 0 0 100%; width: 100%; max-width: 20rem; } }

@media (max-width: 30rem) { ul.sheets { grid-template-columns: 1fr; } .thumb { float: none; width: 100%; max-width: 14rem; margin: 0 0 1rem; } }

@media (max-width: 34rem) { ul.sheets { grid-template-columns: 1fr; } }

@media (max-width: 34rem) { ul.sheets { grid-template-columns: 1fr; } .sheet img { flex: 0 0 100%; width: 100%; max-width: 20rem; } }
