/* Colours lifted, loosely, from the wool of the real thing. */
:root {
  --linen: #efe6d2;
  --linen-dark: #e3d7bc;
  --ink: #2b2a26;
  --ink-soft: #5a554a;
  --terracotta: #a8472f;
  --ochre: #c9962f;
  --sage: #6f7f4f;
  --woad: #34506b;
  --moss: #3f4a32;

  --display: "IM Fell English", Georgia, serif;
  --caps: "IM Fell English SC", Georgia, serif;
  --body: "Libre Franklin", system-ui, sans-serif;

  --measure: 62ch;
  color-scheme: light;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--linen);
  /* faint weave */
  background-image:
    repeating-linear-gradient(0deg, rgba(0,0,0,.018) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(0,0,0,.018) 0 1px, transparent 1px 3px);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: var(--woad); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--terracotta); }

h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.05; margin: 0 0 .4em; }
h2 { font-size: clamp(2.2rem, 6vw, 3.6rem); }
h3 { font-size: 1.45rem; }

/* The Latin captions that run above each section, tapestry-style */
.latin {
  font-family: var(--caps);
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--terracotta);
  font-size: .95rem;
  margin: 0 0 .5rem;
}

/* Border band: stitched diamonds between two rows of running stitch */
.border-band {
  height: 34px;
  border-top: 3px dashed var(--woad);
  border-bottom: 3px dashed var(--woad);
  background-color: var(--linen-dark);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='28'%3E%3Cpath d='M0 14 L12 4 L24 14 L12 24 Z' fill='none' stroke='%23a8472f' stroke-width='3'/%3E%3Cpath d='M24 14 L36 4 L48 14 L36 24 Z' fill='%236f7f4f' fill-opacity='.55' stroke='%23c9962f' stroke-width='3'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-position: center;
}

/* Header */
.top {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  align-items: baseline;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 16px;
}
.wordmark {
  font-family: var(--display);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--ink);
  text-decoration: none;
}
.top nav { display: flex; flex-wrap: wrap; gap: .25rem 1.1rem; font-size: .92rem; }
.top nav a { color: var(--ink-soft); text-decoration: none; border-bottom: 2px solid transparent; }
.top nav a:hover { color: var(--terracotta); border-bottom-color: var(--ochre); }

main > section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4.5rem 16px;
}

/* Hero */
.hero { position: relative; padding-top: 3rem; }
.hero h1 {
  font-size: clamp(2.8rem, 10vw, 6.4rem);
  max-width: 13ch;
  letter-spacing: -.01em;
}
.hero .small-print {
  display: inline-block;
  font-size: .38em;
  font-style: italic;
  color: var(--terracotta);
  transform: rotate(-2deg);
  margin-top: .4em;
}
.lede { max-width: var(--measure); font-size: 1.15rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }

.btn {
  display: inline-block;
  padding: .8rem 1.3rem;
  font-weight: 800;
  text-decoration: none;
  color: var(--linen);
  background: var(--woad);
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform .08s, box-shadow .08s;
}
.btn:hover { color: var(--linen); transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.btn-quiet { background: transparent; color: var(--ink); }
.btn-quiet:hover { color: var(--ink); background: var(--linen-dark); }

.stamp {
  position: absolute;
  right: 4%;
  top: 4.5rem;
  width: 8.5rem;
  height: 8.5rem;
  display: grid;
  place-items: center;
  text-align: center;
  font-family: var(--caps);
  font-size: 1.15rem;
  line-height: 1.05;
  color: var(--terracotta);
  border: 3px double var(--terracotta);
  border-radius: 50%;
  transform: rotate(12deg);
  opacity: .85;
}
@media (max-width: 820px) {
  .stamp { position: static; margin: 2rem 0 0; transform: rotate(-6deg); width: 7rem; height: 7rem; font-size: 1rem; }
}

/* The embroidered strip */
.strip {
  margin: 0;
  background: var(--linen-dark);
  border-top: 3px dashed var(--woad);
  border-bottom: 3px dashed var(--woad);
}
.strip-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
  scrollbar-color: var(--terracotta) var(--linen-dark);
}
.strip-scroll.dragging { cursor: grabbing; user-select: none; }
.strip svg { display: block; height: 340px; width: auto; max-width: none; }
@media (max-width: 720px) { .strip svg { height: 260px; } }
.strip svg * { stroke-linecap: round; stroke-linejoin: round; }

.strip .band-bg { fill: var(--linen-dark); }
.strip .band-bar { stroke: var(--woad); stroke-width: 4; fill: none; }
.strip .band-beast { stroke: var(--terracotta); stroke-width: 3; fill: none; }
.strip .stitch { stroke: var(--woad); stroke-width: 3; stroke-dasharray: 8 6; fill: none; }

.strip .cap { font-family: var(--caps); font-size: 24px; letter-spacing: .06em; fill: var(--ink); }
.strip .name { font-family: var(--caps); font-size: 15px; letter-spacing: .08em; fill: var(--terracotta); }
.strip .name.small { font-size: 13px; fill: var(--ink-soft); }
.strip .aside { font-family: var(--display); font-style: italic; font-size: 17px; fill: var(--ink-soft); }

.strip .building path { stroke: var(--ink-soft); stroke-width: 4; fill: none; }
.strip .building.ochre path:first-child { fill: var(--ochre); fill-opacity: .35; }
.strip .building.brick path:not(:last-child) { fill: var(--terracotta); fill-opacity: .35; }
.strip .building.sage path:first-child { fill: var(--sage); fill-opacity: .35; }
.strip .clock { fill: var(--linen); stroke: var(--ink-soft); stroke-width: 3; }
.strip .hands { stroke: var(--ink); stroke-width: 2; }

.strip use, .strip .hero { fill: none; stroke-width: 5; }
.strip use circle, .strip .hero circle { fill: currentColor; }
.strip .w1 { stroke: var(--terracotta); color: var(--terracotta); }
.strip .w2 { stroke: var(--woad); color: var(--woad); }
.strip .w3 { stroke: var(--sage); color: var(--sage); }
.strip .w4 { stroke: var(--ochre); color: var(--ochre); }
.strip .hero { stroke: var(--terracotta); color: var(--terracotta); }

.strip .tree path { fill: none; stroke: var(--moss); stroke-width: 6; }
.strip .post { stroke: var(--ink-soft); stroke-width: 5; }
.strip .sign { fill: var(--woad); stroke: var(--ink); stroke-width: 2; }
.strip .sign-text { font-family: var(--body); font-weight: 800; font-size: 13px; letter-spacing: .06em; fill: var(--linen); }
.strip .sign-text.big { font-size: 20px; letter-spacing: .2em; }

.strip .rail { stroke: var(--ink-soft); stroke-width: 4; }
.strip .sleeper { stroke: var(--ink-soft); stroke-width: 3; }
.strip .carriage { fill: #6950a1; fill-opacity: .8; stroke: var(--ink); stroke-width: 3; }
.strip .hull { fill: var(--woad); stroke: var(--ink); stroke-width: 3; }
.strip .prow { fill: none; stroke: var(--woad); stroke-width: 8; }
.strip .dragon { fill: var(--terracotta); stroke: var(--ink); stroke-width: 2; }
.strip .eye { fill: var(--linen); }
.strip .mast { stroke: var(--ink-soft); stroke-width: 5; }
.strip .sail { fill: var(--ochre); stroke: var(--ink); stroke-width: 3; }
.strip .sail-stripe { stroke: var(--terracotta); stroke-width: 6; }
.strip .shield { stroke: var(--ink); stroke-width: 2; }
.strip .shield.s0 { fill: var(--ochre); }
.strip .shield.s1 { fill: var(--terracotta); }
.strip .shield.s2 { fill: var(--sage); }
.strip .boss { fill: var(--ink); }
.strip .window { fill: var(--linen); stroke: var(--ink); stroke-width: 2; }
.strip .wheel { fill: var(--ink-soft); }

.strip .mini { fill: var(--linen); stroke: var(--woad); stroke-width: 3; }
.strip .mini-border { stroke: var(--woad); stroke-width: 1.5; stroke-dasharray: 4 3; }
.strip .mini-fig { fill: none; stroke-width: 2.5; }
.strip .mini-fig.c0 { stroke: var(--terracotta); }
.strip .mini-fig.c1 { stroke: var(--sage); }
.strip .mini-fig.c2 { stroke: var(--woad); }
.strip .comet { fill: var(--ochre); stroke: var(--terracotta); stroke-width: 2; }
.strip .comet-tail { stroke: var(--ochre); stroke-width: 3; fill: none; }
.strip .chair { stroke: var(--ink-soft); stroke-width: 4; }

.strip .counter { fill: var(--ochre); stroke: var(--ink); stroke-width: 3; }
.strip .toastie { fill: var(--ochre); stroke: var(--terracotta); stroke-width: 3; }
.strip .grill { stroke: var(--terracotta); stroke-width: 2; }
.strip .phone { fill: var(--ink); }

.strip figcaption {
  max-width: 1100px;
  margin: 0 auto;
  padding: .5rem 16px .7rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-family: var(--display);
  font-style: italic;
  color: var(--ink-soft);
}
.strip-nav { display: flex; gap: .5rem; flex: none; }
.strip-nav button {
  font: 800 1.1rem/1 var(--body);
  width: 2.4rem;
  height: 2.4rem;
  color: var(--ink);
  background: var(--linen);
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  cursor: pointer;
}
.strip-nav button:hover { background: var(--ochre); }
.strip-nav button:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }

/* Scoreboard */
.section-intro { max-width: var(--measure); color: var(--ink-soft); font-style: italic; margin-top: 0; }
.scoreboard { margin-top: 2rem; border: 3px solid var(--ink); background: #f6f0e1; }
.scoreboard .row {
  display: grid;
  grid-template-columns: 11rem 1fr 1fr;
  border-top: 1px dashed var(--ink-soft);
}
.scoreboard .row > span { padding: .9rem 1.1rem; }
.scoreboard .head { border-top: none; background: var(--ink); color: var(--linen); font-weight: 800; }
.scoreboard .head span:nth-child(3) { background: var(--sage); }
.scoreboard .what { font-family: var(--caps); font-size: 1.15rem; letter-spacing: .04em; }
.scoreboard .ldn { color: var(--ink-soft); }
.scoreboard .rdg { background: rgba(111,127,79,.12); font-weight: 600; }
.scoreboard .total { border-top: 3px solid var(--ink); }
.scoreboard .total .rdg { font-family: var(--display); font-size: 2.4rem; line-height: 1; color: var(--moss); }

@media (max-width: 720px) {
  .scoreboard .head { display: none; }
  .scoreboard .row { grid-template-columns: 1fr; padding: .4rem 0; }
  .scoreboard .row > span { padding: .35rem 1rem; }
  .scoreboard .what { padding-top: .8rem !important; color: var(--terracotta); }
  .scoreboard .ldn::before, .scoreboard .rdg::before {
    content: attr(data-label) ": ";
    font-weight: 800;
    color: var(--ink);
  }
  .scoreboard .rdg { background: none; }
}

/* The copy section */
.copy { border-top: 1px dashed var(--ink-soft); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
.two-col p { max-width: var(--measure); }
@media (max-width: 820px) { .two-col { grid-template-columns: 1fr; gap: 0; } }

.note {
  background: var(--woad);
  color: var(--linen);
  padding: 1.1rem 1.3rem;
  transform: rotate(-1.2deg);
  box-shadow: 6px 6px 0 var(--ochre);
  margin-top: 1.5rem;
}
.note p { margin: 0; }
.note-title { font-family: var(--caps); font-size: 1.2rem; letter-spacing: .06em; margin-bottom: .4rem !important; color: var(--ochre); }

/* Getting there */
.getting-there { background: var(--linen-dark); max-width: none !important; }
.getting-there > * { max-width: 1100px; margin-left: auto; margin-right: auto; }
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.steps li { display: flex; gap: 1rem; align-items: flex-start; }
.steps .num {
  flex: none;
  font-family: var(--display);
  font-size: 3.4rem;
  line-height: .85;
  color: var(--terracotta);
}
.steps p { margin: 0; }
.small { font-size: .95rem; color: var(--ink-soft); }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

/* Day out */
.itinerary { margin-top: 2rem; border-left: 4px dotted var(--terracotta); padding-left: 1.5rem; }
.slot { display: grid; grid-template-columns: 6.5rem 1fr; gap: 1rem; padding: .6rem 0; }
.slot p { margin: 0; max-width: var(--measure); }
.slot .time { font-family: var(--caps); font-size: 1.3rem; color: var(--woad); }
.slot.feature {
  background: var(--ochre);
  margin: .6rem 0 .6rem -1.5rem;
  padding: 1rem 1.2rem 1rem 1.5rem;
  transform: rotate(.6deg);
  box-shadow: 5px 5px 0 var(--ink);
}
.slot.feature .time { color: var(--ink); }
@media (max-width: 560px) {
  .slot { grid-template-columns: 1fr; gap: 0; }
}

/* FAQ */
.faq { border-top: 1px dashed var(--ink-soft); }
details { border-bottom: 1px dashed var(--ink-soft); padding: .9rem 0; max-width: 780px; }
summary {
  cursor: pointer;
  font-family: var(--display);
  font-size: 1.4rem;
  list-style: none;
}
summary::-webkit-details-marker { display: none; }
summary::before { content: "+"; display: inline-block; width: 1.2em; color: var(--terracotta); }
details[open] summary::before { content: "\2013"; }
details p { margin: .5rem 0 0 1.4rem; max-width: var(--measure); }

/* Footer */
footer { margin-top: 2rem; }
.foot-inner { max-width: 1100px; margin: 0 auto; padding: 2rem 16px 3rem; }
.foot-inner p { margin: .2rem 0; }
.tiny { font-size: .85rem; color: var(--ink-soft); font-style: italic; }

:focus-visible { outline: 3px solid var(--ochre); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

/* Opening hours */
.hours { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin: 2.5rem auto 1rem; padding-top: 1.5rem; border-top: 1px dashed var(--ink-soft); }
.hours h3 { font-size: 1.25rem; color: var(--woad); }
.hours p { margin: 0; }
@media (max-width: 820px) { .hours { grid-template-columns: 1fr; } }
.slot.feature a { color: var(--ink); }
.hours h3 a { color: inherit; }

/* Shed photo, pinned to the itinerary like a snapshot */
.slot.feature { grid-template-columns: 6.5rem 1fr 15rem; align-items: start; }
.shed-photo {
  margin: 0;
  background: #f6f0e1;
  padding: .5rem .5rem .3rem;
  box-shadow: 3px 3px 0 var(--ink);
  transform: rotate(-3deg);
}
.shed-photo img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.shed-photo figcaption { font-family: var(--display); font-style: italic; font-size: .95rem; text-align: center; padding-top: .25rem; }
@media (max-width: 720px) {
  .slot.feature { grid-template-columns: 1fr; }
  .shed-photo { max-width: 16rem; margin-top: .8rem; }
}
.strip .smile { stroke: var(--linen); stroke-width: 2; fill: none; }
.strip .bunting-line { stroke: var(--ink-soft); stroke-width: 2; fill: none; }
.strip .flag { stroke: var(--ink); stroke-width: 1.5; }
.strip .flag.f0 { fill: var(--terracotta); }
.strip .flag.f1 { fill: var(--ochre); }
.strip .flag.f2 { fill: var(--sage); }
