:root {
  --purple: #8147f5;
  --plum: #2c1735;
  --pink: #f4a9df;
  --yellow: #ffe478;
  --cream: #fff5dd;
  --paper: #fffaf0;
  --tan: #7b4d2a;
  --charcoal: #47434a;
  --brown: #7b4d2a;
  --line: rgba(44, 23, 53, 0.14);
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--charcoal);
  background: var(--paper);
  font-family: "Montserrat", Arial, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header,
main,
footer {
  width: min(1040px, calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.brand-logo {
  display: block;
  width: 4.2rem;
  height: 4.2rem;
  object-fit: contain;
}

.brand strong,
h1,
h2,
h3 {
  color: var(--plum);
  font-family: "DM Serif Display", Georgia, serif;
  font-weight: 400;
}

.brand strong {
  display: block;
  font-size: 1.4rem;
  line-height: 1;
}

.brand small {
  display: block;
  margin-top: 0.2rem;
  color: var(--brown);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--plum);
  font-size: 0.9rem;
  font-weight: 800;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--cream);
  background: var(--plum);
  border-radius: 999px;
  padding: 0.85rem 1.15rem;
  font-weight: 800;
}

.button.small {
  padding: 0.65rem 0.95rem;
}

.text-link {
  color: var(--plum);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: var(--purple);
  text-decoration-thickness: 0.12rem;
  text-underline-offset: 0.28rem;
}

.simple-hero {
  padding: 4.25rem 0 3rem;
}

.hero-with-image {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.65fr);
  gap: 2rem;
  align-items: center;
  max-width: none;
}

.hero-copy {
  max-width: 820px;
}

.hero-photo {
  position: relative;
  margin: 0;
}

.hero-photo img {
  display: block;
  width: 100%;
  height: clamp(260px, 34vw, 420px);
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.hero-photo figcaption {
  position: absolute;
  right: 0.8rem;
  bottom: 0.8rem;
  color: var(--cream);
  background: rgba(44, 23, 53, 0.82);
  border-radius: 999px;
  padding: 0.45rem 0.7rem;
  font-size: 0.74rem;
  font-weight: 800;
}

.archive-hero {
  max-width: 920px;
}

.eyebrow,
.location {
  margin: 0;
  color: var(--brown);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1 {
  margin: 0.55rem 0 1rem;
  font-size: clamp(3.2rem, 8vw, 6.2rem);
  line-height: 0.9;
}

.simple-hero > p:not(.eyebrow),
.scoring-section p,
.section-note {
  max-width: 680px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin-top: 1.8rem;
}

.stats-grid,
.visited-map,
.latest-grid,
.history-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.visited-map {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0.75rem;
}

.stats-grid article,
.visited-region,
.history-grid article,
.latest-card,
.archive-card,
.scoring-section,
.score-list span {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.stats-grid article {
  padding: 1.25rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.feature-card {
  display: grid;
  align-content: start;
  gap: 0.65rem;
  min-height: 220px;
  padding: 1.2rem;
  color: inherit;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.feature-card:hover,
.feature-card:focus-visible {
  border-color: var(--purple);
  box-shadow: 0 14px 28px rgba(44, 23, 53, 0.1);
  outline: none;
  transform: translateY(-2px);
}

.feature-card-wide {
  grid-column: span 2;
  color: var(--cream);
  background:
    linear-gradient(rgba(44, 23, 53, 0.42), rgba(44, 23, 53, 0.78)),
    url("assets/big-yorkshire-roast.jpg") center / cover;
}

.feature-card span {
  color: var(--brown);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.feature-card-wide span,
.feature-card-wide h3,
.feature-card-wide p {
  color: var(--cream);
}

.feature-card h3 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 0.95;
}

.feature-card p {
  margin: 0;
  line-height: 1.7;
}

.about-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.55fr);
  gap: 1.5rem;
  align-items: center;
}

.about-copy p {
  max-width: 640px;
  line-height: 1.8;
}

.about-copy h2 {
  margin: 0.25rem 0 1rem;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 0.95;
}

.about-photo {
  margin: 0;
}

.about-photo img {
  display: block;
  width: 100%;
  height: clamp(280px, 34vw, 420px);
  object-fit: cover;
  object-position: 58% 35%;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.gallery-section {
  padding-top: 2rem;
}

.photo-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.photo-strip img {
  display: block;
  width: 100%;
  height: clamp(150px, 20vw, 220px);
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.42fr);
  gap: 1rem;
}

.roast-map {
  min-height: 520px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.map-fallback {
  display: grid;
  align-content: center;
  min-height: 520px;
  padding: clamp(1.2rem, 4vw, 2.5rem);
  background: linear-gradient(135deg, var(--paper), var(--white));
}

.map-fallback h3 {
  max-width: 12ch;
  margin: 0 0 1.2rem;
  color: var(--plum);
  font-family: "DM Serif Display", Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 400;
  line-height: 0.95;
}

.map-fallback div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.map-fallback a {
  display: grid;
  gap: 0.25rem;
  padding: 0.8rem;
  color: inherit;
  text-decoration: none;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.map-fallback strong {
  color: var(--plum);
  font-size: 0.92rem;
}

.map-fallback span {
  color: var(--brown);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.map-panel {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  max-height: 520px;
  overflow: auto;
  padding-right: 0.25rem;
}

.map-panel h3 {
  margin: 0;
  font-size: 2rem;
  line-height: 1;
}

.map-list {
  display: grid;
  gap: 0.75rem;
}

.map-list article {
  padding: 0.95rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.map-card .meta-row {
  margin-top: 0.7rem;
}

.map-card .meta-row a {
  color: var(--cream);
  background: var(--purple);
}

.map-list span {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--brown);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.map-list h4 {
  margin: 0 0 0.35rem;
  color: var(--plum);
  font-size: 0.95rem;
}

.map-list p,
.map-credit {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.55;
}

.map-credit a {
  color: var(--purple);
  font-weight: 800;
}

.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
  color: var(--charcoal);
  background: var(--paper);
}

.leaflet-popup-content {
  display: grid;
  gap: 0.35rem;
  min-width: 210px;
  margin: 0.9rem;
  font-family: "Montserrat", Arial, sans-serif;
}

.leaflet-popup-content strong {
  color: var(--plum);
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1;
}

.leaflet-popup-content span {
  color: var(--brown);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.leaflet-popup-content p {
  margin: 0;
  line-height: 1.45;
}

.leaflet-popup-content a {
  color: var(--purple);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 0.18rem;
}

.history-section .section-note {
  margin-bottom: 1.2rem;
}

.history-photo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.history-photo-grid figure {
  position: relative;
  min-height: 230px;
  overflow: hidden;
  margin: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.history-photo-grid img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 230px;
  object-fit: cover;
}

.history-photo-feature {
  grid-column: span 2;
  grid-row: span 2;
}

.history-photo-feature img {
  min-height: 476px;
}

.history-photo-grid figcaption {
  position: absolute;
  right: 0.8rem;
  bottom: 0.8rem;
  left: 0.8rem;
  display: grid;
  gap: 0.2rem;
  padding: 0.7rem;
  color: var(--cream);
  background: rgba(44, 23, 53, 0.84);
  border-radius: 8px;
}

.history-photo-grid strong {
  color: var(--cream);
  font-weight: 900;
}

.history-photo-grid span {
  color: var(--cream);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.day-key,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.day-key button,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem;
  padding: 0.45rem 0.7rem;
  color: var(--plum);
  background: rgba(129, 71, 245, 0.1);
  border: 1px solid rgba(129, 71, 245, 0.25);
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 900;
}

.day-key button {
  font: inherit;
  cursor: pointer;
  transition:
    color 160ms ease,
    background 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.day-key button:hover,
.day-key button:focus-visible,
.day-key button.is-active {
  color: var(--cream);
  background: var(--plum);
  border-color: var(--plum);
}

.day-key button:focus-visible {
  outline: 3px solid rgba(129, 71, 245, 0.25);
  outline-offset: 2px;
}

.day-key button:hover {
  transform: translateY(-1px);
}

.day-out-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.day-out-card {
  display: grid;
  grid-template-columns: minmax(150px, 0.45fr) minmax(0, 1fr);
  gap: 1rem;
  overflow: hidden;
  width: 100%;
  color: inherit;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  text-align: left;
  font: inherit;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.day-out-card:hover,
.day-out-card:focus-visible {
  border-color: var(--purple);
  box-shadow: 0 14px 28px rgba(44, 23, 53, 0.1);
  outline: none;
  transform: translateY(-2px);
}

.day-out-image-wrap {
  position: relative;
  display: block;
  min-height: 260px;
}

.day-out-card img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
}

.image-count {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  color: var(--cream);
  background: rgba(44, 23, 53, 0.84);
  border-radius: 999px;
  padding: 0.4rem 0.6rem;
  font-size: 0.72rem;
  font-weight: 900;
}

.day-out-copy {
  display: grid;
  align-content: start;
  gap: 0.75rem;
  padding: 1.1rem 1.1rem 1.1rem 0;
}

.day-out-card h3 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 0.95;
}

.membership-pill {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 2rem;
  padding: 0.35rem 0.65rem;
  color: var(--cream);
  background: var(--plum);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 900;
}

.day-out-card p {
  margin: 0;
  line-height: 1.65;
}

.day-out-more {
  color: var(--purple);
  font-size: 0.85rem;
  font-weight: 900;
  text-decoration: underline;
  text-decoration-thickness: 0.1rem;
  text-underline-offset: 0.18rem;
}

.day-out-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 1rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 800;
}

.modal-open {
  overflow: hidden;
}

.day-out-modal[hidden] {
  display: none;
}

.day-out-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  align-items: start;
  justify-items: center;
  overflow: auto;
  padding: clamp(1rem, 4vw, 2.5rem);
  background: rgba(44, 23, 53, 0.72);
}

.day-out-modal-card {
  position: relative;
  width: min(980px, 100%);
  padding: clamp(1rem, 3vw, 1.5rem);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.24);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.35rem;
  padding: 0.45rem 0.8rem;
  color: var(--cream);
  background: var(--plum);
  border: 1px solid var(--plum);
  border-radius: 999px;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 900;
  cursor: pointer;
}

.modal-copy {
  max-width: 760px;
  padding-right: 5.5rem;
}

.modal-copy h2 {
  margin: 0.25rem 0 0.9rem;
  font-size: clamp(2.2rem, 6vw, 4.8rem);
  line-height: 0.92;
}

.modal-copy p {
  margin: 1rem 0;
  line-height: 1.75;
}

.modal-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1.2rem;
}

.modal-gallery img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.history-grid article {
  padding: 1.2rem;
}

.history-grid span {
  display: inline-flex;
  margin-bottom: 0.85rem;
  color: var(--cream);
  background: var(--plum);
  border-radius: 999px;
  padding: 0.35rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 800;
}

.history-grid h3 {
  margin: 0 0 0.65rem;
  font-size: 1.75rem;
  line-height: 1;
}

.history-grid p {
  margin: 0;
  line-height: 1.7;
}

.history-examples {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.history-examples article {
  background: rgba(119, 68, 255, 0.08);
  border: 1px solid rgba(119, 68, 255, 0.28);
  border-radius: 8px;
  padding: 1.2rem;
}

.history-examples strong {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--plum);
  font-weight: 900;
}

.history-examples p {
  margin: 0;
  line-height: 1.7;
}

.history-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  margin-top: 1rem;
}

.history-links span {
  color: var(--tan);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.history-links a {
  display: inline-flex;
  align-items: center;
  min-height: 2.35rem;
  padding: 0.45rem 0.75rem;
  color: var(--plum);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 900;
  text-decoration: none;
}

.history-links a:hover,
.history-links a:focus-visible {
  color: var(--cream);
  background: var(--plum);
  border-color: var(--plum);
}

.stats-grid strong {
  display: block;
  color: var(--purple);
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 3rem;
  line-height: 1;
}

.stats-grid span,
.visited-map span {
  font-weight: 800;
}

.section {
  padding: 3.5rem 0 0;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.section-heading h2,
.scoring-section h2 {
  margin: 0.25rem 0 0;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 0.95;
}

.visited-region {
  min-width: 0;
  min-height: 92px;
  padding: 0.9rem;
  color: inherit;
  text-align: left;
  font: inherit;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.visited-region:hover,
.visited-region:focus-visible,
.visited-region.is-active {
  border-color: var(--purple);
  box-shadow: 0 10px 24px rgba(44, 23, 53, 0.1);
  outline: none;
  transform: translateY(-2px);
}

.visited-region.is-active {
  background: var(--plum);
  color: var(--white);
}

.visited-region strong {
  display: block;
  color: var(--plum);
  font-family: "DM Serif Display", Georgia, serif;
  font-size: clamp(1.35rem, 2.4vw, 1.8rem);
  line-height: 1;
  overflow-wrap: anywhere;
}

.visited-region.is-active strong {
  color: var(--white);
}

.visited-detail {
  display: grid;
  gap: 1.1rem;
  margin-top: 1rem;
  padding: clamp(1rem, 2.5vw, 1.4rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.visited-detail h3 {
  margin: 0.25rem 0 0;
  color: var(--plum);
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 0.95;
}

.visited-detail-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.75rem;
}

.visited-detail-list article {
  padding: 0.9rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.visited-detail-list span {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--brown);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.visited-detail-list h4 {
  margin: 0 0 0.35rem;
  color: var(--plum);
  font-size: 1rem;
}

.visited-detail-list p {
  margin: 0 0 0.55rem;
  font-size: 0.88rem;
  line-height: 1.55;
}

.visited-detail-list a {
  color: var(--purple);
  font-size: 0.85rem;
  font-weight: 800;
}

.scoring-section {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 1.5rem;
  padding: 1.5rem;
}

.score-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.score-list span {
  padding: 0.9rem;
  color: var(--plum);
  font-weight: 800;
}

.latest-image {
  display: block;
  min-height: 0;
  height: 180px;
  margin: -1.15rem -1.15rem 1rem;
  background-position: center;
  background-size: cover;
  border-radius: 8px 8px 0 0;
}

.latest-card {
  overflow: hidden;
  padding: 1.15rem;
}

.home-latest .latest-card:nth-child(n + 4) {
  display: none;
}

.latest-image span {
  display: inline-flex;
  margin: 0.8rem;
  padding: 0.45rem 0.65rem;
  color: var(--cream);
  background: rgba(44, 23, 53, 0.82);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.latest-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  color: var(--brown);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.latest-body {
  padding: 0;
}

.latest-body h3 {
  margin: 0.55rem 0;
  font-size: 1.85rem;
  line-height: 1;
}

.latest-body p,
.empty-feed {
  line-height: 1.7;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-top: 1rem;
}

.meta-row span,
.latest-body .meta-row a,
.archive-card > span {
  padding: 0.45rem 0.65rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
}

.meta-row span,
.archive-card > span {
  color: var(--plum);
  background: rgba(129, 71, 245, 0.1);
}

.archive-card > span {
  white-space: nowrap;
}

.latest-body .meta-row a {
  color: var(--cream);
  background: var(--purple);
}

.search-box {
  display: grid;
  gap: 0.55rem;
  max-width: 520px;
  margin-top: 1.6rem;
  color: var(--plum);
  font-weight: 800;
}

.search-box input {
  width: 100%;
  padding: 0.95rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--charcoal);
  background: var(--white);
  font: inherit;
}

.admin-hero {
  padding-bottom: 1rem;
}

.admin-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 1rem;
}

.admin-panel {
  display: grid;
  align-content: start;
  gap: 0.9rem;
  padding: 1.2rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-panel label {
  color: var(--plum);
  font-weight: 800;
}

.admin-panel input {
  width: 100%;
  padding: 0.95rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--charcoal);
  background: var(--paper);
  font: inherit;
}

.admin-panel .button {
  width: 100%;
}

.admin-panel .button.secondary {
  color: var(--plum);
  background: var(--paper);
  border: 1px solid var(--line);
}

.admin-panel h2 {
  margin: 0;
  color: var(--plum);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 0.95;
}

.admin-panel pre {
  overflow-x: auto;
  margin: 0;
  padding: 1rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  white-space: pre-wrap;
}

.admin-panel code {
  font-family: Consolas, Monaco, monospace;
  font-size: 0.9rem;
  line-height: 1.6;
}

.sync-result {
  min-height: 3rem;
  padding: 0.9rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  line-height: 1.6;
}

.sync-result p {
  margin: 0;
}

.sync-result.success {
  border-color: rgba(129, 71, 245, 0.45);
}

.sync-result.error {
  color: var(--plum);
  border-color: var(--brown);
}

.stats-summary {
  display: grid;
  gap: 1rem;
  line-height: 1.6;
}

.stats-summary p,
.stats-summary h3,
.stats-summary ol {
  margin: 0;
}

.stats-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.stats-cards article {
  padding: 0.85rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.stats-cards strong {
  display: block;
  color: var(--purple);
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 2.25rem;
  line-height: 1;
}

.stats-cards span {
  display: block;
  font-weight: 800;
}

.stats-cards small {
  display: block;
  margin-top: 0.3rem;
  color: var(--tan);
  font-weight: 800;
}

.stats-note {
  color: var(--tan);
  font-weight: 700;
}

.stats-summary ol {
  display: grid;
  gap: 0.55rem;
  padding: 0;
  list-style: none;
}

.stats-summary li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--line);
}

.stats-summary li span {
  overflow-wrap: anywhere;
}

.stats-summary li strong {
  color: var(--plum);
}

.stats-summary.error {
  color: var(--plum);
}

.review-list {
  display: grid;
  gap: 0.75rem;
}

.archive-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
}

.archive-card h3 {
  margin: 0.25rem 0;
  font-size: 1.7rem;
}

.archive-card p {
  margin: 0;
  line-height: 1.55;
}

.archive-detail-link {
  display: inline-flex;
  margin-top: 0.65rem;
  color: var(--purple);
  font-size: 0.85rem;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 0.18rem;
}

.archive-note {
  margin-top: 0.35rem !important;
  color: var(--brown);
  font-size: 0.9rem;
}

.visit-detail-card {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(240px, 0.8fr);
  gap: 1rem;
  margin-top: 1.5rem;
  padding: 1.2rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.visit-detail-card h2 {
  margin: 0.25rem 0 0.75rem;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 0.95;
}

.visit-detail-card p {
  margin: 0;
}

.visit-detail-card dl {
  display: grid;
  gap: 0.75rem;
  margin: 0;
}

.visit-detail-card div {
  min-width: 0;
}

.visit-detail-card dt {
  color: var(--brown);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.visit-detail-card dd {
  margin: 0.2rem 0 0;
  color: var(--plum);
  font-weight: 800;
  overflow-wrap: anywhere;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 4rem;
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--line);
  font-weight: 800;
}

footer p {
  margin: 0;
}

footer a {
  color: var(--purple);
}

@media (max-width: 780px) {
  .site-header,
  nav,
  .section-heading,
  .archive-card,
  footer {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    gap: 0.75rem;
  }

  .stats-grid,
    .photo-strip,
    .visited-map,
    .latest-grid,
    .history-grid,
    .history-examples,
    .history-photo-grid,
    .day-out-grid,
    .day-out-card,
    .feature-grid,
    .map-layout,
    .visited-detail,
    .visited-detail-list,
    .visit-detail-card,
    .about-section,
    .admin-section,
    .scoring-section,
  .score-list,
  .hero-with-image {
    grid-template-columns: 1fr;
  }

  .feature-card-wide {
    grid-column: auto;
  }

  .history-photo-feature {
    grid-column: auto;
    grid-row: auto;
  }

  .history-photo-feature img {
    min-height: 280px;
  }

  .day-out-card img {
    min-height: 220px;
  }

  .day-out-copy {
    padding: 1rem;
  }

  .modal-copy {
    padding-right: 0;
    padding-top: 2.5rem;
  }

  .modal-gallery {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: clamp(3rem, 15vw, 4.6rem);
  }

  .hero-photo img {
    height: 240px;
  }

  .about-photo img {
    height: 320px;
  }

  .map-fallback div {
    grid-template-columns: 1fr;
  }

  .archive-card > span {
    white-space: normal;
  }
}

@media (max-width: 980px) {
  .hero-with-image {
    grid-template-columns: 1fr;
  }

  .hero-photo img {
    height: 300px;
  }
}
