/* ==========================================================================
   SKARV — naturvinbar, Lillesand
   Redaksjonell/matmagasin-estetikk. Høy kontrast: varm nesten-sort + krem,
   med én mettet aksent (teglrød/tindved-oransje) hentet fra vin og bær.
   Ingen tailwind-blå, ingen kort-suppe.
   ========================================================================== */

:root {
  --ink:        #17130e;   /* varm nesten-sort base */
  --ink-2:      #241d15;
  --paper:      #f3ead9;   /* krem */
  --paper-2:    #ece0c9;
  --muted:      #6a5d4c;   /* dempet blekk til brødtekst */
  --muted-soft: #8a7c68;
  --flame:      #cf4a1e;   /* eneste aksent — teglrød/tindved */
  --flame-deep: #a5390f;
  --line:       rgba(23, 19, 14, 0.16);
  --line-light: rgba(243, 234, 217, 0.18);

  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans:  'Schibsted Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --max: 1200px;
  --edge: clamp(1.4rem, 5vw, 5.5rem);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0; }

em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--flame);
}

/* selektiv, varm markering */
::selection { background: var(--flame); color: var(--paper); }

/* felles seksjons-etikett */
.index {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--flame-deep);
  margin-bottom: 1.4rem;
}
.index--light { color: rgba(243, 234, 217, 0.55); }

/* ---- Reveal-on-scroll ---- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ==========================================================================
   Folio-masthead — leser som en bladforside, ikke en navigasjonsrad
   ========================================================================== */
.folio {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  gap: 1rem;
  padding: 1.9rem var(--edge);
}
.folio__mark {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.7rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  line-height: 1;
}
.folio__meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  text-align: center;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 0.35rem;
}
.folio__meta span:nth-child(2) { color: var(--ink); }
.folio__year {
  justify-self: end;
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  padding-top: 0.3rem;
}
@media (max-width: 680px) {
  .folio { grid-template-columns: 1fr auto; }
  .folio__meta { display: none; }
}

/* Slim navigasjonslinje — toner inn først etter hero */
.slimbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem var(--edge);
  background: rgba(243, 234, 217, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-100%);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.slimbar.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.slimbar__mark {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.15rem;
  text-decoration: none;
}
.slimbar__links { display: flex; gap: 2rem; }
.slimbar__links a {
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--muted);
  transition: color 0.2s ease;
}
.slimbar__links a:hover { color: var(--flame); }
@media (max-width: 620px) {
  .slimbar__links { gap: 1.1rem; }
  .slimbar__links a:nth-child(n+3) { display: none; }
}

/* ==========================================================================
   HERO — tekstledet, asymmetrisk. Typografien ER designet.
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  align-items: end;
  gap: clamp(2rem, 5vw, 4.5rem);
  padding: 9rem var(--edge) clamp(3rem, 6vw, 5rem);
}

.hero__eyebrow {
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--flame-deep);
  margin-bottom: 1.6rem;
}

.hero__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(3.2rem, 12vw, 9rem);
  line-height: 0.92;
  letter-spacing: -0.02em;
  margin: 0 0 2rem;
}
.hero__title span { display: block; }
.hero__title em {
  font-weight: 300;
  font-size: 1.06em;
  letter-spacing: -0.01em;
}

.hero__lede {
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  line-height: 1.6;
  color: var(--muted);
  max-width: 34rem;
}

/* asymmetrisk sidespalte, forskjøvet ned */
.hero__aside {
  align-self: end;
  max-width: 22rem;
  padding-bottom: 0.4rem;
}
.hero__figure {
  margin: 0 0 1.25rem;
  position: relative;
}
.hero__figure img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
  filter: saturate(1.02) contrast(1.02);
}
.hero__figure figcaption {
  position: absolute;
  left: 0; bottom: 0;
  padding: 0.4rem 0.75rem;
  background: var(--flame);
  color: var(--paper);
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.82rem;
  max-width: 85%;
}
.hero__aside-note {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--muted);
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 2.5rem;
    padding-top: 8rem;
  }
  .hero__aside { max-width: 26rem; }
}
@media (max-width: 560px) {
  .hero__title { font-size: clamp(3rem, 17vw, 5rem); }
}

/* ==========================================================================
   KJELLEREN — smaksprofiler, nummerert redaksjonell liste
   ========================================================================== */
.cellar {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(5rem, 9vw, 8.5rem) var(--edge) clamp(3.5rem, 6vw, 5rem);
}
.cellar__head {
  display: grid;
  grid-template-columns: 1fr;
  max-width: 44rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.cellar__head h2 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.05;
  margin-bottom: 1.4rem;
}
.cellar__intro {
  font-size: 1.02rem;
  color: var(--muted);
  max-width: 32rem;
}

.cellar__list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  /* asymmetri: listen skyves inn fra venstre */
  margin-left: clamp(0px, 8vw, 9rem);
}
.cellar__list li {
  display: grid;
  grid-template-columns: 2.5rem 1fr auto;
  align-items: baseline;
  gap: 1.5rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--line);
}
.cellar__no {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--flame);
  line-height: 1;
}
.cellar__body h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}
.cellar__body p {
  font-size: 0.96rem;
  color: var(--muted);
  max-width: 34rem;
}
.cellar__tag {
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-soft);
  white-space: nowrap;
  text-align: right;
}
@media (max-width: 720px) {
  .cellar__list { margin-left: 0; }
  .cellar__list li {
    grid-template-columns: 2rem 1fr;
    gap: 0.5rem 1rem;
  }
  .cellar__tag {
    grid-column: 2;
    text-align: left;
    margin-top: 0.4rem;
  }
}

/* ==========================================================================
   MENYEN — redaksjonell liste, ikke kort-grid
   ========================================================================== */
.menu {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(4rem, 7vw, 6.5rem) var(--edge) clamp(4rem, 7vw, 6rem);
}
.menu__head {
  max-width: 40rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.menu__head h2 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.05;
  margin-bottom: 1.2rem;
}
.menu__head p {
  font-size: 0.98rem;
  color: var(--muted);
  max-width: 32rem;
}

/* ---- Rett-blokk: bilde + etikett i sidespalte, retter i liste ---- */
.course {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.5fr);
  gap: clamp(1.75rem, 5vw, 4rem);
  align-items: start;
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  border-top: 1px solid var(--line);
}
.course:first-of-type { border-top: 2px solid var(--ink); }
.course--flip .course__aside { order: 2; }
.course--flip .course__list { order: 1; }

.course__aside {
  position: sticky;
  top: 5.5rem;
}
.course__figure {
  margin: 0 0 1.1rem;
  position: relative;
  overflow: hidden;
}
.course__figure img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
  filter: saturate(1.02) contrast(1.02);
}
.course__figure figcaption {
  position: absolute;
  left: 0; bottom: 0;
  padding: 0.35rem 0.7rem;
  background: rgba(23, 19, 14, 0.62);
  color: var(--paper);
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.8rem;
  max-width: 92%;
  line-height: 1.35;
}
.course__label {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.55rem;
}
.course__label span {
  font-style: italic;
  font-size: 1rem;
  color: var(--flame);
  letter-spacing: 0.02em;
}

.course__list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.course__list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.5rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.course__list li:first-child { padding-top: 0.2rem; }
.course__list li:last-child { border-bottom: none; }

@media (max-width: 760px) {
  .course {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .course__aside { position: static; }
  .course--flip .course__aside,
  .course--flip .course__list { order: 0; }
  .course__figure img { aspect-ratio: 16 / 10; }
  .course__label { font-size: 1.4rem; }
}

.menu__name {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  max-width: 42rem;
}
.menu__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.5rem;
  line-height: 1.15;
}
.menu__desc {
  font-size: 0.94rem;
  color: var(--muted);
  line-height: 1.55;
}
.menu__price {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  padding-left: 0.5rem;
}
.menu__price::after {
  content: ' kr';
  font-family: var(--sans);
  font-size: 0.7rem;
  color: var(--muted-soft);
  letter-spacing: 0.04em;
}
.menu__price--text {
  font-style: italic;
  font-size: 1.05rem;
  color: var(--muted);
}
.menu__price--text::after { content: none; }
.menu__note {
  margin-top: 2.5rem;
  max-width: 34rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.5;
}
@media (max-width: 560px) {
  .course__list li { flex-direction: column; gap: 0.55rem; }
  .menu__price { padding-left: 0; }
}

/* ==========================================================================
   KVELDEN — helsides mørk, stemning/målgruppe
   ========================================================================== */
.mood {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(5rem, 10vw, 9rem) var(--edge);
}
.mood__inner { max-width: var(--max); margin: 0 auto; }
.mood__quote {
  font-family: var(--serif);
  font-weight: 300;
  font-style: normal;
  font-size: clamp(1.7rem, 4.5vw, 3.1rem);
  line-height: 1.24;
  letter-spacing: -0.01em;
  max-width: 26ch;
  margin: 0 0 clamp(3rem, 6vw, 4.5rem);
  color: var(--paper);
}
.mood__quote em { color: var(--flame); font-weight: 300; }

.mood__cols {
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.mood__figure {
  margin: 0;
  border: 1px solid var(--line-light);
  /* asymmetri: bildet henger litt lavere enn teksten */
  transform: translateY(1.5rem);
}
.mood__figure img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
  filter: saturate(0.92) brightness(0.94);
}
.mood__text { max-width: 34rem; }
.mood__text p {
  font-size: 1.02rem;
  line-height: 1.75;
  color: rgba(243, 234, 217, 0.8);
  margin-bottom: 1.35rem;
}
.mood__sign {
  font-family: var(--serif);
  font-style: italic;
  color: var(--paper) !important;
  margin-top: 1.9rem;
}
@media (max-width: 720px) {
  .mood__cols { grid-template-columns: 1fr; }
  .mood__figure { transform: none; max-width: 22rem; }
}

/* ==========================================================================
   BESØK — åpningstider, beliggenhet, kontakt
   ========================================================================== */
.visit {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(5rem, 9vw, 8rem) var(--edge) clamp(4rem, 6vw, 6rem);
}
.visit__head {
  max-width: 40rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.visit__head h2 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.05;
}
.visit__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(2rem, 4vw, 3.5rem);
}
.visit__col h3 {
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--flame-deep);
  margin-bottom: 1.4rem;
}
/* asymmetri: kolonnene trappes nedover */
.visit__col--offset  { margin-top: 2.5rem; }
.visit__col--offset2 { margin-top: 5rem; }

.visit__hours div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.96rem;
}
.visit__hours dt { color: var(--muted); }
.visit__hours dd { margin: 0; font-weight: 500; }

address {
  font-style: normal;
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1.45;
  margin-bottom: 1.1rem;
}
.visit__contact {
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1.6;
  margin-bottom: 1.1rem;
}
.visit__contact a { text-decoration: none; border-bottom: 1px solid var(--line); }
.visit__contact a:hover { border-color: var(--flame); color: var(--flame); }

.visit__note {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.65;
  max-width: 22rem;
}
@media (max-width: 820px) {
  .visit__grid { grid-template-columns: 1fr; gap: 2.75rem; }
  .visit__col--offset, .visit__col--offset2 { margin-top: 0; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.foot {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem 2rem;
  padding: 2.25rem var(--edge) 2.75rem;
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
  color: var(--muted);
}
.foot__mark {
  font-family: var(--serif);
  font-style: italic;
  color: var(--ink);
}
