/* Ondinha site. Warm paper, one typeface (Archivo, heavy for titles), the logo's five colours as the only colour: the
   big wave on the home page, each plug-in's colour on its page's tagline, version and marks. */
:root {
  --paper: #f4eee0;
  --paper2: #fbf7ec;
  --sand: #e3dbc6;
  --sand2: #cdc3a8;
  --ink: #17181c;
  --body: #2e2f35;
  --muted: #6c6a63;
  --blue: #65bcfb;
  --violet: #c663e7;
  --rose: #e94766;
  --orange: #fca236;
  --butter: #fcde73;
  --pink: var(--violet);
  --coral: var(--rose);
  --yellow: var(--butter);
  --cream: var(--butter);
  --band: var(--blue);
  --sans: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --gutter: clamp(18px, 4.5vw, 48px);
  --radius: 10px;
  color-scheme: light;
}
/* --band is set per plug-in (article, card); --band-ink is its text version, dark enough on paper. Declared where --band
   changes, since a custom property computes where it is declared. */
:root, article, .card { --band-ink: color-mix(in oklab, var(--band) 58%, var(--ink)); }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-gutter: stable; overflow-y: scroll; }
body {
  margin: 0; background: var(--paper); color: var(--body);
  font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased;
  min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration-color: color-mix(in srgb, var(--ink) 30%, transparent); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--band-ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
p { margin: 0; }
code { font: 400 0.9em var(--mono); color: var(--ink); }

/* titles: Archivo expanded, heavy */
h1, h2, h3 { font-family: var(--sans); color: var(--ink); margin: 0; text-wrap: balance; }
h1 { font-weight: 800; font-size: clamp(42px, 6.4vw, 78px); line-height: 0.98; letter-spacing: -0.03em; }
h2 { font-weight: 700; font-size: clamp(22px, 2.6vw, 28px); line-height: 1.15; letter-spacing: -0.02em; }
h3 { font-weight: 600; font-size: 18px; line-height: 1.3; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }
.lede { font-size: clamp(18px, 2vw, 21px); line-height: 1.5; color: var(--body); max-width: 34em; }

/* top: wordmark left, menu right */
.top { display: flex; align-items: center; justify-content: space-between; gap: 24px; max-width: 1180px; width: 100%; margin: 0 auto; padding: 22px var(--gutter); }
.home { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; letter-spacing: -0.02em; color: var(--ink); text-decoration: none; }
.home img { width: 25px; height: 22px; }
.top nav { display: flex; align-items: center; gap: 26px; }
.top nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 16px; }
.top nav a[aria-current] { box-shadow: inset 0 -2px 0 var(--ink); padding-bottom: 1px; }
.lang { position: relative; }
.lang summary { list-style: none; cursor: pointer; color: var(--muted); font-weight: 600; font-size: 13px; letter-spacing: 0.04em; transition: color .15s; }
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover, .lang[open] summary { color: var(--ink); }
.lang ul { position: absolute; right: 0; top: calc(100% + 10px); z-index: 10; margin: 0; padding: 6px; list-style: none; min-width: 170px;
  background: var(--paper2); border: 1px solid var(--sand2); border-radius: var(--radius); box-shadow: 0 18px 40px -12px rgba(40, 30, 10, .25); }
.lang li a { display: block; padding: 8px 12px; border-radius: 6px; color: var(--body); text-decoration: none; font-size: 15px; }
.lang li a:hover { background: var(--sand); color: var(--ink); }
.lang li a[aria-current] { color: var(--ink); font-weight: 600; }

/* home: the wave big on the right, the name and the waitlist on the left */
.hero-home { display: grid; grid-template-columns: 1fr; align-items: center; gap: 32px;
  padding-top: clamp(32px, 7vh, 88px); padding-bottom: clamp(48px, 9vh, 112px); }
.hero-home h1 { font-size: clamp(64px, 11vw, 144px); line-height: 0.9; letter-spacing: -0.04em; margin-left: -0.05em; }
.hero-home .lede { margin-top: 24px; max-width: 22em; }
.hero-art { width: 100%; max-width: none; border: 1px solid var(--sand2); border-radius: 12px; box-shadow: 0 30px 60px -28px rgba(40, 30, 10, .5); }

/* plug-in index */
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 0 0 10px; }
.section-head .more { font-size: 16px; }
.section-lede { max-width: 42em; color: var(--body); margin-bottom: 36px; }
.page-head { padding-top: clamp(32px, 7vh, 72px); margin-bottom: 48px; }
.page-head .lede { margin-top: 20px; }

/* cards: the screenshot, then name, tagline, platforms and version */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); gap: 44px 36px; margin: 0 0 80px; }
.card { display: flex; flex-direction: column; text-decoration: none; color: var(--body); }
.card .shot { display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; border: 1px solid var(--sand2); box-shadow: 0 20px 40px -24px rgba(40, 30, 10, .45); }
.card .shot picture { display: block; height: 100%; }
.card .shot img { height: 100%; object-fit: cover; object-position: top; }
.card-body { display: flex; flex-direction: column; gap: 6px; padding: 18px 2px 0; }
.card-name { font-weight: 700; font-size: 22px; line-height: 1.2; letter-spacing: -0.02em; color: var(--ink); }
.card:hover .card-name { text-decoration: underline; text-decoration-color: var(--band); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.card-line { font-size: 16px; color: var(--body); max-width: 30em; }
.card-meta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 16px; margin-top: 8px; font-size: 14px; color: var(--muted); }
.card-meta .status { color: var(--band-ink); font-weight: 600; }

/* plug-in page */
.plugin-hero { padding-top: clamp(24px, 5vh, 56px); display: grid; gap: 18px; }
.crumbs { font-size: 15px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.tagline { font-weight: 600; font-size: clamp(20px, 2.6vw, 27px); line-height: 1.3; color: var(--band-ink); max-width: 28em; }
.runs-on { color: var(--ink); font-weight: 500; }
.download { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; margin-top: 10px; }
.btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border-radius: 8px; background: var(--ink); color: var(--paper);
  font-weight: 600; font-size: 16px; text-decoration: none; transition: background .15s, color .15s; }
.btn:hover { background: var(--band); color: var(--ink); }
.btn-alt { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-alt:hover { background: var(--paper2); color: var(--ink); }
.btn-off { background: transparent; color: var(--muted); box-shadow: inset 0 0 0 1.5px var(--sand2); }
.dl-note { flex-basis: 100%; font-size: 14px; color: var(--muted); }
.dl-note a { color: var(--muted); }
.shot-large { margin: 48px auto 72px; padding: 0 var(--gutter); }
.shot-large img { border-radius: 12px; border: 1px solid var(--sand2); box-shadow: 0 30px 60px -28px rgba(40, 30, 10, .5); }

/* content sections: heading left, content right on wide screens */
.split { display: grid; grid-template-columns: minmax(180px, 1fr) 3fr; gap: 12px 48px; padding-top: 40px; padding-bottom: 40px; border-top: 1px solid var(--sand2); }
.split > :not(h2) { grid-column: 2; }
.split > * { min-width: 0; }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } .split > :not(h2) { grid-column: 1; } }
.prose { max-width: 40em; }
.aside { color: var(--muted); font-size: 15px; margin-top: 14px; }
.uses { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 28px 36px; }
.use h3 { margin-bottom: 6px; }
.features { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.features li { padding-left: 24px; position: relative; max-width: 40em; }
.features li::before { content: ''; position: absolute; left: 0; top: .72em; width: 12px; height: 4px; border-radius: 2px; background: var(--band); }
.table-scroll { overflow-x: auto; }
.controls { width: 100%; border-collapse: collapse; font-size: 15px; }
.controls th, .controls td { text-align: left; padding: 11px 16px 11px 0; border-bottom: 1px solid var(--sand); vertical-align: top; }
.controls thead th { color: var(--muted); font-weight: 500; font-size: 13px; }
.controls tbody th { color: var(--ink); font-weight: 600; white-space: nowrap; }
.controls .num { font-variant-numeric: tabular-nums; color: var(--ink); white-space: nowrap; }
@media (max-width: 600px) {
  .controls thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .controls tr { display: grid; grid-template-columns: auto 1fr; gap: 2px 14px; padding: 12px 0; border-bottom: 1px solid var(--sand); }
  .controls th, .controls td { display: block; padding: 0; border: 0; }
  .controls .num { white-space: normal; align-self: baseline; }
  .controls td:last-child { grid-column: 1 / -1; }
}
.specs { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 18px 32px; }
.specs dt { color: var(--muted); font-size: 14px; }
.specs dd { margin: 2px 0 0; color: var(--ink); }
.installs h3 { margin: 28px 0 10px; }
.installs h3:first-child { margin-top: 0; }
.installs > *, .steps > li { min-width: 0; }
.steps { margin: 0; padding-left: 1.4em; display: grid; gap: 12px; max-width: 44em; }
.steps li::marker { color: var(--band-ink); font-weight: 700; }
.steps code { overflow-wrap: anywhere; }
pre { margin: 10px 0 0; padding: 14px 16px; background: var(--ink); color: var(--paper); border-radius: 8px; overflow-x: auto; }
pre code { color: inherit; font-size: 13px; line-height: 1.6; white-space: pre; }
.changelog { display: grid; gap: 24px; max-width: 44em; }
.release h3 { display: flex; align-items: baseline; gap: 12px; margin-bottom: 6px; }
.release h3 a { text-decoration: none; }
.release time { font-weight: 400; font-size: 14px; color: var(--muted); }
.changes p + p, .changes ul { margin-top: 6px; }
.changes ul { margin-bottom: 0; padding-left: 1.2em; }
.changes li::marker { color: var(--band-ink); }
.faq { display: grid; max-width: 44em; }
.faq details { border-bottom: 1px solid var(--sand); }
.faq summary { cursor: pointer; padding: 14px 0; color: var(--ink); font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--muted); font-weight: 400; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 16px; }
article .cards { margin-top: 20px; }

/* waitlist on the home page: one email field with the button inside, then "or" and Google / Apple */
.waitlist { display: flex; flex-direction: column; align-items: center; gap: 12px; margin: 40px auto 0; width: min(100%, 30em); text-align: center; }
.waitlist[hidden] { display: none; }
.waitlist h2 { font-size: clamp(23px, 2.6vw, 30px); font-weight: 700; letter-spacing: 0; }
.waitlist > p { color: var(--muted); font-size: 14px; }
.wl-email { display: flex; align-items: center; width: 100%; padding: 4px 4px 4px 0; border: 1.5px solid var(--ink); border-radius: 10px; background: var(--paper2); }
.wl-email:focus-within { box-shadow: 0 0 0 3px color-mix(in srgb, var(--ink) 12%, transparent); }
.wl-email[hidden] { display: none; }
.wl-email input { flex: 1; min-width: 0; height: 42px; padding: 0 16px; border: 0; background: transparent; color: var(--ink); font: 400 16px var(--sans); }
.wl-email input::placeholder { color: var(--muted); }
.wl-email input:focus { outline: none; }
.wl-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px; border: 0; border-radius: 7px;
  background: var(--ink); color: var(--paper); font: 600 15px var(--sans); cursor: pointer; transition: background .15s, color .15s; }
.wl-btn[hidden] { display: none; }
.wl-btn:hover { background: var(--band); color: var(--ink); }
.wl-btn:disabled { opacity: .6; cursor: default; }
.wl-alt { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px; }
.wl-or { color: var(--muted); font-size: 14px; }
.wl-or[hidden], .wl-buttons[hidden] { display: none; }
.wl-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.wl-google, .wl-apple { height: 38px; padding: 0 14px; background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--sand2); font-weight: 500; }
.wl-google:hover, .wl-apple:hover { background: var(--paper2); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.wl-btn svg { width: 16px; height: 16px; flex: none; }
.wl-apple svg { width: 14px; margin-top: -2px; }
.waitlist .wl-status { color: var(--rose); }
.waitlist .wl-status:empty { display: none; }
.waitlist .wl-status.ok { color: var(--ink); }

/* footer: copyright left, mail and social links right */
.bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 12px 22px; max-width: 1180px; width: 100%; margin: 48px auto 0; padding: 24px var(--gutter) 36px; border-top: 1px solid var(--sand2); }
.bottom .copy { margin: 0 auto 0 0; color: var(--muted); font-size: 14px; }
.bottom nav { display: flex; align-items: center; gap: 18px; }
.bottom nav a { color: var(--muted); text-decoration: none; font-size: 15px; transition: color .15s; }
.bottom nav a:hover { color: var(--ink); }
.bottom nav .mail { margin-right: 6px; }
.bottom .icon { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; }
.bottom .icon svg { width: 20px; height: 20px; display: block; }
.bottom .icon svg[viewBox="0 0 24 24"] { width: 19px; height: 19px; }
.bottom .icon svg.yt { width: 23px; height: 16.1px; }

/* cookie banner */
.consent { position: fixed; z-index: 50; left: 16px; right: 16px; bottom: 16px; max-width: 560px; margin: 0 auto; display: flex; align-items: center; gap: 16px 20px;
  flex-wrap: wrap; padding: 16px 18px; background: var(--paper2); border: 1.5px solid var(--ink); border-radius: var(--radius); box-shadow: 0 20px 50px -20px rgba(40, 30, 10, .4); }
.consent[hidden] { display: none; }
.consent p { flex: 1 1 260px; margin: 0; font-size: 14px; line-height: 1.5; color: var(--body); }
.consent div { display: flex; gap: 8px; margin-left: auto; }
.consent-btn { height: 38px; padding: 0 18px; border: 0; border-radius: 6px; background: var(--ink); color: var(--paper); font: 600 14px var(--sans); cursor: pointer; }
.consent-btn:hover { background: var(--band); color: var(--ink); }
.consent-no { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--sand2); }
.consent-no:hover { background: var(--sand); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
