/* ============================================================
   Summer Cottage — Scottburgh South, KwaZulu-Natal
   Palette: desaturated 70s photo (faded print, muted mustard,
   avocado, ochre, burnt sienna, warm off-white)
   Type: hand-drawn scribble annotations
   Motion: hyper-stillness (no animation anywhere)
   Layout: cafe menu-first cards
   Background: subtle grain overlay
   ============================================================ */

:root {
  --bg: #efe6d0;
  --bg-2: #e6d9bd;
  --paper: #f6efdd;
  --ink: #3a2f1a;
  --ink-soft: #6a5b3d;
  --a: #a67c00;   /* mustard */
  --b: #6b7a3a;   /* avocado */
  --c: #c04e1a;   /* burnt sienna */
  --rule: rgba(58, 47, 26, 0.22);
  --rule-soft: rgba(58, 47, 26, 0.12);

  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;

  --wrap: 68rem;
  --pad: clamp(1.25rem, 5vw, 3.5rem);
}

/* Light mode only — the site is printed on warm off-white, always.
   color-scheme: light keeps form controls and scrollbars in the same
   family even when the visitor's device is set to dark. */
:root { color-scheme: light; }

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.075rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
}

/* Grain overlay — the whole page sits under a faint film of noise */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.055;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='160' height='160' filter='url(%23n)'/></svg>");
  background-size: 160px 160px;
}


img { max-width: 100%; height: auto; display: block; }

a { color: var(--c); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--a); }

:focus-visible {
  outline: 2px solid var(--c);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- Hyper-stillness, with one exception ----------
   Nothing on the page animates — except the gallery, which slides.
   The blanket reset below kills every transition, so the gallery's
   own transition is re-declared with !important further down. */
*, *::before, *::after {
  animation: none !important;
  transition: none !important;
}

/* ---------- Type ---------- */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  font-variation-settings: "SOFT" 40, "WONK" 1;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0;
}

h2 {
  font-size: clamp(1.7rem, 1.2rem + 2.2vw, 2.6rem);
  margin-bottom: 0.35rem;
}

h3 {
  font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.3rem);
  letter-spacing: 0.01em;
}

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 0.9rem;
}

.lede {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 1rem + 0.7vw, 1.4rem);
  line-height: 1.5;
  color: var(--ink);
  max-width: 46ch;
}

/* ---------- Hand-drawn scribble annotation ---------- */
mark.scribble {
  background: none;
  color: inherit;
  position: relative;
  padding: 0 0.06em;
  white-space: nowrap;
}
mark.scribble::after {
  content: "";
  position: absolute;
  left: -0.06em;
  right: -0.06em;
  bottom: -0.28em;
  height: 0.42em;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 20' preserveAspectRatio='none'><path d='M2 13 C 34 5, 62 17, 96 10 S 158 4, 198 12' fill='none' stroke='%23c04e1a' stroke-width='3.2' stroke-linecap='round'/></svg>");
}
mark.scribble--green::after {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 20' preserveAspectRatio='none'><path d='M3 12 C 40 18, 70 4, 104 11 S 160 16, 197 8' fill='none' stroke='%236b7a3a' stroke-width='3.2' stroke-linecap='round'/></svg>");
}
mark.scribble--mustard::after {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 20' preserveAspectRatio='none'><path d='M2 10 C 30 16, 66 6, 100 13 S 156 6, 198 11' fill='none' stroke='%23a67c00' stroke-width='3.2' stroke-linecap='round'/></svg>");
}
/* circled word */
mark.circled {
  background: none;
  color: inherit;
  position: relative;
  padding: 0 0.28em;
}
mark.circled::after {
  content: "";
  position: absolute;
  inset: -0.28em -0.1em -0.34em -0.1em;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 90' preserveAspectRatio='none'><path d='M112 6 C 44 4, 8 24, 9 46 C 10 72, 62 86, 116 84 C 176 82, 212 66, 210 44 C 208 22, 168 7, 108 8' fill='none' stroke='%23a67c00' stroke-width='3' stroke-linecap='round'/></svg>");
}

/* ---------- Layout shell ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad);
}

section { padding-block: clamp(3rem, 7vw, 5.5rem); }

.rule-top { border-top: 1px solid var(--rule); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule-soft);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
  padding-block: 0.5rem;
}
.brand {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
  line-height: 1.15;
}
.brand span {
  display: block;
  font-family: var(--sans);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 0.2rem;
}
.header-right { display: flex; align-items: center; gap: 0.5rem; }

.nav-links { display: none; gap: 1.4rem; }
.nav-links a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.86rem;
  letter-spacing: 0.04em;
  padding: 0.6rem 0;
}
.nav-links a:hover { color: var(--c); text-decoration: underline; }

@media (min-width: 62rem) {
  .nav-links { display: flex; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: clamp(30rem, 78vh, 44rem);
  display: grid;
  place-items: center;
  padding: 0;
  overflow: hidden;
  background: var(--bg-2);
}
.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.72) contrast(0.95) sepia(0.14);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(34, 26, 12, 0.42) 0%, rgba(34, 26, 12, 0.3) 42%, rgba(34, 26, 12, 0.62) 100%);
}
.hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: clamp(4rem, 12vw, 7rem) var(--pad);
  max-width: 46rem;
}
.hero .eyebrow { color: #f3e6c8; opacity: 0.95; }
.hero h1 {
  font-size: clamp(2.4rem, 1.5rem + 5.4vw, 5rem);
  color: #fdf6e4;
  text-shadow: 0 2px 24px rgba(30, 22, 8, 0.5);
  margin-bottom: 1rem;
}
.hero p {
  color: #f2e7cd;
  font-family: var(--serif);
  font-size: clamp(1.02rem, 0.95rem + 0.6vw, 1.28rem);
  line-height: 1.55;
  max-width: 34ch;
  margin-inline: auto;
  text-shadow: 0 1px 14px rgba(30, 22, 8, 0.55);
}
.hero-facts {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.6rem;
  margin: 1.8rem 0 0;
  padding: 0;
  color: #f6ecd4;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-shadow: 0 1px 12px rgba(30, 22, 8, 0.6);
}
.hero-facts li { display: flex; align-items: center; gap: 0.5rem; }
.hero-facts li + li::before {
  content: "";
  width: 4px; height: 4px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.7;
  margin-right: 1.1rem;
}

/* ---------- Intro ---------- */
.intro-grid {
  display: grid;
  gap: clamp(1.8rem, 4vw, 3.5rem);
  align-items: start;
}
@media (min-width: 56rem) {
  .intro-grid { grid-template-columns: 1.15fr 0.85fr; }
}
.intro-body p { max-width: 60ch; }
.intro-body p + p { margin-top: 1rem; }

.intro-aside {
  background: var(--paper);
  border: 1px solid var(--rule-soft);
  padding: clamp(1.4rem, 3vw, 2rem);
}
.intro-aside h3 { margin-bottom: 0.9rem; }
.intro-aside dl {
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.55rem 1.1rem;
  font-size: 0.92rem;
}
.intro-aside dt {
  color: var(--ink-soft);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding-top: 0.18rem;
}
.intro-aside dd { margin: 0; }

/* ---------- The stay — menu-first card block ---------- */
.stay { background: var(--bg-2); border-top: 1px solid var(--rule-soft); border-bottom: 1px solid var(--rule-soft); }
.section-head { max-width: 52ch; margin-bottom: clamp(2rem, 4vw, 3rem); }

.menu { display: grid; gap: clamp(2rem, 4vw, 3rem); }
@media (min-width: 58rem) {
  .menu { grid-template-columns: 1fr 1fr; column-gap: clamp(2.5rem, 6vw, 5rem); }
}

.menu section h3 {
  border-bottom: 1px solid var(--rule);
  padding-bottom: 0.55rem;
  margin-bottom: 1.1rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}
.menu section h3 em {
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 600;
  white-space: nowrap;
}

.menu .item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.35rem 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px dotted var(--rule-soft);
}
.menu .item:last-child { border-bottom: 0; }
.menu .item .name {
  font-family: var(--serif);
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.3;
}
.menu .item .note {
  grid-column: 1 / -1;
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.5;
  margin: 0;
}
.menu .item .price {
  font-family: var(--sans);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  white-space: nowrap;
  padding-top: 0.2rem;
}
.menu .item .price.included { color: var(--b); font-weight: 600; }

/* ---------- Photos ---------- */
.photos { display: grid; gap: 1rem; }
@media (min-width: 48rem) {
  .photos { grid-template-columns: repeat(3, 1fr); }
}
.photos figure { margin: 0; }
.photos img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: saturate(0.78) contrast(0.96) sepia(0.12);
  border: 1px solid var(--rule-soft);
  border-radius: 1rem;
}
.photos figcaption {
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin-top: 0.6rem;
  line-height: 1.45;
}

/* ---------- Gallery carousel ---------- */
.gallery-section { border-top: 1px solid var(--rule-soft); }

.gallery {
  --gallery-h: clamp(15rem, 54vw, 32rem);
}

.gallery-viewport {
  overflow: hidden;
  border: 1px solid var(--rule-soft);
  border-radius: 1.25rem;
  background: var(--bg-2);
}

.gallery-track {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  height: var(--gallery-h);
  transform: translate3d(calc(var(--gallery-i, 0) * -100%), 0, 0);
  will-change: transform;
  /* The slide itself — the one piece of motion on the site. */
  transition: transform 900ms cubic-bezier(0.65, 0, 0.35, 1) !important;
}

.gallery-slide {
  flex: 0 0 100%;
  min-width: 100%;
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 1.25rem;
}

.gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.78) contrast(0.96) sepia(0.12);
}

.gallery-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: clamp(2.5rem, 8vw, 3.5rem) clamp(1rem, 4vw, 2rem) clamp(0.9rem, 3vw, 1.4rem);
  color: #fdf6e4;
  font-family: var(--serif);
  font-size: clamp(0.92rem, 0.86rem + 0.4vw, 1.1rem);
  line-height: 1.4;
  background: linear-gradient(180deg, rgba(30, 22, 8, 0) 0%, rgba(30, 22, 8, 0.72) 100%);
}

.gallery-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.1rem;
}

.gallery-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  padding: 0;
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 999px;
  color: var(--ink);
  cursor: pointer;
}
.gallery-arrow svg { width: 20px; height: 20px; }
.gallery-arrow:hover { border-color: var(--c); color: var(--c); }

.gallery-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.15rem;
}
.gallery-dot {
  width: 44px;
  height: 44px;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.gallery-dot::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1px solid var(--ink-soft);
  background: transparent;
}
.gallery-dot[aria-selected="true"]::before {
  background: var(--c);
  border-color: var(--c);
}
.gallery-dot:hover::before { border-color: var(--c); }

/* Anyone who has asked their device to reduce motion gets a straight cut
   instead of a slide — the gallery still works, it just doesn't travel. */
@media (prefers-reduced-motion: reduce) {
  .gallery-track { transition: none !important; }
}

/* ---------- Around the cottage ---------- */
.around { background: var(--bg-2); border-top: 1px solid var(--rule-soft); border-bottom: 1px solid var(--rule-soft); }
.distance-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
@media (min-width: 52rem) {
  .distance-list { grid-template-columns: 1fr 1fr; column-gap: clamp(2.5rem, 6vw, 5rem); }
}
.distance-list li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: baseline;
  padding: 0.85rem 0;
  border-bottom: 1px dotted var(--rule-soft);
}
.distance-list .place {
  font-family: var(--serif);
  font-size: 1.02rem;
  font-weight: 600;
}
.distance-list .place small {
  display: block;
  font-family: var(--sans);
  font-size: 0.84rem;
  font-weight: 400;
  color: var(--ink-soft);
  margin-top: 0.15rem;
  line-height: 1.45;
}
.distance-list .time {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c);
  white-space: nowrap;
}

/* ---------- Footer cards ---------- */
.footer-cards {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2rem);
}
@media (min-width: 52rem) {
  .footer-cards { grid-template-columns: repeat(3, 1fr); }
}
.card {
  background: var(--paper);
  border: 1px solid var(--rule-soft);
  padding: clamp(1.4rem, 3vw, 1.9rem);
}
.card h3 { margin-bottom: 0.9rem; }
.card p { font-size: 0.94rem; }
.card .hours { list-style: none; margin: 0; padding: 0; font-size: 0.92rem; }
.card .hours li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.34rem 0;
  border-bottom: 1px dotted var(--rule-soft);
}
.card .hours li:last-child { border-bottom: 0; }
.card .hours .closed { color: var(--c); }
.card address { font-style: normal; font-size: 0.94rem; line-height: 1.6; }
.card .hint {
  font-size: 0.84rem;
  color: var(--ink-soft);
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px dotted var(--rule-soft);
}

/* ---------- Enquiry form ---------- */
.enquiry { max-width: 40rem; }
.enquiry .field { margin-bottom: 1.1rem; }
.enquiry label {
  display: block;
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.4rem;
}
.enquiry input,
.enquiry textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 2px;
  padding: 0.75rem 0.85rem;
  min-height: 44px;
}
.enquiry textarea { min-height: 8rem; resize: vertical; }
.enquiry input:focus-visible,
.enquiry textarea:focus-visible { border-color: var(--c); }
.enquiry .row { display: grid; gap: 1.1rem; }
@media (min-width: 40rem) { .enquiry .row { grid-template-columns: 1fr 1fr; } }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.8rem 1.9rem;
  background: var(--ink);
  color: var(--bg);
  border: 1px solid var(--ink);
  border-radius: 2px;
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
}
.btn:hover { background: var(--c); border-color: var(--c); color: #fdf6e4; }

.form-status {
  margin-top: 1rem;
  font-size: 0.92rem;
  color: var(--b);
}
.form-status[data-state="error"] { color: var(--c); }

/* ---------- Closing quote ---------- */
.closing {
  text-align: center;
  padding-block: clamp(3.5rem, 9vw, 6.5rem);
}
.closing blockquote {
  margin: 0 auto;
  max-width: 34ch;
  font-family: var(--serif);
  font-size: clamp(1.35rem, 1.1rem + 1.6vw, 2.1rem);
  line-height: 1.35;
  font-variation-settings: "SOFT" 60, "WONK" 1;
}
.closing cite {
  display: block;
  margin-top: 1.4rem;
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.74rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---------- Site footer ---------- */
.site-footer {
  border-top: 1px solid var(--rule);
  padding-block: clamp(2.5rem, 5vw, 3.5rem) 5rem;
  background: var(--bg-2);
}
.footer-grid {
  display: grid;
  gap: 1.6rem;
}
@media (min-width: 52rem) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}
.site-footer h4 {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.8rem;
  font-weight: 600;
}
.site-footer p, .site-footer li { font-size: 0.9rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { padding: 0.22rem 0; }
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer a:hover { color: var(--c); text-decoration: underline; }
.footer-note {
  margin-top: 2.5rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--rule-soft);
  font-size: 0.8rem;
  color: var(--ink-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  justify-content: space-between;
}

/* ---------- Attribution (free tier — must stay readable) ---------- */
.attribution {
  position: static;
  font-family: var(--sans);
  font-size: 0.78rem;
  opacity: 1;
  color: var(--ink-soft);
}
.attribution a { color: var(--ink-soft); text-decoration: underline; }
.attribution a:hover { color: var(--c); }
