/* Oasia — oasia.app
   Colours follow the app (ios/Oasia/Core/Design/Theme.swift): warm paper, brown ink, gold.
   No red, no pure white, no pure black. */

@font-face {
  font-family: "Nunito";
  src: url("assets/nunito-bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("assets/nunito-extrabold.woff") format("woff");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #FAEDDD;
  --paper-light: #FFF8EE;
  --paper-deep: #F5E0C6;
  --selected: #FEDFAF;
  --ink: #512F0F;
  --ink-soft: #653A1F;
  --accent: #FAA130;
  --gold-top: #FFD66B;
  --gold-bottom: #F9B233;
  --line: rgba(101, 58, 31, 0.16);
  --shadow: 0 10px 30px rgba(90, 50, 20, 0.14);
  --shadow-soft: 0 4px 14px rgba(90, 50, 20, 0.10);
  --radius: 22px;
  --display: "Nunito", ui-rounded, "SF Pro Rounded", "Hiragino Maru Gothic ProN", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --body: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1080px;
  --prose: 720px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

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

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 5.4vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.25rem); }
h3 { font-size: 1.2rem; line-height: 1.3; }
p { margin: 0 0 1em; }

a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
a:hover { text-decoration-color: var(--ink); }

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  border-radius: 8px;
}

.skip {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 10;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 999px;
  font-family: var(--display);
  font-weight: 700;
  text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 22px;
}

/* ---------- Header ---------- */

.site-header { padding: 18px 0; }
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.wordmark {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.site-nav { display: flex; gap: 4px; flex-wrap: wrap; }
.site-nav a {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  padding: 0 14px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  color: var(--ink-soft);
}
.site-nav a:hover { background: var(--paper-deep); color: var(--ink); }
.site-nav a[aria-current="page"] { background: var(--selected); color: var(--ink); }

/* ---------- Home: hero ---------- */

.hero { padding: 20px 0 64px; }
.hero .wrap {
  display: grid;
  gap: 36px;
  align-items: center;
}
.hero-copy .lede {
  font-size: clamp(1.1rem, 2.2vw, 1.3rem);
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 18px 0 26px;
  max-width: 34em;
}
.soon {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  background: linear-gradient(var(--gold-top), var(--gold-bottom));
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255, 248, 238, 0.6);
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--ink);
}
.soon-note {
  margin: 14px 0 0;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.stage {
  position: relative;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  aspect-ratio: 760 / 1011;
  border-radius: 36px;
  overflow: hidden;
  background: var(--paper-deep);
  box-shadow: var(--shadow);
  border: 6px solid var(--paper-light);
}
.stage .scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.stage .bunny {
  position: absolute;
  left: 50%;
  bottom: 9%;
  width: 56%;
  transform: translateX(-50%);
  filter: drop-shadow(8px 10px 10px rgba(90, 50, 20, 0.28));
}
.bubble {
  position: absolute;
  left: 50%;
  top: 22%;
  transform: translateX(-50%);
  white-space: nowrap;
  background: rgba(250, 237, 221, 0.94);
  color: var(--ink);
  font-family: var(--display);
  font-weight: 700;
  font-size: 1rem;
  padding: 8px 18px;
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
  margin: 0;
}
.bubble::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -7px;
  width: 14px;
  height: 14px;
  background: inherit;
  transform: translateX(-50%) rotate(45deg);
  border-radius: 3px;
}

/* ---------- Home: sections ---------- */

.section { padding: 64px 0; }
.section.tint { background: var(--paper-light); }
.section-head { max-width: 40em; margin-bottom: 34px; }
.section-head p {
  margin: 14px 0 0;
  color: var(--ink-soft);
  font-size: 1.1rem;
}
.eyebrow {
  font-family: var(--display);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 10px;
}

.arc {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.arc li {
  background: linear-gradient(var(--paper-light), var(--selected));
  border-radius: var(--radius);
  padding: 18px 12px 16px;
  text-align: center;
  box-shadow: var(--shadow-soft);
}
.arc img {
  height: 150px;
  width: auto;
  margin: 0 auto 12px;
}
.arc h3 { font-size: 1.05rem; }
.arc p {
  margin: 4px 0 0;
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--ink-soft);
}

.cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.cards li {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
}
.section:not(.tint) .cards li { background: var(--paper-light); }
.cards h3 { display: flex; align-items: center; gap: 10px; }
.cards h3::before {
  content: "";
  flex: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(255, 203, 106, 0.45);
}
.cards p {
  margin: 8px 0 0;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.55;
}

.scenes {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.scenes li { margin: 0; }
.scenes img {
  width: 100%;
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
  border: 4px solid var(--paper-light);
}
.scenes span {
  display: block;
  margin-top: 8px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink-soft);
  text-align: center;
}
.fineprint { font-size: 0.95rem; color: var(--ink-soft); margin-top: 22px; }

.promise {
  display: grid;
  gap: 14px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.promise li {
  padding: 18px 22px;
  border-radius: var(--radius);
  background: var(--selected);
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1.4;
}
.promise li span {
  display: block;
  font-family: var(--body);
  font-weight: 400;
  font-size: 1rem;
  color: var(--ink-soft);
  margin-top: 4px;
}

.notice {
  background: var(--paper-light);
  border: 2px solid var(--gold-bottom);
  border-radius: var(--radius);
  padding: 24px 24px 10px;
  max-width: var(--prose);
}
.notice h2, .notice h3 { margin-bottom: 12px; }
.notice h2 { font-size: 1.4rem; }

/* ---------- Legal / support pages ---------- */

.page { padding: 26px 0 80px; }
.prose { max-width: var(--prose); }
.prose h1 { font-size: clamp(2rem, 5vw, 2.8rem); }
.prose .updated {
  color: var(--ink-soft);
  font-size: 0.98rem;
  margin: 12px 0 28px;
}
.prose h2 {
  font-size: 1.45rem;
  margin: 46px 0 14px;
  padding-top: 6px;
  scroll-margin-top: 16px;
}
.prose h3 {
  font-size: 1.1rem;
  margin: 28px 0 8px;
}
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: 0.4em; }
.prose li::marker { color: var(--accent); }
.prose .notice { margin: 0 0 8px; }
.prose .notice h2 { margin-top: 0; padding-top: 0; font-size: 1.4rem; }
.prose .notice p:last-child { margin-bottom: 14px; }
.prose strong { font-weight: 700; }

.toc {
  background: var(--paper-light);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin: 28px 0 0;
}
.toc h2 {
  font-size: 1rem;
  margin: 0 0 8px;
  padding: 0;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.toc ol { margin: 0; columns: 1; }
.toc li { margin-bottom: 0.25em; }

.table-scroll {
  overflow-x: auto;
  margin: 0 0 1.2em;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper-light);
}
table {
  border-collapse: collapse;
  width: 100%;
  min-width: 520px;
  font-size: 0.98rem;
  line-height: 1.5;
}
th, td {
  text-align: left;
  vertical-align: top;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}
th {
  font-family: var(--display);
  font-weight: 800;
  background: var(--selected);
}
tr:last-child td { border-bottom: 0; }

.steps { counter-reset: step; list-style: none; padding: 0 !important; }
.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 44px;
  margin-bottom: 12px;
  min-height: 30px;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -1px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(var(--gold-top), var(--gold-bottom));
  font-family: var(--display);
  font-weight: 800;
  font-size: 0.95rem;
  display: grid;
  place-items: center;
}

.mail {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  background: linear-gradient(var(--gold-top), var(--gold-bottom));
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255, 248, 238, 0.6);
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.1rem;
  text-decoration: none;
}
.mail:hover { filter: brightness(1.03); }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 30px 0 44px;
  color: var(--ink-soft);
  font-size: 0.98rem;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  align-items: center;
  justify-content: space-between;
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 2px 6px; margin-left: -10px; }
.site-footer nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  font-family: var(--display);
  font-weight: 700;
}
.site-footer p { margin: 0; }

/* ---------- Wider screens ---------- */

@media (min-width: 620px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .scenes { grid-template-columns: repeat(3, 1fr); }
  .arc img { height: 180px; }
  .toc ol { columns: 2; column-gap: 36px; }
}

@media (min-width: 900px) {
  body { font-size: 1.125rem; }
  .hero { padding: 36px 0 88px; }
  .hero .wrap { grid-template-columns: 1.1fr 0.9fr; gap: 56px; }
  .section { padding: 88px 0; }
  .arc { grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .cards { grid-template-columns: repeat(4, 1fr); }
  .scenes { grid-template-columns: repeat(5, 1fr); }
  .promise { grid-template-columns: repeat(3, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

@media print {
  .site-header nav, .skip, .toc { display: none; }
  body { background: none; }
}
