/* ============================================================
   Songon Park Resort — base stylesheet
   Palette: black + white + one colour per section
   Type: Fraunces (display) + Bricolage Grotesque (text)
   ============================================================ */

:root {
  --ink: #0a0a0a;
  --paper: #fbf7ef;
  --red: #e10600;
  --blue: #003c8a;
  --yellow: #f4ff33;

  --bg: var(--paper);
  --fg: var(--ink);
  --muted: #5a564e;
  --rule: rgba(10, 10, 10, 0.18);
  --card-bg: #ffffff;
  --card-fg: var(--ink);
  --card-muted: #5a564e;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", sans-serif;

  --pad: clamp(1.25rem, 4vw, 3rem);
  --maxw: 1180px;
  --radius: 2px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0b0b;
    --fg: #f2ede3;
    --muted: #a9a49a;
    --rule: rgba(242, 237, 227, 0.22);
    --card-bg: #161513;
    --card-fg: #f2ede3;
    --card-muted: #a9a49a;
  }
}

html[data-theme="light"] {
  --bg: var(--paper);
  --fg: var(--ink);
  --muted: #5a564e;
  --rule: rgba(10, 10, 10, 0.18);
  --card-bg: #ffffff;
  --card-fg: var(--ink);
  --card-muted: #5a564e;
}

html[data-theme="dark"] {
  --bg: #0b0b0b;
  --fg: #f2ede3;
  --muted: #a9a49a;
  --rule: rgba(242, 237, 227, 0.22);
  --card-bg: #161513;
  --card-fg: #f2ede3;
  --card-muted: #a9a49a;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.075rem);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* grain overlay */
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, video { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-variation-settings: "SOFT" 0, "WONK" 1;
  line-height: 1.06;
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2.4rem, 1.4rem + 4.6vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 1.2rem + 2.9vw, 3.2rem); }
h3 { font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.6rem); letter-spacing: -0.01em; }

p { margin: 0 0 1rem; text-wrap: pretty; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.small { font-size: 0.9rem; opacity: 0.85; }

/* ---------- skip link ---------- */
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 0.75rem 1rem;
  z-index: 10000;
}
.skip:focus { left: 0.5rem; top: 0.5rem; }

/* ---------- focus ---------- */
:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 3px;
}

/* ============================================================
   TOP BAR
   ============================================================ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.7rem var(--pad);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  flex: 0 0 auto;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  background: var(--fg);
  color: var(--bg);
  font-family: var(--serif);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}
.brand-name {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.brand-name em { font-style: italic; font-weight: 400; }

.nav {
  display: flex;
  gap: 1.15rem;
  margin-left: auto;
  font-size: 0.9rem;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.nav::-webkit-scrollbar { display: none; }
.nav a {
  text-decoration: none;
  white-space: nowrap;
  padding: 0.5rem 0.1rem;
  border-bottom: 1px solid transparent;
  transition: border-color 180ms ease, opacity 180ms ease;
  opacity: 0.82;
}
.nav a:hover { opacity: 1; border-bottom-color: currentColor; }

.theme-toggle {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
  padding: 0.4rem 0.85rem;
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 0.82rem;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease;
}
.theme-toggle:hover { border-color: currentColor; }
.theme-icon { font-size: 0.95rem; line-height: 1; }

@media (max-width: 860px) {
  .nav { display: none; }
  .theme-toggle { margin-left: auto; }
}

/* ============================================================
   BANDS — one colour per section
   ============================================================ */
.band {
  padding-block: clamp(3.5rem, 2rem + 6vw, 6.5rem);
  position: relative;
  background: var(--bg);
  color: var(--fg);
}

.band--ink {
  --bg: var(--ink);
  --fg: var(--paper);
  --muted: #b8b3a8;
  --rule: rgba(251, 247, 239, 0.22);
  --card-bg: #141414;
  --card-fg: var(--paper);
  --card-muted: #b8b3a8;
  background: var(--ink);
  color: var(--paper);
}

.band--red {
  --bg: var(--red);
  --fg: #ffffff;
  --muted: #ffe3e1;
  --rule: rgba(255, 255, 255, 0.32);
  --card-bg: #ffffff;
  --card-fg: var(--ink);
  --card-muted: #5a564e;
  background: var(--red);
  color: #ffffff;
}

.band--blue {
  --bg: var(--blue);
  --fg: #ffffff;
  --muted: #cfe0f7;
  --rule: rgba(255, 255, 255, 0.3);
  --card-bg: #ffffff;
  --card-fg: var(--ink);
  --card-muted: #5a564e;
  background: var(--blue);
  color: #ffffff;
}

.band--yellow {
  --bg: var(--yellow);
  --fg: var(--ink);
  --muted: #4a4a12;
  --rule: rgba(10, 10, 10, 0.28);
  --card-bg: var(--ink);
  --card-fg: var(--paper);
  --card-muted: #b8b3a8;
  background: var(--yellow);
  color: var(--ink);
}

.band--ink a, .band--red a, .band--blue a { color: inherit; }

/* ---------- band heads ---------- */
.eyebrow {
  font-family: var(--sans);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0 0 1rem;
  opacity: 0.75;
}

.band-head { max-width: 62ch; margin-bottom: clamp(2rem, 1rem + 3vw, 3.5rem); }
.band-lede {
  font-size: clamp(1.02rem, 0.96rem + 0.35vw, 1.2rem);
  max-width: 58ch;
  opacity: 0.92;
}

/* ---------- scribble marks ---------- */
mark.scribble {
  background: none;
  color: inherit;
  position: relative;
  padding-bottom: 0.06em;
  white-space: nowrap;
}
mark.scribble::after {
  content: "";
  position: absolute;
  left: -2%;
  right: -2%;
  bottom: -0.12em;
  height: 0.34em;
  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='M3 13 C 40 4, 78 17, 112 9 S 172 4, 197 11' fill='none' stroke='%23e10600' stroke-width='4' stroke-linecap='round'/></svg>");
  pointer-events: none;
}
.band--red mark.scribble::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 13 C 40 4, 78 17, 112 9 S 172 4, 197 11' fill='none' stroke='%23f4ff33' stroke-width='4' stroke-linecap='round'/></svg>");
}
.band--blue mark.scribble::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 13 C 40 4, 78 17, 112 9 S 172 4, 197 11' fill='none' stroke='%23f4ff33' stroke-width='4' stroke-linecap='round'/></svg>");
}
.band--yellow mark.scribble::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 13 C 40 4, 78 17, 112 9 S 172 4, 197 11' fill='none' stroke='%23003c8a' stroke-width='4' stroke-linecap='round'/></svg>");
}

/* ---------- placeholders ---------- */
.ph {
  font-style: normal;
  border-bottom: 2px dotted currentColor;
  opacity: 0.9;
  font-size: 0.94em;
}

/* ============================================================
   HERO
   ============================================================ */
.hero { padding-bottom: 0; }

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 1rem + 3vw, 3.5rem);
  align-items: center;
}

@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; }
}

.hero h1 { margin-bottom: 1.2rem; }
.hero .lede {
  font-size: clamp(1.02rem, 0.95rem + 0.4vw, 1.18rem);
  max-width: 54ch;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.8rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.5rem;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
  border: 1px solid currentColor;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}
.btn--solid {
  background: var(--yellow);
  color: #0a0a0a;
  border-color: var(--yellow);
}
.btn--solid:hover { background: #ffffff; border-color: #ffffff; }
.btn--ghost {
  background: transparent;
  color: inherit;
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.12); }

.hero-figure { margin: 0; }
.hero-figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
}
.hero-figure figcaption,
.split-figure figcaption {
  font-size: 0.8rem;
  margin-top: 0.6rem;
  opacity: 0.7;
}

.hero-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem 1.5rem;
  margin-top: clamp(2.5rem, 1.5rem + 3vw, 4rem);
  padding-block: 1.5rem;
  border-top: 1px solid var(--rule);
}
@media (min-width: 760px) {
  .hero-strip { grid-template-columns: repeat(4, 1fr); }
}
.hero-strip p {
  margin: 0;
  font-size: 0.86rem;
  letter-spacing: 0.02em;
  opacity: 0.85;
}
.hero-strip strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.9rem;
  font-weight: 600;
  line-height: 1;
  margin-bottom: 0.25rem;
  opacity: 1;
  color: var(--yellow);
}

/* ============================================================
   CARDS
   ============================================================ */
.cards {
  display: grid;
  gap: clamp(1.25rem, 0.8rem + 1.5vw, 2rem);
  grid-template-columns: 1fr;
}
@media (min-width: 700px) {
  .cards--2 { grid-template-columns: repeat(2, 1fr); }
  .cards--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .cards--3 { grid-template-columns: repeat(3, 1fr); }
}

.card {
  background: var(--card-bg);
  color: var(--card-fg);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.card h3,
.card p { padding-inline: 1.25rem; }
.card h3 { margin-top: 1.25rem; }
.card p { color: var(--card-muted); font-size: 0.95rem; }
.card .meta {
  margin-top: auto;
  padding-bottom: 1.25rem;
  padding-top: 0.5rem;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  color: var(--card-fg);
  opacity: 0.9;
}
.card .meta .ph { opacity: 0.9; }

.card--plain { padding-block: 1.5rem; }
.card--plain h3 { margin-top: 0; }

.cards--tight { margin-top: clamp(2rem, 1rem + 3vw, 3.5rem); }

/* ============================================================
   NOTE BLOCK
   ============================================================ */
.note-block {
  margin-top: clamp(2rem, 1rem + 3vw, 3.5rem);
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  border: 1px solid var(--rule);
  background: var(--card-bg);
  color: var(--card-fg);
  border-radius: var(--radius);
}
.note-block h3 { margin-top: 0; }
.note-block p { color: var(--card-muted); }
.note-block p.small { font-size: 0.88rem; }

.note-block--light {
  background: transparent;
  color: inherit;
  border-color: var(--rule);
}
.note-block--light p { color: inherit; opacity: 0.92; }

.ticks {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  display: grid;
  gap: 0.55rem;
}
.ticks li {
  position: relative;
  padding-left: 1.6rem;
  font-size: 0.95rem;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.7rem;
  height: 0.7rem;
  border: 2px solid currentColor;
  border-radius: 50%;
  opacity: 0.7;
}

/* ============================================================
   MENU
   ============================================================ */
.menu {
  display: grid;
  gap: clamp(1.75rem, 1rem + 2.5vw, 3rem);
  grid-template-columns: 1fr;
}
@media (min-width: 760px) {
  .menu { grid-template-columns: repeat(2, 1fr); }
}

.menu-col h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.6rem;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 0.55rem;
  margin-bottom: 0.9rem;
}
.menu-intro {
  font-size: 0.92rem;
  opacity: 0.88;
  margin-bottom: 1.1rem;
  max-width: 46ch;
}
.tag {
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  opacity: 0.85;
}
.item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: baseline;
  padding-block: 0.6rem;
  border-bottom: 1px dotted var(--rule);
  font-size: 0.95rem;
}
.item:last-child { border-bottom: 0; }
.price {
  font-family: var(--serif);
  font-size: 0.95rem;
  white-space: nowrap;
}

/* ============================================================
   SPLIT
   ============================================================ */
.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.75rem, 1rem + 3vw, 3.5rem);
  align-items: center;
}
@media (min-width: 880px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--reverse .split-figure { order: 2; }
}
.split-figure { margin: 0; }
.split-figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
}
.split-copy h3 { margin-top: 0; }
.split-copy p { opacity: 0.94; }
.split-copy .meta {
  font-size: 0.88rem;
  opacity: 0.82;
  margin-top: 1.2rem;
}

/* ============================================================
   FOOTER CARDS
   ============================================================ */
.footer-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.25rem, 0.8rem + 1.5vw, 2rem);
}
@media (min-width: 760px) {
  .footer-cards { grid-template-columns: repeat(3, 1fr); }
}
.fcard {
  padding: 1.5rem;
  background: var(--card-bg);
  color: var(--card-fg);
  border-radius: var(--radius);
}
.fcard h3 { margin-top: 0; }
.fcard p { font-size: 0.93rem; color: var(--card-muted); }
.fcard .meta { color: var(--card-fg); opacity: 0.9; font-size: 0.88rem; }

/* ============================================================
   CONTACT FORM
   ============================================================ */
.contact {
  margin-top: clamp(2rem, 1rem + 3vw, 3.5rem);
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  background: var(--card-bg);
  color: var(--card-fg);
  border-radius: var(--radius);
  max-width: 760px;
}
.contact h3 { margin-top: 0; }
.contact .small { color: var(--card-muted); }

.field-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 620px) {
  .field-row { grid-template-columns: 1fr 1fr; }
}

.contact label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 1rem;
}
.contact input,
.contact textarea {
  display: block;
  width: 100%;
  margin-top: 0.4rem;
  padding: 0.75rem 0.85rem;
  min-height: 48px;
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--card-fg);
  background: transparent;
  border: 1px solid var(--card-muted);
  border-radius: var(--radius);
}
.contact textarea { resize: vertical; }
.contact input:focus-visible,
.contact textarea:focus-visible {
  outline: 3px solid var(--card-fg);
  outline-offset: 2px;
}
.contact .btn--solid {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.contact .btn--solid:hover { background: var(--red); border-color: var(--red); color: #fff; }

.form-status {
  margin-top: 1rem;
  font-size: 0.9rem;
  font-weight: 600;
}

/* ============================================================
   CLOSING
   ============================================================ */
.closing { padding-block: clamp(3.5rem, 2rem + 6vw, 6rem); }
.quote {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 1.05rem + 1.9vw, 2.4rem);
  line-height: 1.22;
  letter-spacing: -0.015em;
  max-width: 34ch;
  margin: 0 0 1.2rem;
  text-wrap: balance;
}
.quote-src { font-size: 0.85rem; opacity: 0.75; margin: 0; }

/* ============================================================
   SITE FOOTER
   ============================================================ */
.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding-block: 2.5rem 3.5rem;
}
.footer-inner { display: grid; gap: 0.4rem; }
.footer-brand {
  font-family: var(--serif);
  font-size: 1.15rem;
  margin: 0;
}
.footer-line { font-size: 0.85rem; opacity: 0.7; margin: 0; }

.attribution {
  margin: 1.25rem 0 0;
  font-size: 0.72rem;
  opacity: 0.62;
  font-family: var(--sans);
}
.attribution a { color: inherit; text-decoration: none; }
.attribution a:hover { text-decoration: underline; }

/* ============================================================
   MOTION — gentle fade + rise on scroll enter
   ============================================================ */
@keyframes fadeRise {
  from { opacity: 0; translate: 0 12px; }
  to   { opacity: 1; translate: 0 0; }
}

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .band-head,
    .card,
    .menu-col,
    .split-figure,
    .split-copy,
    .fcard,
    .note-block,
    .contact,
    .quote {
      animation: fadeRise 420ms cubic-bezier(.2, .7, .1, 1) both;
      animation-timeline: view();
      animation-range: entry 0% cover 22%;
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
