/* Vefna site. Colours and type follow the app's default "Sage" theme, light
   and dark. No web fonts or third-party requests by design: the privacy
   policy says this site loads nothing from other services. */
:root {
  --bg: #f6f1e7;
  --surface: #fbf8f1;
  --text: #2b2a26;
  --text-2: #55524a;
  --muted: #6b665c;
  --border: #cfc6b2;
  --divider: #e4dccb;
  --accent: #4f7357;
  --on-accent: #ffffff;
  --tint: #dde8d8;
  --chip: #f1ecdf;
  --new: #f0ddb8;
  --notice-bg: #f3e8c8;
  --notice-text: #6b5418;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1e211d;
    --surface: #282c26;
    --text: #ece7da;
    --text-2: #c9c4b5;
    --muted: #a8a495;
    --border: #4a4f46;
    --divider: #3a3f37;
    --accent: #9cbb9e;
    --on-accent: #16201a;
    --tint: #33402f;
    --chip: #32372f;
    --new: #4b3b1f;
    --notice-bg: #3a3220;
    --notice-text: #e6ce8f;
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.65 var(--sans);
}
.page { max-width: 42rem; margin: 0 auto; padding: 1.25rem 1.25rem 3rem; }

/* Header */
.site-header {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.75rem 1.5rem; padding-bottom: 1rem; margin-bottom: 2rem;
  border-bottom: 1px solid var(--divider);
}
.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--text); }
.brand img { width: 2.25rem; height: 2.25rem; display: block; }
.wordmark { font-size: 1.4rem; font-weight: 700; line-height: 1; }
.site-nav ul, .site-footer ul {
  list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem 1.25rem;
}
.site-nav { font-size: 0.9rem; line-height: 1.3; }
.site-nav a[aria-current="page"] { font-weight: 700; }

a { color: var(--accent); font-weight: 600; text-underline-offset: 0.16em; }
a:hover { text-decoration-thickness: 0.12em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* Text */
h1 { font-size: 2.1rem; font-weight: 700; line-height: 1.2; margin: 0 0 0.75rem; }
h2 { font-size: 1.3rem; font-weight: 700; line-height: 1.3; margin: 2.4rem 0 0.6rem; scroll-margin-top: 1rem; }
h3 { font-size: 1.08rem; font-weight: 700; line-height: 1.35; margin: 1.7rem 0 0.4rem; }
p, ul, ol { margin: 0 0 1rem; }
ul, ol { padding-left: 1.3rem; }
li { margin-bottom: 0.4rem; }
li > ul { margin-top: 0.4rem; }
strong { font-weight: 700; }

.meta { font-size: 0.9rem; line-height: 1.4; color: var(--muted); margin-bottom: 1.75rem; }
.lede { font-size: 1.2rem; line-height: 1.55; color: var(--text-2); }

/* Buttons and chips, as in the app */
.button {
  display: inline-block; background: var(--accent); color: var(--on-accent);
  font-weight: 700; text-decoration: none; padding: 0.8rem 1.4rem; border-radius: 10px;
}
.chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 1rem; }
.chips li {
  margin: 0; padding: 0.3rem 0.9rem; border-radius: 16px; background: var(--chip);
  color: var(--text-2); font-weight: 600; font-size: 0.95rem;
}

/* Cards */
.card { background: var(--surface); border: 1px solid var(--divider); border-radius: 12px; padding: 1.1rem 1.25rem; }
.steps { list-style: none; padding: 0; display: grid; gap: 0.75rem; margin: 0 0 1rem; }
.steps li { margin: 0; }
.steps strong { display: block; margin-bottom: 0.15rem; }
.steps p { margin: 0; color: var(--text-2); }

/* "In short" summary and the contents list on the policy pages */
.summary { background: var(--surface); border: 1px solid var(--divider); border-left: 4px solid var(--accent);
  border-radius: 12px; padding: 0.2rem 1.25rem 0.4rem; margin: 0 0 2rem; }
.summary h2 { margin-top: 1rem; }
.contents { background: var(--surface); border: 1px solid var(--divider); border-radius: 12px;
  padding: 1rem 1.25rem; font-size: 0.95rem; line-height: 1.5; margin-bottom: 1rem; }
.contents ol { columns: 2 14rem; column-gap: 2rem; padding-left: 1.4rem; margin: 0; }
.contents li { break-inside: avoid; margin-bottom: 0.25rem; }

/* The woven sentence on the homepage, styled like woven words in the reader */
.weave-demo { font-size: 1.45rem; line-height: 2.3; margin: 0; }
.woven {
  position: relative; font: inherit; color: var(--text); background: var(--tint); border: 0;
  padding: 0.05em 0.15em; margin: 0; cursor: pointer; border-radius: 3px;
  text-decoration: underline; text-underline-offset: 0.18em;
}
.woven.is-new { background: var(--new); }
.gloss {
  position: absolute; left: 50%; top: 100%; transform: translate(-50%, -0.1em);
  font: 600 0.9rem/1 var(--sans); color: var(--text); white-space: nowrap; z-index: 1;
  background: var(--surface); border: 1px solid var(--border); border-radius: 6px; padding: 0.3rem 0.5rem;
  opacity: 0; pointer-events: none; transition: opacity 120ms ease-out;
}
.woven:hover .gloss, .woven:focus-visible .gloss, .woven[aria-pressed="true"] .gloss { opacity: 1; }
.hint { font-size: 0.9rem; line-height: 1.4; color: var(--muted); margin: 0.75rem 0 0; }

/* App screenshots */
/* Wider than the text column on large screens so the screenshots stay readable. */
.shots { list-style: none; padding: 0; margin: 0 0 1rem;
  width: min(56rem, calc(100vw - 2.5rem)); position: relative; left: 50%; transform: translateX(-50%);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); gap: 1rem; }
.shots li { margin: 0; }
.shots img {
  display: block; width: 100%; height: auto; aspect-ratio: 9 / 17; object-fit: cover; object-position: top;
  border: 1px solid var(--border); border-radius: 18px; background: var(--surface);
}
.shots figcaption { font-size: 0.85rem; line-height: 1.4; color: var(--muted); margin-top: 0.5rem; }
.shots figure { margin: 0; }

.notice { background: var(--notice-bg); color: var(--notice-text); border-radius: 8px; padding: 0.75rem 1rem; font-size: 0.95rem; }

/* Footer */
.site-footer {
  margin-top: 3.5rem; padding-top: 1rem; border-top: 1px solid var(--divider);
  font-size: 0.9rem; line-height: 1.6; color: var(--muted);
}
.site-footer ul { margin-bottom: 0.5rem; }

@media (max-width: 30rem) {
  body { font-size: 1rem; }
  h1 { font-size: 1.75rem; }
  .weave-demo { font-size: 1.25rem; }
}
@media (prefers-reduced-motion: reduce) { .gloss { transition: none; } }
