@font-face {
  font-family: "Schibsted Grotesk";
  src: url("schibsted-grotesk-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
}

:root {
  --paper: #f5efe6;
  --card: #fffcf7;
  --card-hi: #f6ead6;
  --ink: #15112a;
  --muted: #57516a;
  --line: rgba(21, 17, 42, .12);
  --line-strong: rgba(21, 17, 42, .24);
  --amber: #deb163;
  --amber-hi: #d4a24f;
  --amber-text: #8a5d14;
  --gutter: clamp(24px, 5.6vw, 100px);
  color-scheme: light;
  font-family: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  background: var(--paper);
  color: var(--ink);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body, h1, h2, h3, p, ol, ul { margin: 0; }
body { min-width: 280px; background: var(--paper); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
a:focus-visible, summary:focus-visible { outline: 2px solid currentColor; outline-offset: 6px; }
::selection { background: var(--amber); color: var(--ink); }
svg { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.skip-link {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 10;
  padding: 14px 20px;
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

/* The header sits on the photo, so its text stays light. */
.header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  padding-inline: var(--gutter);
  color: var(--paper);
}
.home-link { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-left: -6px; }
.home-link img { width: 26px; }
.header-right { display: flex; align-items: center; gap: 40px; }
.header-nav { display: none; gap: 32px; font-size: 14px; }
.header-nav a { display: flex; align-items: center; min-height: 44px; }
.languages { display: flex; align-items: center; gap: 1px; font-size: 13px; font-weight: 600; }
.languages a { display: grid; place-items: center; min-width: 44px; min-height: 44px; color: #e2dbd0; }
.languages a[aria-current] { color: var(--paper); text-decoration: underline; text-underline-offset: 7px; text-decoration-color: var(--amber); text-decoration-thickness: 2px; }
.languages span { color: #b9b0a3; }

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 640px;
  min-height: max(640px, 100svh);
  padding: 110px var(--gutter) 100px;
  overflow: hidden;
  background: #1a1512;
  color: var(--paper);
}
.hero-photo, .hero-shade { position: absolute; inset: 0; z-index: -1; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 59% center; }
.hero-shade {
  background: linear-gradient(90deg, rgba(20, 15, 12, .8), rgba(20, 15, 12, .45)), linear-gradient(0deg, rgba(20, 15, 12, .7), transparent 45%, rgba(20, 15, 12, .3));
}
.hero-content { width: 100%; max-width: 600px; }
.hero-brand { width: min(83%, 420px); margin-bottom: 30px; }
.hero-brand img { width: 100%; }
h1 { font-size: clamp(30px, 7.7vw, 42px); line-height: 1.15; letter-spacing: -.045em; font-weight: 500; }
.hero-description { max-width: 400px; margin-top: 18px; color: #ece6dc; font-size: 17px; line-height: 1.6; text-wrap: pretty; }
.hero-action { margin-top: 28px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 16px 28px;
  border-radius: 4px;
  font-size: 16px;
  line-height: 1.3;
  font-weight: 600;
  text-align: center;
  transition: background-color .2s, transform .2s;
}
.button-primary { color: var(--ink); background: var(--amber); }
.button:active { transform: translateY(1px); }
.availability { display: flex; align-items: center; gap: 8px; margin-top: 14px; color: #ddd5c9; font-size: 13px; line-height: 1.5; }
.availability span { flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--amber); }
.hero-scroll { position: absolute; bottom: 24px; left: var(--gutter); display: flex; align-items: center; gap: 14px; min-height: 44px; font-size: 14px; }
.hero-scroll svg { width: 16px; height: 16px; transition: transform .2s; }

.section-shell { padding-inline: var(--gutter); }
h2 { font-size: clamp(38px, 9vw, 72px); line-height: 1.04; letter-spacing: -.055em; font-weight: 500; text-wrap: balance; }
.section-description { max-width: 36ch; margin-top: 22px; color: var(--muted); font-size: 17px; line-height: 1.65; text-wrap: pretty; }

/* One night, told in moments. On small screens the pot sticks to the top
   and the moments scroll under it; from 1024px it sits beside them. */
.how { padding-block: 80px 24px; scroll-margin-top: 0; }
.story { position: relative; margin-top: 36px; }
.pot-wrap {
  position: relative;
  top: 0;
  z-index: 1;
  margin-inline: calc(var(--gutter) * -1);
  padding: 12px var(--gutter) 24px;
  background: linear-gradient(var(--paper) 80%, rgba(245, 239, 230, 0));
}
/* Without the script the pot cannot follow the story, so it only sticks once the script runs. */
.story.is-live .pot-wrap { position: sticky; }
.moments { padding: 0; list-style: none; }
.moment { display: flex; flex-direction: column; justify-content: center; min-height: min(48svh, 440px); padding-block: 36px; transition: opacity .4s ease; }
.story.is-live .moment:not(.is-active) { opacity: .3; }
.moment-time { margin-bottom: 12px; color: var(--amber-text); font-size: 15px; font-weight: 600; }
.moment h3 { font-size: clamp(27px, 6.6vw, 40px); line-height: 1.1; letter-spacing: -.045em; font-weight: 500; }
.moment p:last-child { max-width: 38ch; margin-top: 14px; color: var(--muted); font-size: 17px; line-height: 1.65; text-wrap: pretty; }

.pot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "head head" "amount people" "caption status" "bar bar";
  align-items: end;
  column-gap: 16px;
  max-width: 560px;
  padding: 16px 18px 20px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: radial-gradient(circle at 18% 62%, rgba(222, 177, 99, .16), transparent 46%), var(--card);
  box-shadow: 0 30px 60px -36px rgba(21, 17, 42, .35);
}
.pot-head { grid-area: head; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 12px; }
.pot-title { font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.pot-meta { color: var(--muted); font-size: 12px; }
.pot-amount { grid-area: amount; display: flex; align-items: flex-start; margin-top: 10px; font-size: 54px; line-height: 1; font-weight: 700; letter-spacing: -.055em; font-variant-numeric: tabular-nums; }
.pot-currency { margin: .1em .08em 0 0; font-size: .46em; font-weight: 600; letter-spacing: 0; }
.pot-caption { grid-area: caption; margin-top: 6px; color: var(--muted); font-size: 13px; }
.pot-people { grid-area: people; display: flex; align-self: center; margin-top: 10px; padding: 0; list-style: none; }
.pot-people li { display: grid; justify-items: center; gap: 6px; color: var(--muted); font-size: 12px; }
.pot-people li + li { margin-left: -7px; }
.pot-avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1.5px solid var(--line-strong);
  border-radius: 50%;
  background: var(--card);
  font-size: 13px;
  font-weight: 600;
  transition: background-color .35s, border-color .35s, color .35s;
}
.pot-people .is-paid .pot-avatar { border-color: var(--card); background: var(--amber); color: var(--ink); }
.pot-name { display: none; }
.pot-status { grid-area: status; margin-top: 6px; color: var(--muted); font-size: 13px; text-align: right; }
.pot-bar { grid-area: bar; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; margin-top: 14px; }
.pot-bar span { height: 5px; overflow: hidden; border-radius: 3px; background: rgba(222, 177, 99, .3); }
.pot-bar span::before { content: ""; display: block; width: calc(var(--fill, 0) * 100%); height: 100%; border-radius: inherit; background: var(--amber); transition: width .6s ease; }
.pot-detail { display: none; }

.faq { padding-block: 72px 88px; border-top: 1px solid var(--line); }
.faq-list { margin-top: 32px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 64px;
  padding-block: 18px;
  font-size: 19px;
  line-height: 1.35;
  font-weight: 500;
  letter-spacing: -.02em;
  list-style: none;
  cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 14px;
  height: 14px;
  background: linear-gradient(var(--ink), var(--ink)) center / 100% 2px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 2px 100% no-repeat;
  transition: transform .25s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { max-width: 58ch; padding-bottom: 24px; color: var(--muted); font-size: 17px; line-height: 1.65; text-wrap: pretty; }
.faq details a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--amber); text-decoration-thickness: 2px; text-underline-offset: 4px; }

.access { padding-block: 64px 72px; background: var(--amber); color: var(--ink); }
.access h2 { font-size: clamp(52px, 13vw, 96px); }
.access-action { max-width: 400px; margin-top: 28px; }
.access-action > p:first-child { font-size: 17px; line-height: 1.6; text-wrap: pretty; }
.button-dark { width: 100%; margin-top: 24px; color: var(--paper); background: var(--ink); }
.form-note { margin-top: 12px; color: rgba(21, 17, 42, .75); font-size: 13px; line-height: 1.5; }

.footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 28px; color: var(--muted); font-size: 13px; }
.footer-brand { display: flex; align-items: center; min-height: 44px; width: 88px; }

.entrance { animation: enter .8s both; }
h1.entrance { animation-delay: .1s; }
.hero-description.entrance { animation-delay: .18s; }
.hero-action.entrance { animation-delay: .26s; }
@keyframes enter { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }

@media (hover: hover) {
  .button-primary:hover { background: var(--amber-hi); }
  .button-dark:hover { background: #2a2350; }
  .hero-scroll:hover svg { transform: translateY(4px); }
  .header-nav a:hover, .languages a:hover { color: var(--amber); }
  .faq summary:hover { color: var(--amber-text); }
}

@media (min-width: 768px) {
  .header { height: 100px; }
  .header-nav { display: flex; }
  .hero { min-height: max(740px, 100svh); padding-top: 155px; padding-bottom: 135px; }
  .hero-photo img { object-position: center 58%; }
  .hero-shade { background: linear-gradient(90deg, rgba(20, 15, 12, .92) 0%, rgba(20, 15, 12, .78) 30%, rgba(20, 15, 12, .12) 72%), linear-gradient(0deg, rgba(20, 15, 12, .6), transparent 35%, rgba(20, 15, 12, .2)); }
  .hero-brand { width: 445px; margin-bottom: 34px; }
  h1 { font-size: clamp(40px, 3.5vw, 54px); }
  .hero-description { max-width: 430px; margin-top: 22px; font-size: 18px; }
  .hero-action { margin-top: 32px; }
  .hero-scroll { bottom: 35px; }
  .section-description { font-size: 18px; }
  .how { padding-block: 120px 40px; }
  .section-intro { display: grid; grid-template-columns: 1.2fr 1fr; align-items: end; gap: 60px; }
  .section-intro .section-description { justify-self: end; margin: 0 0 6px; }
  .story { margin-top: 56px; }
  .pot { padding: 20px 24px 24px; }
  .pot-title { font-size: 17px; }
  .pot-meta { font-size: 14px; }
  .pot-amount { font-size: 64px; }
  .pot-caption, .pot-status { font-size: 14px; }
  .pot-avatar { width: 40px; height: 40px; font-size: 15px; }
  .moment p:last-child { font-size: 18px; }
  .faq { display: grid; grid-template-columns: 1fr 1.3fr; align-items: start; gap: 60px; padding-block: 110px 120px; }
  .faq-list { margin-top: 0; }
  .faq summary { font-size: 21px; }
  .faq details p { font-size: 18px; }
  .access { padding-block: 90px; }
  .access-action > p:first-child { font-size: 18px; }
  .footer { padding-block: 34px; }
}

@media (min-width: 1024px) {
  .story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, 390px); align-items: start; column-gap: clamp(56px, 8vw, 150px); }
  .pot-wrap { grid-area: 1 / 2; top: max(24px, calc(50vh - 320px)); margin: 0; padding: 0; background: none; }
  .moments { grid-area: 1 / 1; }
  .moment { min-height: 70vh; padding-block: 60px; }
  .moment-time { font-size: 17px; }
  .moment h3 { font-size: clamp(40px, 3.6vw, 56px); }
  .moment p:last-child { max-width: 34ch; margin-top: 18px; font-size: 20px; }
  .pot {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "head" "amount" "caption" "bar" "people" "status" "detail";
    justify-items: center;
    padding: 26px 26px 28px;
    border-radius: 36px;
    background: radial-gradient(circle at 50% 22%, rgba(222, 177, 99, .2), transparent 40%), var(--card);
    text-align: center;
  }
  .pot-head { justify-self: stretch; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left; }
  .pot-title { font-size: 22px; letter-spacing: -.02em; }
  .pot-amount { margin-top: 34px; font-size: 96px; }
  .pot-caption { margin-top: 8px; font-size: 15px; }
  .pot-bar { justify-self: stretch; margin-top: 28px; }
  .pot-people { gap: 20px; margin-top: 28px; }
  .pot-people li + li { margin-left: 0; }
  .pot-avatar { width: 44px; height: 44px; font-size: 16px; }
  .pot-name { display: block; }
  .pot-status { margin-top: 16px; text-align: center; }
  .pot-detail { display: grid; justify-self: stretch; min-height: 196px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); text-align: left; }
  .pot-spends, .pot-share { grid-area: 1 / 1; transition: opacity .35s, visibility .35s; }
  .pot.is-ended .pot-spends, .pot:not(.is-ended) .pot-share { opacity: 0; visibility: hidden; }
  .pot-label { font-size: 15px; font-weight: 600; }
  .pot-spends ul { margin-top: 6px; padding: 0; list-style: none; }
  .pot-spends li { display: flex; justify-content: space-between; gap: 12px; padding-block: 11px; border-bottom: 1px solid var(--line); font-size: 15px; animation: enter .45s both; }
  .pot-spends li:not(.is-shown), .pot.has-spends .pot-empty { display: none; }
  .pot-empty { margin-top: 10px; color: var(--muted); font-size: 14px; }
  .pot-share { align-self: start; padding: 20px; border-radius: 22px; background: var(--card-hi); }
  .pot-share p { font-size: 19px; font-weight: 600; letter-spacing: -.02em; }
  .pot-button { display: block; margin-top: 16px; padding: 14px; border-radius: 999px; background: var(--amber); color: var(--ink); font-size: 15px; font-weight: 600; text-align: center; }
  .access { display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: 60px; }
  .access-action { justify-self: end; margin-top: 0; }
}

/* Laptops with short screens still need the whole pot in view. */
@media (min-width: 1024px) and (max-height: 760px) {
  .pot-wrap { top: max(16px, calc(50vh - 270px)); }
  .pot { padding-block: 20px 22px; }
  .pot-amount { margin-top: 14px; font-size: 68px; }
  .pot-bar, .pot-people { margin-top: 18px; }
  .pot-avatar { width: 38px; height: 38px; font-size: 14px; }
  .pot-status { margin-top: 10px; }
  .pot-detail { min-height: 150px; margin-top: 16px; padding-top: 14px; }
  .pot-spends li { padding-block: 7px; }
  .pot-share { padding: 16px; }
  .pot-share p { font-size: 17px; }
  .pot-button { margin-top: 12px; padding: 11px; }
}

@media (min-width: 1800px) {
  .hero-content { max-width: 700px; }
  .hero-brand { width: 540px; }
  h1 { font-size: 60px; }
  .hero-description { max-width: 480px; font-size: 20px; }
}

@media (max-width: 374px) {
  :root { --gutter: 20px; }
  .hero { padding-top: 95px; padding-bottom: 92px; }
  .hero-brand { width: 230px; margin-bottom: 24px; }
  h1 { font-size: 28px; }
  .hero-description { font-size: 16px; }
  .button { width: 100%; padding-inline: 16px; font-size: 15px; }
  .pot { padding-inline: 14px; }
  .pot-amount { font-size: 46px; }
  .pot-avatar { width: 30px; height: 30px; font-size: 12px; }
}

@media (max-width: 767px) and (max-height: 620px) {
  .hero { min-height: 100svh; padding-top: 100px; padding-bottom: 76px; }
  .hero-brand { width: 230px; margin-bottom: 22px; }
  .hero-action { margin-top: 22px; }
  .hero-scroll { bottom: 15px; }
}

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