/* Colours and corner radii are the app's own (Theme.swift). Text colours are
   darker than the app's buttons so they stay readable. */
:root {
  --cream: #fff5db;
  --sand: #ffe9c7;
  --ink: #4d3361;
  --soft: #6b5580;
  --purple: #6a3fd0;
  --green: #4dcc66;
  --yellow: #ffc229;
  --card: 22px;
  --panel: 30px;
  --sheet: 40px;
  --gutter: clamp(16px, 4vw, 40px);
  --font: ui-rounded, system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Armenian", sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 500 18px/1.6 var(--font);
  overflow-wrap: break-word;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--purple); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--purple); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { margin: 0; line-height: 1.2; font-weight: 900; text-wrap: balance; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 2; padding: 8px 16px; background: #fff; }

/* Top bar */
.top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; padding-block: 14px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 900; font-size: 22px; color: var(--purple); text-decoration: none; }
.brand img { width: 44px; height: 44px; border-radius: 12px; }
.langs { display: flex; flex-wrap: wrap; gap: 4px; margin-left: auto; }
.langs a { padding: 8px 12px; border-radius: 18px; font-size: 16px; font-weight: 700; color: var(--ink); text-decoration: none; }
.langs a:hover { background: var(--sand); }
.langs a[aria-current] { background: #fff; color: var(--purple); }

@media (max-width: 480px) {
  .top { column-gap: 8px; }
  .langs { gap: 0; }
  .langs a { padding: 10px 7px; font-size: 14px; }
}

/* Home: the picture, and a sheet sliding over it as in the app */
.hero img { width: 100%; }
.sheet {
  position: relative;
  /* Overlaps by its own radius, so the picture fills both corners. */
  --r: clamp(22px, 4vw, var(--sheet));
  margin-top: calc(-1 * var(--r) - 3px);
  border-top: 3px solid #fff;
  border-radius: var(--r) var(--r) 0 0;
  background: var(--cream);
}
.intro { padding-top: clamp(32px, 5vw, 56px); text-align: center; }
.intro h1 { font-size: clamp(32px, 5.4vw, 56px); color: var(--purple); }
.intro .lead { max-width: 34em; margin: 16px auto 24px; font-size: clamp(18px, 2vw, 21px); }
.pill { display: inline-block; padding: 14px 28px; border-radius: 999px; background: var(--yellow); color: var(--ink); font-size: 19px; font-weight: 800; text-decoration: none; }
a.pill { background: var(--green); color: #12351b; }
.facts { margin: 16px 0 0; color: var(--soft); }
.shot { width: 100%; border: 6px solid #fff; border-radius: var(--panel); box-shadow: 0 4px 16px rgb(77 51 97 / .12); }
.main-shot { max-width: 920px; margin: clamp(32px, 5vw, 56px) auto 0; }

section { padding-top: clamp(56px, 8vw, 96px); }
section > h2 { font-size: clamp(27px, 3.6vw, 40px); color: var(--purple); text-align: center; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); gap: 20px; margin-top: 32px; }
.card { overflow: hidden; border-bottom: 6px solid var(--strip); border-radius: var(--card); background: #fff; box-shadow: 0 4px 8px rgb(77 51 97 / .12); }
.card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.card div { padding: 18px 20px 20px; }
.card h3 { font-size: 22px; }
.card p { margin: 6px 0 0; line-height: 1.5; }
.card:nth-child(6n+1) { --strip: #ff669e; }
.card:nth-child(6n+2) { --strip: #4dcc66; }
.card:nth-child(6n+3) { --strip: #429efa; }
.card:nth-child(6n+4) { --strip: #9e6bf5; }
.card:nth-child(6n+5) { --strip: #ffc229; }
.card:nth-child(6n) { --strip: #ff5c57; }
.pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); gap: 20px; }

.safe { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 28px 48px; margin: 32px 0 0; padding: clamp(24px, 4vw, 44px); border-radius: var(--panel); background: #fff; }
.safe h3 { font-size: 21px; }
.safe p { margin: 4px 0 0; }
.after { margin: 28px auto 0; max-width: 40em; text-align: center; }

/* Documents */
.doc { max-width: 800px; padding-block: 16px 0; }
.paper { padding: clamp(24px, 5vw, 56px); border-radius: var(--panel); background: #fff; }
.doc h1 { font-size: clamp(29px, 5vw, 44px); color: var(--purple); hyphens: auto; }
.doc h2 { margin-top: 36px; font-size: 23px; }
.doc p, .doc ul { margin: 12px 0 0; }
.doc ul { padding-left: 1.3em; }
.doc li { margin-top: 6px; }
.doc .date { color: var(--soft); font-size: 16px; }
.todo { padding: 1px 8px; border-radius: 6px; background: var(--yellow); color: var(--ink); font-weight: 700; }

footer { margin-top: clamp(56px, 8vw, 96px); padding-block: 28px 40px; background: var(--sand); font-size: 16px; }
footer nav { display: flex; flex-wrap: wrap; gap: 4px 24px; }
footer nav a { padding-block: 8px; font-weight: 700; color: var(--ink); }
footer p { margin: 12px 0 0; color: #5d4870; }
