/* Vink, vinkapp.se
   One stylesheet for every page. No web fonts, no external resources. */

:root {
  color-scheme: light dark;

  --linen:    #FAF6EE;
  --surface:  #FEFCF8;
  --warm:     #F6E3C6;
  --hairline: #EFE5D3;
  --line:     #E2D4BC;   /* slightly stronger hairline for controls */
  --slot:     #D3BF9D;   /* dashed placeholder outline */
  --ink:      #2B2621;
  --ink-2:    #4A4239;
  --muted:    #6F6355;
  --amber:    #A85C15;
  --amber-hi: #8A4A0E;   /* link hover */
  --sage:     #6E8B62;
  --sage-ink: #4A5A44;
  --sage-tint:#EEF2E7;
  --sage-line:#D8E1CD;
  --on-accent:#FEFCF8;
  --glow:     rgba(246, 227, 198, 0.8);
  --shadow:   0 1px 2px rgba(90, 64, 30, 0.06), 0 18px 40px -18px rgba(140, 92, 36, 0.32);

  --font-round: ui-rounded, "SF Pro Rounded", system-ui, sans-serif;
  --font-body:  system-ui, sans-serif;

  --radius:  22px;
  --gutter:  clamp(1.25rem, 5vw, 2.5rem);
  --wide:    72rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --linen:    #1C1814;
    --surface:  #26201B;
    --warm:     #3D2E1E;
    --hairline: #352C24;
    --line:     #4A3F34;
    --slot:     #64543F;
    --ink:      #F4EDE2;
    --ink-2:    #DCD1C2;
    --muted:    #B5A794;
    --amber:    #E8A060;
    --amber-hi: #F4BC86;
    --sage:     #9DB78F;
    --sage-ink: #C3D4B9;
    --sage-tint:#222920;
    --sage-line:#35402F;
    --on-accent:#1C1814;
    --glow:     rgba(168, 92, 21, 0.2);
    --shadow:   0 1px 2px rgba(0, 0, 0, 0.3), 0 18px 40px -18px rgba(0, 0, 0, 0.7);
  }
}

/* ---------- Base ---------- */

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

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background-color: var(--linen);
  background-image: radial-gradient(ellipse 110% 55% at 50% -12%, var(--glow), transparent 70%);
  background-repeat: no-repeat;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

@media (min-width: 40em) {
  body { font-size: 1.1875rem; }
}

h1, h2, h3 {
  font-family: var(--font-round);
  font-weight: 700;
  color: var(--ink);
  text-wrap: balance;
}

p, li { text-wrap: pretty; }

img { max-width: 100%; }

a {
  color: var(--amber);
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--amber-hi);
  text-decoration-thickness: 2px;
}

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

::selection {
  background: var(--warm);
  color: var(--ink);
}

.skip {
  position: absolute;
  left: 1rem;
  top: -10rem;
  z-index: 10;
  padding: 0.75rem 1.125rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  font-weight: 600;
}

.skip:focus { top: 1rem; }

/* Small letter-spaced label, as in the app's section headers */
.kicker {
  margin: 0 0 0.5rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--muted);
}

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

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  max-width: var(--wide);
  margin: 0 auto;
  padding: 1rem var(--gutter);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  min-height: 44px;
  font-family: var(--font-round);
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}

.brand:hover { color: var(--ink); }

.brand img {
  display: block;
  width: 36px;
  height: 36px;
  border-radius: 22.37%;
  box-shadow: 0 0 0 1px var(--line);
}

.lang {
  display: flex;
  margin-left: auto;
  padding: 3px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.9375rem;
  line-height: 1;
}

.lang a,
.lang span {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 0 0.9rem;
  border-radius: 999px;
}

.lang a {
  color: var(--ink-2);
  text-decoration: none;
}

.lang a:hover {
  color: var(--amber);
  text-decoration: underline;
}

.lang [aria-current] {
  background: var(--warm);
  color: var(--ink);
  font-weight: 600;
}

/* ---------- Main ---------- */

main {
  flex: 1;
  width: 100%;
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Home ---------- */

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(2rem, 7vw, 4.5rem) 0 clamp(3.5rem, 9vw, 6rem);
  text-align: center;
}

.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  left: 50%;
  width: min(42rem, 100%);
  aspect-ratio: 1;
  transform: translate(-50%, -22%);
  background: radial-gradient(circle, var(--glow) 0%, transparent 62%);
  pointer-events: none;
}

.hero__icon {
  display: block;
  width: clamp(112px, 30vw, 156px);
  height: auto;
  border-radius: 22.37%;
  box-shadow: 0 0 0 1px var(--line), var(--shadow);
}

.hero h1 {
  margin: 1.75rem 0 0;
  font-size: clamp(3.5rem, 2.6rem + 5vw, 5.5rem);
  line-height: 1;
  letter-spacing: -0.025em;
}

.tagline {
  max-width: 19em;
  margin: 1rem 0 0;
  font-size: clamp(1.25rem, 1.05rem + 1vw, 1.625rem);
  line-height: 1.4;
  color: var(--muted);
  text-wrap: balance;
}

.store {
  max-width: 100%;
  margin-top: 2.25rem;
}

/* Until the App Store badge exists: a quiet line, not an empty box */
.store-soon {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--sage-ink);
}

/* The real badge, once it replaces the slot */
.store-badge { display: inline-block; border-radius: 10px; }
.store-badge img { display: block; height: 3.5rem; width: auto; }

.how {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 3rem;
  max-width: 60rem;
  margin: 0 auto;
  padding-bottom: clamp(3.5rem, 9vw, 6rem);
}

.how h2 {
  margin: 0;
  font-size: clamp(1.75rem, 1.4rem + 1.5vw, 2.25rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
}

.steps {
  display: grid;
  gap: 0.875rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.step {
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  padding: 1.25rem 1.375rem 1.375rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
}

.step h3 {
  margin: 0.35rem 0 0.25rem;
  font-size: 1.25rem;
  line-height: 1.3;
}

.step p {
  margin: 0;
  color: var(--ink-2);
}

.step__mark {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--amber);
  color: var(--on-accent);
  font-family: var(--font-round);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
}

.step--fine {
  background: var(--sage-tint);
  border-color: var(--sage-line);
}

.step--fine .step__mark {
  background: var(--sage);
  color: var(--on-accent);
}

.step--told .step__mark {
  background: var(--warm);
  color: var(--ink);
  box-shadow: inset 0 0 0 2px var(--slot);
}

.shot {
  width: min(100%, 17.5rem);
  margin: 0 auto;
}

.shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 2.4rem;
  box-shadow: 0 0 0 1px var(--line), var(--shadow);
}

@media (min-width: 52em) {
  .how {
    grid-template-columns: minmax(0, 1fr) 18rem;
    align-items: center;
    gap: 4.5rem;
  }
  .shot { width: 100%; }
}

/* ---------- Text pages (privacy, support) ---------- */

.doc {
  max-width: 34em;   /* about 65 to 70 characters per line */
  margin: 0 auto;
  padding: clamp(1.75rem, 6vw, 4rem) 0 clamp(3.5rem, 9vw, 6rem);
}

.doc h1 {
  margin: 0;
  font-size: clamp(2.25rem, 1.8rem + 2.4vw, 3.25rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.doc .doc__updated {
  margin: 0.75rem 0 0;
  font-size: 1rem;
  color: var(--muted);
}

.doc .lead {
  margin: 1.5rem 0 0;
  font-size: 1.2em;
  line-height: 1.5;
  color: var(--ink-2);
}

.doc p,
.doc ul,
.doc ol { margin: 0 0 1em; }

.doc ul,
.doc ol { padding-left: 1.4em; }

.doc li {
  margin: 0.45em 0;
  padding-left: 0.2em;
}

.doc li::marker { color: var(--amber); }

.doc strong {
  font-weight: 650;
  color: var(--ink);
}

.doc__section {
  margin-top: 2.5rem;
  padding-top: 2.25rem;
  border-top: 1px solid var(--hairline);
  scroll-margin-top: 1rem;
}

.doc__section > h2,
.faq > h2 {
  margin: 0 0 0.75rem;
  font-size: 1.5rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

@media (min-width: 40em) {
  .doc__section > h2,
  .faq > h2 { font-size: 1.625rem; }
}

.doc__section > :last-child,
.qa > :last-child { margin-bottom: 0; }

/* Contents list */
.toc {
  margin: 2.25rem 0 0;
  padding: 1.25rem 1.5rem 1.375rem;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
}

.toc ol {
  margin: 0;
  padding-left: 1.6em;
}

.toc li { margin: 0.15em 0; }

.toc li::marker {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.toc a {
  display: inline-block;
  padding: 0.2em 0;
}

/* Support: contact card */
.contact {
  margin: 2.25rem 0 0;
  padding: 1.5rem 1.5rem 1.625rem;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.contact__email {
  display: inline-block;
  margin: 0.1rem 0 0.75rem;
  font-family: var(--font-round);
  font-size: clamp(1.375rem, 1.1rem + 1.6vw, 2rem);
  font-weight: 700;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.doc .contact p:last-child {
  margin: 0;
  color: var(--ink-2);
}

/* Support: questions and answers */
.faq { margin-top: 3rem; }

.qa {
  padding: 1.75rem 0;
  border-top: 1px solid var(--hairline);
  scroll-margin-top: 1rem;
}

.qa:last-child { padding-bottom: 0; }

.qa h3 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  line-height: 1.3;
}

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

.site-footer {
  border-top: 1px solid var(--hairline);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  max-width: var(--wide);
  margin: 0 auto;
  padding: 1.5rem var(--gutter) 2.5rem;
}

.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
}

.site-footer a[aria-current] {
  color: var(--ink);
  text-decoration: none;
}

.site-footer p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--muted);
}

/* ---------- Print ---------- */

@media print {
  body { background: none; color: #000; font-size: 11pt; }
  .skip, .lang, .toc, .site-footer nav { display: none; }
  .doc { max-width: none; padding: 0; }
  a { color: inherit; }
  .contact { box-shadow: none; }
}
