/* Kiwiback's marketing site, in the Table Talk brand (docs/decisions/038 and 039).
     The layout and copy are design/w11-website-kiwiberry-talk-v18.html; the colours are the
     app's Kiwi leads palette (docs/brand/app.md), so the site and the app are one brand:
     bright kiwi is something to press, dark green is green text, pale kiwi is a guest talking,
     plum means the guest came back, and deep plum is the dark stage. One look, no dark mode. */
:root {
  color-scheme: light;
  --paper: #f8f2f6; /* blush page */
  --white: #ffffff; /* card */
  --ink: #22192a;
  --muted: #645a66; /* 6.0:1 on the page */
  --line: #ebdde7;
  --act: #a3c93a; /* bright kiwi: every button, ink label 8.9:1 */
  --act-hover: #b3d54f;
  --green: #466f0c; /* green text and marks: kickers, links, focus, rings */
  --bubble: #e2eec0; /* pale kiwi: the guest's voice, ink on it 13.9:1 */
  --bubble-edge: #c9de95;
  --plum: #7b2f68; /* came back, white on it 8.6:1 */
  --plum-soft: #f5e4f0;
  --highlight: #f3d9ea;
  --stage: #3e1a38; /* deep plum: the dark sections */
  --stage-rgb: 62, 26, 56;
  --on-stage: #fbf6fa;
  --stage-muted: #dcc3d6;
  --stage-green: #bfdd6a; /* green text on the stage */
  --display: "Unbounded", "Helvetica Neue", Arial, sans-serif; /* the wordmark only */
  --title: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --body: "Figtree", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(16px, 4.5vw, 56px);
  --max: 1220px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
}
:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
  border-radius: 6px;
}
h1,
h2,
h3 {
  font-family: var(--title);
  font-weight: 700;
  margin: 0;
  text-wrap: balance;
  letter-spacing: -0.03em;
  line-height: 1.02;
}
p {
  margin: 0;
}
.wrap {
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.kicker {
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
}

/* ---- the signature: a speech bubble ---------------------------------- */
.bubble {
  position: relative;
  background: var(--bubble);
  color: var(--ink);
  border: 1px solid var(--bubble-edge);
  border-radius: 22px;
  padding: 12px 16px 13px;
  font-family: var(--title);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.25;
  letter-spacing: -0.006em;
  box-shadow: 0 14px 30px rgba(34, 25, 42, 0.2);
}
.bubble::after {
  content: "";
  position: absolute;
  bottom: -9px;
  width: 22px;
  height: 18px;
  background: inherit;
  clip-path: polygon(0 0, 100% 0, 30% 100%);
}
.bubble.tail-l::after {
  left: 22px;
}
.bubble.tail-r::after {
  right: 22px;
  clip-path: polygon(0 0, 100% 0, 70% 100%);
}
.bubble.tail-top::after {
  top: -9px;
  bottom: auto;
  left: 22px;
  right: auto;
  clip-path: polygon(30% 0, 100% 100%, 0 100%);
}
.bubble small {
  display: block;
  font-family: var(--body);
  font-weight: 500;
  font-size: 12px;
  opacity: 0.75;
  margin-top: 3px;
}
.bubble--plum {
  background: var(--plum);
  border-color: var(--plum);
  color: var(--white);
}
.bubble--plum small {
  opacity: 0.85;
}
.bubble--white {
  background: var(--white);
  border-color: var(--white);
}

/* Logo: the Round Back mark and the wordmark at 0.8× the mark. Ink on light, cream on the
     stage; the returning guest's circle is bright kiwi on both (docs/brand/app.md, "The mark") */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 600;
  font-size: 25.6px;
  letter-spacing: -0.05em;
  color: var(--ink);
}
.logo svg {
  width: 32px;
  height: 32px;
  flex: none;
  --mark-back: var(--act);
}
@media (max-width: 360px) {
  .nav .logo {
    font-size: 20.8px;
    gap: 8px;
  }
  .nav .logo svg {
    width: 26px;
    height: 26px;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 600 15px/1 var(--body);
  text-decoration: none;
  padding: 15px 22px;
  border-radius: 999px;
  background: var(--act);
  color: var(--ink);
  white-space: nowrap;
}
.btn:hover {
  background: var(--act-hover);
}
.store {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 20px 11px;
  border-radius: 16px;
  background: var(--act);
  color: var(--ink);
  text-decoration: none;
  line-height: 1.1;
  min-width: 152px;
}
.store small {
  font-size: 11px;
  opacity: 0.8;
}
.store b {
  font-family: var(--title);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.02em;
}
.store:hover {
  background: var(--act-hover);
}
.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 18px;
}
.nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
  font-weight: 500;
  font-size: 15px;
}
.nav ul a {
  text-decoration: none;
}
.nav ul a:hover {
  color: var(--green);
}
@media (max-width: 900px) {
  .nav ul {
    display: none;
  }
}

/* ---- the closing call and the footer, on every page ---------------------- */
.close {
  position: relative;
  overflow: hidden;
  color: var(--on-stage);
  background: var(--stage);
}
.close > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 40%;
}
.close::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(var(--stage-rgb), 0.94) 35%,
    rgba(var(--stage-rgb), 0.45)
  );
}
.close .wrap {
  position: relative;
  z-index: 1;
  padding-block: clamp(80px, 12vw, 150px);
}
.close h2 {
  font-size: clamp(44px, 6.8vw, 92px);
  letter-spacing: -0.03em;
  max-width: 12ch;
}
.close p {
  margin-top: 18px;
  font-size: 18px;
  color: var(--stage-muted);
  max-width: 40ch;
}
.close .stores {
  margin-top: 26px;
}
footer .wrap {
  padding-block: 40px 34px;
  display: grid;
  grid-template-columns: 1.4fr repeat(2, 1fr);
  gap: 28px;
}
footer h4 {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
}
footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
  font-size: 15px;
}
footer ul a {
  text-decoration: none;
}
footer ul a:hover {
  color: var(--green);
}
footer .tag {
  margin-top: 10px;
  color: var(--muted);
  font-size: 15px;
}
.credits {
  grid-column: 1 / -1;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  font-size: 12px;
  color: var(--muted);
}
@media (max-width: 760px) {
  footer .wrap {
    grid-template-columns: 1fr 1fr;
  }
  footer .wrap > div:first-child {
    grid-column: 1 / -1;
  }
}
