/* Shared visual tokens for the public Snjókallinn site. */
:root {
  --site-font: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", sans-serif;
  --paper: #f8f2ee;
  --soft: #efe4de;
  --ink: #1d1114;
  --muted: #65565a;
  --line: #dfd2cc;
  --brand: #af1b3f;
  --brandtext: #af1b3f;
  --dark: #0e0709;
  --ondark: #f7ede9;
  --pink: #ff7a97;
  --site-header-height: 4.75rem;
  --sn-paper: var(--paper);
  --sn-ink: var(--ink);
  --sn-burgundy: var(--brand);
  --sn-muted: var(--muted);
  --sn-line: var(--line);
  --sn-rail: 0px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #150c0f;
    --soft: #1f1317;
    --ink: #f4eae6;
    --muted: #b6a4a8;
    --line: #35242b;
    --brandtext: #ff8fa8;
  }
}

:root[data-theme="dark"] {
  --paper: #150c0f;
  --soft: #1f1317;
  --ink: #f4eae6;
  --muted: #b6a4a8;
  --line: #35242b;
  --brandtext: #ff8fa8;
}

html {
  box-sizing: border-box;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--site-header-height) + 1rem);
}

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

body.sn-home, body.sn-page, body.sn-subpage {
  margin: 0;
  padding: 0;
  min-width: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--site-font);
  -webkit-font-smoothing: antialiased;
}

.sn-home img { display: block; max-width: 100%; }
.sn-home a { color: inherit; }
.sn-home .wrap { max-width: 72rem; margin: 0 auto; padding: 0 1.25rem; }
.sn-home h1, .sn-home h2, .sn-home h3 {
  font-weight: 780;
  letter-spacing: -.025em;
  line-height: 1;
  margin: 0;
}
.sn-home h2 { font-size: clamp(2.1rem, 7vw, 3.6rem); }
.sn-home .btn {
  display: inline-block;
  background: var(--brand);
  color: white;
  font-weight: 650;
  text-decoration: none;
  padding: .95rem 1.4rem;
  border-radius: .4rem;
  border: 0;
  font-family: inherit;
  font-size: 1rem;
  cursor: pointer;
}
.sn-home .link { font-weight: 600; text-underline-offset: .25em; }

.site-chrome {
  position: sticky;
  top: 0;
  z-index: 80;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--dark);
  color: var(--ondark);
  font-family: var(--site-font);
}
.site-chrome .site-chrome-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 72rem;
  min-height: var(--site-header-height);
  margin: 0 auto;
  padding: .8rem 1.25rem;
}
.site-chrome .site-wordmark, .site-chrome-footer .site-wordmark {
  color: var(--ondark);
  font: 800 1.5rem/1.1 var(--site-font);
  letter-spacing: -.04em;
  text-decoration: none;
}
.site-wordmark span { color: var(--pink); }
.site-chrome nav {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  font: 550 .95rem/1.4 var(--site-font);
}
.site-chrome nav a, .site-chrome nav a:first-child {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: inherit;
  text-decoration: none;
}
.site-chrome nav a:hover, .site-chrome nav a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: .4rem;
  text-decoration-color: var(--pink);
}
.site-chrome-footer {
  clear: both;
  margin: 0;
  padding: 3rem 1.25rem;
  background: var(--dark);
  color: var(--ondark);
  font: 400 1rem/1.6 var(--site-font);
}
.site-chrome-footer > div {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 1.4rem 2rem;
  max-width: 69.5rem;
  margin: auto;
}
.site-chrome-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem 1.4rem;
  width: 100%;
  font: inherit;
}
.site-chrome-footer a { color: inherit; text-underline-offset: .25rem; }
.site-chrome-footer small { width: 100%; color: #cdbbbf; font-size: .875rem; }
.site-chrome-footer span { font: inherit; }

.sn-page :is(h1,h2,h3),
.sn-subpage :is(h1,h2,h3),
.sn-page :is(button,input,select,textarea),
.sn-subpage :is(button,input,select,textarea) {
  font-family: var(--site-font) !important;
}
.sn-page :is(h1,h2,h3), .sn-subpage :is(h1,h2,h3) {
  font-weight: 780;
  font-style: normal;
  letter-spacing: -.025em;
  line-height: 1.08;
}
.sn-subpage h1 { font-size: clamp(3rem, 8vw, 6rem); }
.sn-subpage h2 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
.sn-subpage h3 { font-size: clamp(1.4rem, 3vw, 1.8rem); }
.sn-subpage h1 em, .sn-subpage h2 em { font-style: normal; font-weight: inherit; color: var(--brandtext); }
.sn-page :is(.sn-kicker,.inquiry-hint,.inquiry-alternative,.inquiry-form label,.inquiry-form legend),
.sn-subpage :is(.eyebrow,.small,.text-link,.textlink,summary) {
  font-family: var(--site-font);
  font-size: .875rem;
  line-height: 1.6;
}
.sn-page :is(.sn-intro p,.inquiry-intro p,.faq-list details p,.price-package ul,.price-note),
.sn-subpage :is(main p,main li,.section p,.section li,.hero p) {
  font-size: 1rem;
  line-height: 1.65;
}
.sn-page .sn-main {
  width: min(72rem, 100%);
  max-width: 72rem;
  margin: auto;
  padding: 3.5rem 1.25rem 4.5rem;
}
.sn-page .sn-main:has(.price-list) { max-width: 72rem; }
.sn-page .sn-main:has(.reel-room) { max-width: none; padding: 0; }
.sn-page :is(.sn-button,.sn-play),
.sn-subpage :is(.button,.btn,.package-dm) {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 3rem;
  padding: .95rem 1.4rem;
  border: 1px solid var(--brand);
  border-radius: .4rem;
  background: var(--brand);
  color: white;
  box-shadow: none;
  font: 650 1rem/1.4 var(--site-font);
  font-style: normal;
  text-decoration: none;
  transform: none;
}
.sn-page :is(.sn-button,.sn-play):hover,
.sn-subpage :is(.button,.btn,.package-dm):hover {
  background: var(--brand);
  color: white;
  border-radius: .4rem;
  transform: none;
  filter: brightness(1.12);
}
.sn-page .price-package {
  border-radius: .4rem;
  background: var(--soft);
  border-color: var(--line);
}
.sn-page .price-package h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.sn-page .price-package .price-amount {
  font-family: var(--site-font);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--brandtext);
}
.sn-page :is(.inquiry-package,.inquiry-next,.review-copy,.sn-photo-view img) { background: var(--soft); }
.sn-page .inquiry-form :is(input,select,textarea) {
  background: var(--paper);
  border-color: var(--line);
  color: var(--ink);
  font-size: 1rem;
}
.sn-page .inquiry-form select {
  appearance: none;
  background-image: linear-gradient(45deg,transparent 50%,var(--muted) 50%),
    linear-gradient(135deg,var(--muted) 50%,transparent 50%);
  background-position: calc(100% - 1.3rem) 50%,calc(100% - 1rem) 50%;
  background-size: .3rem .3rem;
  background-repeat: no-repeat;
  padding-right: 2.5rem;
}
.sn-page:has(.reel-room) { --reel-height: calc(100dvh - var(--site-header-height)); }
.sn-page:has(.reel-room) > .site-chrome-footer { display: none; }
.sn-page .reel-room { font-family: var(--site-font); background: var(--dark); }
.sn-page .reel-top h1 { font-size: 1.8rem; color: var(--ondark); }
.sn-page .reel-filters a { font-family: var(--site-font); font-size: .875rem; }

:where(.sn-home,.sn-page,.sn-subpage) :focus-visible {
  outline: 3px solid var(--pink);
  outline-offset: 3px;
}
:where(.sn-home,.sn-page,.sn-subpage) a,
:where(.sn-home,.sn-page,.sn-subpage) button { touch-action: manipulation; }
.sn-skip, .skip {
  position: fixed;
  top: .5rem;
  left: 1rem;
  z-index: 100;
  padding: .7rem 1rem;
  background: var(--paper);
  color: var(--ink);
  transform: translateY(-200%);
}
.sn-skip:focus, .skip:focus { transform: none; }

@media (max-width: 600px) {
  :root { --site-header-height: 7.25rem; }
  .site-chrome .site-chrome-inner {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: .3rem;
    padding: .8rem 1.25rem .4rem;
  }
  .site-chrome nav { width: 100%; gap: 1.1rem; font-size: .875rem; }
  .site-chrome .site-wordmark { font-size: 1.4rem; }
  .sn-page .sn-main { padding: 2.25rem 1.25rem 3.5rem; }
  .site-chrome-footer { padding: 2.5rem 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Shared chrome also overrides the broad header rules in older section sheets. */
.site-chrome { display: block; }
.site-chrome .site-chrome-inner { width: 100%; }
.sn-home a.pop { color: var(--ondark); }

.sn-page :is(.review-entry-copy blockquote,.review-full-quotes,.review-entry details) {
  font-family: var(--site-font);
  font-style: normal;
  font-size: 1rem;
}
.sn-page .reviews-end { background: var(--soft); }
.sn-page :is(.reviews-intro h1 em,.review-entry summary,.sn-kicker) { color: var(--brandtext); }
.sn-page .inquiry-package :is(p,a) { font-size: .875rem; }
.sn-page .inquiry-package small { font-size: .875rem; }

/* Legacy section rules must not reintroduce a second typeface. */
:where(.sn-page,.sn-subpage) :is(p,a,span,small,li,dt,dd,label,summary,legend,blockquote,figcaption,strong,b,em) {
  font-family: var(--site-font) !important;
}
.sn-page :is(.review-total,.review-number) { font-size: .875rem; }

/* Optional guidance stays available without occupying the whole page. */
.optional-quiz {
  max-width: 72rem;
  margin: 2rem auto;
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.optional-quiz > summary {
  min-height: 2.75rem;
  cursor: pointer;
  font: 650 1rem/1.5 var(--site-font);
}
.sn-section-bumba .optional-quiz .quiz-section {
  margin-top: 1rem;
  padding: 1rem 0;
}
.wedding-optional-quiz { color: inherit; border-color: currentColor; }
.wedding-optional-quiz .quiz-layout { margin-top: 1.5rem; }
.inquiry-details {
  margin: 0 0 2rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.inquiry-details > summary {
  cursor: pointer;
  padding: 1.25rem 0;
  font-weight: 650;
}
.inquiry-details > summary small { margin-left: .5rem; color: var(--muted); }
.inquiry-details > div { padding: 1rem 0; }
:where(.sn-home,.sn-page,.sn-subpage) [hidden] { display: none !important; }
@media(max-width:700px) {
  .sn-section-bumba .packages {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    overflow: visible;
    margin: 1.5rem 0;
    padding: 0;
    scroll-snap-type: none;
  }
  .sn-section-bumba .packages .package {
    width: auto;
    min-width: 0;
    margin: 0;
    padding: 1.5rem 1rem;
  }
  body.sn-section-bumba { padding-bottom: 0; }
}

/* Expanding a review replaces the excerpt with the complete original quote. */
.review-entry-copy:has(> details[open]) > blockquote { display: none; }

/* A compact footer keeps contact details and secondary services out of the way. */
.site-footer-compact { padding: 1.5rem 1.25rem; }
.site-footer-compact > div { align-items: center; gap: .8rem 2rem; }
.site-footer-compact small { width: auto; margin-right: auto; font-size: .875rem; }
.site-footer-contact { display: flex; gap: 1.25rem; font-size: .875rem; }
.site-footer-services { position: relative; font-size: .875rem; }
.site-footer-services summary { cursor: pointer; min-height: 2rem; padding: .25rem 0; }
.site-footer-services nav {
  position: absolute;
  right: 0;
  bottom: 100%;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  width: max-content;
  max-width: min(22rem,85vw);
  padding: 1.25rem;
  gap: .8rem;
  border: 1px solid #634852;
  border-radius: .5rem;
  background: var(--dark);
}
@media(max-width:600px) {
  .site-footer-compact small { width: 100%; }
  .site-footer-services { margin-left: auto; }
  .site-chrome nav { gap: 1rem; }
}

.inquiry-quick { margin: 1.5rem 0 0; }
.inquiry-quick > .inquiry-details { margin-bottom: 1.25rem; }
.inquiry-quick > .inquiry-hint { margin: .8rem 0 0; }
.sn-main:has(.inquiry-quick) { padding-bottom: 2rem; }
@media(max-width:600px) {
  .sn-main:has(.inquiry-quick) { padding-top: 1.75rem; padding-bottom: 1.5rem; }
  .sn-page .inquiry-intro h1 { font-size: clamp(2.25rem,9vw,3rem); }
}
