/* Shy Zoo website. One stylesheet, no scripts, no external requests.
   Colours are the app's own (app/lib/theme/sketch.dart): paper and ink by day,
   night paper and chalk by night. Type: Fraunces (titles), Figtree (text). */

@font-face {
  font-family: "Fraunces Display";
  src: url("fonts/FrauncesDisplay-Italic.ttf") format("truetype");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces Display";
  src: url("fonts/FrauncesDisplay-SemiBold.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces Text";
  src: url("fonts/FrauncesText-Italic.ttf") format("truetype");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("fonts/Figtree-Variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --page: #f2ead8;
  --ink: #2a2836;
  --ink-soft: #5a5562;
  --line: #cdbfa6;
  --card: #e9dfc8;
  --card-edge: #d9ccb0;
  --accent: #e9b63f;
  --accent-edge: #b9791b;
  --on-accent: #2a2836;
  --link-line: #b9791b;
  --frame: #2a2836;
  --shadow: 43 30 127;
  --night: #1b2233;
  --night-deep: #141926;
  --chalk: #e9e2d0;
  --chalk-soft: #aeb2c4;
  --dusk: linear-gradient(180deg, #b4abcf 0%, #e6bdb4 40%, #f5d7a9 72%, #f3e2c2 100%);

  --serif: "Fraunces Display", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --serif-text: "Fraunces Text", "Fraunces Display", Georgia, serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --wrap: 1120px;
  --gutter: 16px;
  --radius: 16px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #1b2233;
    --ink: #e9e2d0;
    --ink-soft: #aeb2c4;
    --line: #3a435c;
    --card: #262f47;
    --card-edge: #313b57;
    --accent: #e3a93c;
    --accent-edge: #a8741d;
    --on-accent: #2a2836;
    --link-line: #e3a93c;
    --frame: #0d1120;
    --shadow: 4 6 14;
    --night: #121726;
    --night-deep: #0e1220;
  }
}

@media (min-width: 640px) {
  :root { --gutter: 28px; }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

html { background-color: var(--page); }

body {
  margin: 0;
  position: relative;
  z-index: 0;
  background-color: var(--page);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  font-weight: 430;
  line-height: 1.6;
  overflow-x: clip;
}
/* The paper's tooth over the whole page; content and the night band lie
   above it. */
body::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("img/tooth.webp") 0 0 / 384px 384px repeat;
  mix-blend-mode: multiply;
  opacity: 0.6;
  pointer-events: none;
}
@media (prefers-color-scheme: dark) {
  body::before { opacity: 0.35; }
}

img { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }

a {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-color: var(--link-line);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
a:hover { text-decoration-thickness: 3px; }

:focus-visible {
  outline: 3px solid var(--accent-edge);
  outline-offset: 3px;
  border-radius: 6px;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h2 { font-size: clamp(2rem, 4.4vw, 3rem); }
h3 { font-size: 1.45rem; margin-bottom: 0.35em; }
p { margin: 0 0 1em; text-wrap: pretty; }

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

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 10;
  padding: 10px 16px;
  background: var(--accent);
  color: var(--on-accent);
  border-radius: 10px;
  font-weight: 650;
  text-decoration: none;
}
.skip:focus { top: 12px; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---- masthead -------------------------------------------------------- */

.masthead { padding-block: 14px; }
.masthead__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.5rem;
  line-height: 1;
  white-space: nowrap;
}
.brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  box-shadow: 0 1px 0 rgb(var(--shadow) / 0.12), 0 4px 10px -4px rgb(var(--shadow) / 0.35);
}
.nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav a {
  display: inline-block;
  padding: 8px 10px;
  border-radius: 999px;
  font-size: 0.97rem;
  font-weight: 560;
  text-decoration: none;
}
.nav a:hover { background: var(--card); }
.nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--link-line);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}
.nav .lang {
  border: 1.5px solid var(--line);
  padding: 6px 12px;
  margin-left: 4px;
}
.lang__short { display: none; }
@media (max-width: 479px) {
  .brand { font-size: 1.3rem; }
  .brand img { width: 34px; height: 34px; border-radius: 8px; }
  .nav a { padding: 8px 7px; font-size: 0.92rem; }
  .nav .lang { padding: 5px 9px; }
  .lang__long { display: none; }
  .lang__short { display: inline; }
}

/* ---- buttons --------------------------------------------------------- */

.store {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 12px 22px 13px;
  border-radius: 14px;
  background: var(--accent);
  color: var(--on-accent);
  border: 2px solid var(--on-accent);
  box-shadow: 0 3px 0 var(--on-accent);
  text-decoration: none;
  line-height: 1.15;
  cursor: default;
}
.store__small {
  font-family: var(--serif-text);
  font-style: italic;
  font-size: 0.95rem;
}
.store__big {
  font-family: var(--serif);
  font-style: normal;
  font-weight: 600;
  font-size: 1.3rem;
}
.store:hover { text-decoration: none; }

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px 26px;
}
.textlink {
  font-weight: 600;
  white-space: nowrap;
}

/* ---- hero ------------------------------------------------------------ */

.hero {
  text-align: center;
  padding-top: clamp(20px, 5vw, 56px);
}
.eyebrow {
  font-family: var(--serif-text);
  font-style: italic;
  color: var(--ink-soft);
  font-size: 1.1rem;
  margin-bottom: 0.4em;
}
.hero h1 {
  font-size: clamp(3.6rem, 13vw, 7.25rem);
  line-height: 0.95;
  margin-bottom: 0.22em;
}
.tagline {
  font-family: var(--serif-text);
  font-style: italic;
  font-size: clamp(1.18rem, 2.6vw, 1.6rem);
  line-height: 1.4;
  max-width: 34em;
  margin: 0 auto 0.9em;
}
.tagline span { display: inline-block; white-space: nowrap; margin-inline: 0.12em; }
@media (max-width: 420px) {
  .tagline span { white-space: normal; }
}
.lede {
  max-width: 36rem;
  margin: 0 auto 1.6em;
  color: var(--ink-soft);
  font-size: 1.12rem;
}
.hero__art {
  margin: clamp(28px, 5vw, 56px) auto 0;
  max-width: 1280px;
  padding-inline: 8px;
}
.hero__art img { width: 100%; }
/* On a phone the wide picture is enlarged and its outer trees cut off, so
   the four pens fill the width. */
@media (max-width: 639px) {
  .hero__art { overflow: hidden; padding-inline: 0; }
  .hero__art img { width: 132%; max-width: none; margin-left: -16%; }
}

/* ---- sections -------------------------------------------------------- */

.section { padding-block: clamp(52px, 7.5vw, 96px); }
.section--tight { padding-top: 0; }
.section__head { max-width: 40rem; margin-bottom: clamp(28px, 4vw, 44px); }
.section__head--center { text-align: center; margin-inline: auto; }
.section__head p { color: var(--ink-soft); font-size: 1.1rem; }

.rules {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
  list-style: none;
  margin: 0;
  padding: 0;
}
.rule {
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 16px;
  align-items: center;
  padding: 14px 18px 14px 12px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: 0 2px 10px rgb(var(--shadow) / 0.08);
}
.rule img { width: 104px; }
.rule h3 { font-size: 1.35rem; }
.rule p { margin: 0; color: var(--ink-soft); font-size: 1rem; line-height: 1.5; }
@media (min-width: 720px) {
  .rules { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}
@media (min-width: 1040px) {
  .rules { grid-template-columns: repeat(4, 1fr); }
  .rule {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 20px 20px 26px;
    align-content: start;
  }
  .rule img { width: 180px; margin: 0 auto 4px; }
}
.rules__note {
  margin: 22px 0 0;
  text-align: center;
  font-family: var(--serif-text);
  font-style: italic;
  color: var(--ink-soft);
}

/* feature: text beside a phone */
.feature {
  display: grid;
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}
@media (min-width: 880px) {
  .feature { grid-template-columns: 1.1fr 0.9fr; }
  .feature--flip .feature__text { order: 2; }
}
.feature__text { max-width: 34rem; }
.feature__text > p { font-size: 1.1rem; }
.feature__media { display: flex; justify-content: center; }

.steps {
  list-style: none;
  counter-reset: step;
  margin: 26px 0 0;
  padding: 0;
  display: grid;
  gap: 16px;
}
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 2.4rem 1fr;
  gap: 12px;
  align-items: baseline;
}
.steps li::before {
  content: counter(step);
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.35rem;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--card);
  border: 1.5px solid var(--line);
  line-height: 1;
}
.steps strong { font-weight: 680; }

.phone {
  width: min(300px, 78vw);
  border-radius: 34px;
  border: 7px solid var(--frame);
  background: var(--frame);
  overflow: hidden;
  box-shadow: 0 30px 50px -30px rgb(var(--shadow) / 0.55), 0 10px 20px -12px rgb(var(--shadow) / 0.3);
}
.phone img { width: 100%; border-radius: 27px; }
.phones {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: clamp(14px, 3vw, 32px);
}
.phones .phone { width: min(270px, 44vw); }
.phones .phone:nth-child(2) { margin-top: 48px; }
.caption {
  font-family: var(--serif-text);
  font-style: italic;
  color: var(--ink-soft);
  text-align: center;
  font-size: 0.98rem;
  margin-top: 14px;
}

/* numbers */
.facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 16px;
  margin: 0;
  padding: 0;
}
@media (min-width: 880px) {
  .facts { grid-template-columns: repeat(4, 1fr); }
}
.fact { margin: 0; text-align: center; }
.fact dt {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.6rem, 6vw, 3.8rem);
  line-height: 1;
  margin-bottom: 8px;
}
.fact dd { margin: 0 auto; max-width: 14rem; color: var(--ink-soft); line-height: 1.45; }

.ticks {
  list-style: none;
  margin: clamp(36px, 5vw, 56px) auto 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 54rem;
}
.ticks li {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  font-weight: 560;
  font-size: 0.98rem;
}

/* the night band: torn paper edges at the top and bottom */
.night {
  --ink: var(--chalk);
  --ink-soft: var(--chalk-soft);
  --card: #262f47;
  --line: #3a435c;
  --link-line: #e3a93c;
  --frame: #0d1120;
  --shadow: 4 6 14;
  position: relative;
  background: var(--night);
  color: var(--chalk);
  margin-block: 40px;
}
.night::before,
.night::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 20px;
  background: var(--night);
  -webkit-mask: url("img/page-edge.webp") repeat-x left bottom / 512px 20px;
  mask: url("img/page-edge.webp") repeat-x left bottom / 512px 20px;
}
.night::before { top: -19px; }
.night::after { bottom: -19px; transform: scaleY(-1); }
.night__sky {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.night__vignette {
  position: absolute;
  width: clamp(120px, 16vw, 200px);
  opacity: 0.9;
}
.night__vignette--a { right: 4%; top: 36px; }
.night__vignette--b { left: 3%; bottom: 30px; }
@media (max-width: 879px) {
  .night__vignette { display: none; }
}
.night .wrap { position: relative; }

/* fair deal */
.deal {
  display: grid;
  gap: 20px;
}
@media (min-width: 880px) {
  .deal { grid-template-columns: 1fr 1fr; gap: 28px; }
}
.slip {
  background: var(--card);
  border-radius: var(--radius);
  padding: clamp(22px, 3vw, 34px);
  box-shadow: 0 2px 10px rgb(var(--shadow) / 0.08);
}
.slip h3 { font-size: 1.7rem; }
.slip p:last-child, .slip ul:last-child { margin-bottom: 0; }
.slip--accent { box-shadow: inset 0 0 0 2px var(--accent-edge), 0 2px 10px rgb(var(--shadow) / 0.08); }
.slip ul { padding-left: 1.1em; margin: 0 0 1em; }
.slip li { margin-bottom: 6px; }
.slip li::marker { color: var(--accent-edge); }
.quiet { color: var(--ink-soft); }

.closing { text-align: center; }
.closing__icon {
  width: 112px;
  height: 112px;
  border-radius: 26px;
  margin: 0 auto 24px;
  box-shadow: 0 16px 30px -16px rgb(var(--shadow) / 0.5);
}
.closing p { color: var(--ink-soft); font-size: 1.1rem; }
.closing .actions { margin-top: 26px; }

/* ---- documents (support, privacy, imprint) ---------------------------- */

.doc {
  max-width: 46rem;
  margin-inline: auto;
  padding-top: clamp(24px, 5vw, 56px);
  padding-bottom: clamp(56px, 8vw, 96px);
}
.doc h1 { font-size: clamp(2.6rem, 8vw, 4.2rem); margin-bottom: 0.25em; }
.doc h2 {
  font-size: clamp(1.6rem, 3.6vw, 2.05rem);
  margin-top: 2.1em;
  padding-top: 0.9em;
  border-top: 1.5px solid var(--line);
}
.doc h3 {
  font-family: var(--sans);
  font-style: normal;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0;
  margin: 1.6em 0 0.4em;
}
.doc ul, .doc ol { padding-left: 1.25em; margin: 0 0 1em; }
.doc li { margin-bottom: 0.4em; }
.doc li::marker { color: var(--accent-edge); }
.doc address { font-style: normal; margin-bottom: 1em; }
.doc dl { margin: 0 0 1em; }
.doc dt { font-weight: 700; margin-top: 0.9em; }
.doc dd { margin: 0.2em 0 0; }
.doc .lede { margin: 0 0 1.4em; text-align: left; }
.meta {
  font-family: var(--serif-text);
  font-style: italic;
  color: var(--ink-soft);
  margin-bottom: 1.6em;
}
.toc {
  background: var(--card);
  border-radius: var(--radius);
  padding: 18px 22px 10px;
  margin: 0 0 1em;
}
.toc h2 {
  font-family: var(--sans);
  font-style: normal;
  font-weight: 700;
  font-size: 1rem;
  border: 0;
  padding: 0;
  margin: 0 0 8px;
  letter-spacing: 0;
}
.toc ol { columns: 2 16rem; column-gap: 28px; margin: 0; }
.toc li { break-inside: avoid; }
.summary {
  background: var(--card);
  border-radius: var(--radius);
  padding: 20px 24px 6px;
  margin: 0 0 1.6em;
}
.summary ul { margin-bottom: 1em; }

.contact {
  display: grid;
  gap: 6px 20px;
  align-items: center;
  background: var(--card);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin: 0 0 2em;
}
@media (min-width: 640px) {
  .contact { grid-template-columns: 1fr auto; }
}
.contact p { margin: 0; }
.contact__mail {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.25rem;
  overflow-wrap: anywhere;
}
.button {
  display: inline-block;
  padding: 10px 20px 11px;
  border-radius: 12px;
  background: var(--accent);
  color: var(--on-accent);
  border: 2px solid var(--on-accent);
  box-shadow: 0 3px 0 var(--on-accent);
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.1rem;
  text-decoration: none;
  white-space: nowrap;
  justify-self: start;
}
.button:hover { filter: brightness(1.04); }
.button:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--on-accent); }
@media (prefers-color-scheme: dark) {
  .store, .button { border-color: var(--accent); box-shadow: 0 3px 0 #8a5c12; }
}

.faq { margin: 0 0 1em; }
.faq details {
  border-bottom: 1.5px solid var(--line);
}
.faq details:first-of-type { border-top: 1.5px solid var(--line); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 40px 16px 0;
  position: relative;
  font-weight: 680;
  font-size: 1.08rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--ink-soft);
  border-bottom: 2px solid var(--ink-soft);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.15s ease;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq .answer { padding: 0 0 12px; }
.faq .answer p:last-child, .faq .answer ul:last-child { margin-bottom: 0.8em; }
@media (prefers-reduced-motion: reduce) {
  .faq summary::after { transition: none; }
}

.notfound { text-align: center; }
.notfound img { width: 220px; margin: 0 auto 10px; }

/* ---- footer ---------------------------------------------------------- */

.foot {
  border-top: 1.5px solid var(--line);
  padding-block: 36px 44px;
  font-size: 0.97rem;
}
.foot__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px 40px;
}
.foot__brand p { margin: 6px 0 0; color: var(--ink-soft); }
.foot__brand .brand { font-size: 1.3rem; }
.foot__brand .brand img { width: 32px; height: 32px; border-radius: 8px; }
.foot ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
}
.foot a { font-weight: 560; }
.foot__note {
  flex-basis: 100%;
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.notfound .lede { text-align: center; margin-inline: auto; }
