@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/newsreader-600.woff2") format("woff2");
}

:root {
  color-scheme: light dark;
  --verdigris: #2E6B5E;
  --copper: #B5602F;
  --ink: #1B1D1C;
  --paper: #F3F0E9;
  --raised: #FBF9F4;
  --rule: rgba(27, 29, 28, 0.14);
  --rule-strong: rgba(27, 29, 28, 0.28);
  --ink-2: rgba(27, 29, 28, 0.72);
  --on-accent: #FFFFFF;
  --slate: #3D5A80;
  --ochre: #A77B1F;
  --moss: #5E7A3A;
  --plum: #6B4E71;
  --lead: #55595C;
  --brick: #9A3B32;

  --serif: "Newsreader", "New York", ui-serif, "Iowan Old Style", Georgia, serif;
  --sans: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px;
  --r-chip: 6px; --r-control: 8px; --r-card: 12px; --r-panel: 16px;
  --measure: 65ch;
  --page: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --verdigris: #6DB3A2;
    --copper: #D98A55;
    --ink: #E8E4DA;
    --paper: #121413;
    --raised: #1C1F1E;
    --rule: rgba(232, 228, 218, 0.14);
    --rule-strong: rgba(232, 228, 218, 0.30);
    --ink-2: rgba(232, 228, 218, 0.72);
    --on-accent: #121413;
    --slate: #8FA9CC;
    --ochre: #D8B25E;
    --moss: #A3BE7D;
    --plum: #B59ABB;
    --lead: #A6AAAD;
    --brick: #D8796F;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--verdigris); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--verdigris); outline-offset: 3px; border-radius: 4px; }
::selection { background: color-mix(in srgb, var(--verdigris) 28%, transparent); }

.skip {
  position: absolute; left: var(--s4); top: -100px;
  background: var(--raised); color: var(--ink); padding: var(--s2) var(--s3);
  border: 0.75px solid var(--rule-strong); border-radius: var(--r-control); z-index: 10;
}
.skip:focus { top: var(--s3); }

.wrap { max-width: var(--page); margin: 0 auto; padding: 0 var(--s4); }
@media (min-width: 720px) { .wrap { padding: 0 var(--s6); } }

/* Top bar */
.bar { border-bottom: 0.75px solid var(--rule); background: var(--paper); }
.bar .wrap { display: flex; align-items: center; gap: var(--s4); min-height: 60px; flex-wrap: wrap; padding-top: var(--s2); padding-bottom: var(--s2); }
.brand { display: inline-flex; align-items: center; gap: var(--s2); color: var(--ink); text-decoration: none; font: 600 21px/1 var(--serif); margin-right: auto; }
.brand svg { width: 22px; height: 22px; }
.nav { display: flex; align-items: center; gap: var(--s1) var(--s4); flex-wrap: wrap; }
.nav a { color: var(--ink); text-decoration: none; font-size: 15px; padding: var(--s1) 0; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--verdigris); }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.3em; }
@media (max-width: 560px) {
  .nav { width: 100%; justify-content: space-between; }
  .nav .btn { display: none; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: 40px; padding: var(--s2) var(--s4);
  border-radius: 999px; border: 0.75px solid transparent;
  background: var(--verdigris); color: var(--on-accent);
  font: 600 15px/1.2 var(--sans); text-decoration: none; cursor: pointer;
}
.nav a.btn { color: var(--on-accent); padding: var(--s2) var(--s4); }
.nav a.btn:hover { color: var(--on-accent); }
.btn:hover { text-decoration: none; filter: brightness(1.06); }
.btn.quiet { background: transparent; color: var(--verdigris); border-color: var(--rule-strong); }
.btn.quiet:hover { border-color: var(--verdigris); filter: none; }
.btn svg { width: 18px; height: 18px; }
.btn[aria-disabled="true"] { background: transparent; color: var(--ink-2); border-color: var(--rule-strong); cursor: default; }
.btns { display: flex; flex-wrap: wrap; gap: var(--s3); }

/* Store badges */
.store {
  display: inline-flex; align-items: center; gap: var(--s3);
  min-height: 52px; padding: var(--s2) var(--s4) var(--s2) var(--s3);
  border-radius: var(--r-control); background: var(--ink); color: var(--paper); text-decoration: none;
  line-height: 1.15;
}
.store svg { width: 22px; height: 22px; flex: none; }
.store small { display: block; font-size: 11px; opacity: 0.8; }
.store b { display: block; font-size: 17px; font-weight: 600; }
.store:hover { text-decoration: none; filter: brightness(1.12); }
.store.soon { background: transparent; color: var(--ink); border: 0.75px solid var(--rule-strong); }
.store.soon:hover { filter: none; }

/* Type */
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.12; margin: 0; letter-spacing: -0.005em; }
h1 { font-size: clamp(36px, 6.4vw, 56px); }
h2 { font-size: clamp(26px, 3.6vw, 34px); }
h3 { font-size: 21px; line-height: 1.25; }
p { margin: 0 0 var(--s4); }
.lede { font-size: clamp(18px, 2.2vw, 20px); color: var(--ink-2); max-width: 36em; }
.reading { font: 500 12px/1.5 var(--mono); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.reading .sep { opacity: 0.6; padding: 0 0.35em; }
.muted { color: var(--ink-2); }
.prose { max-width: var(--measure); }
.prose h2 { margin: var(--s7) 0 var(--s3); font-size: 26px; }
.prose h3 { margin: var(--s6) 0 var(--s2); font-family: var(--sans); font-size: 17px; font-weight: 650; }
.prose ul { padding-left: 1.2em; margin: 0 0 var(--s4); }
.prose li { margin-bottom: var(--s2); }
.prose li::marker { color: var(--ink-2); }
code { font: 0.88em var(--mono); background: var(--raised); border: 0.75px solid var(--rule); border-radius: var(--r-chip); padding: 0.05em 0.35em; }

/* The meridian: heading, then a ruled, ticked line to the edge */
.meridian { display: flex; align-items: flex-end; gap: var(--s4); margin: 0 0 var(--s5); }
.meridian > :first-child { flex: none; max-width: 85%; }
.meridian::after {
  content: ""; flex: 1 1 auto; min-width: 48px; height: 6px; margin-bottom: 0.32em; color: var(--rule-strong);
  background:
    linear-gradient(currentColor, currentColor) left bottom / 100% 0.75px no-repeat,
    repeating-linear-gradient(to left, currentColor 0 0.75px, transparent 0.75px 30px) right bottom / 100% 5px no-repeat,
    repeating-linear-gradient(to left, currentColor 0 0.75px, transparent 0.75px 6px) right bottom / 100% 2.5px no-repeat;
}
.meridian.small { margin-bottom: var(--s4); }
.meridian.small > :first-child { font-family: var(--sans); font-size: 15px; font-weight: 600; color: var(--ink-2); }

/* Sections */
section.band { padding: var(--s7) 0; }
@media (min-width: 900px) { section.band { padding: var(--s8) 0; } }
.band + .band { border-top: 0.75px solid var(--rule); }
.cols { display: grid; gap: var(--s6); }
@media (min-width: 900px) { .cols { grid-template-columns: 5fr 7fr; align-items: start; gap: var(--s7); } }
.facts { display: grid; gap: var(--s3); margin: 0; padding: 0; list-style: none; }
@media (min-width: 640px) { .facts.two { grid-template-columns: 1fr 1fr; } }
.fact { background: var(--raised); border: 0.75px solid var(--rule); border-radius: var(--r-card); padding: var(--s4) var(--s5); }
.fact h3 { font-family: var(--sans); font-size: 17px; font-weight: 650; margin-bottom: var(--s1); display: flex; gap: var(--s2); align-items: center; }
.fact p { margin: 0; color: var(--ink-2); font-size: 16px; }
.fact svg.ico { width: 20px; height: 20px; flex: none; color: var(--verdigris); }
.fact.protect svg.ico { color: var(--copper); }
.fact.protect { border-left: 2px solid var(--copper); }

/* Hero */
.hero { padding: var(--s7) 0 var(--s6); }
@media (min-width: 900px) { .hero { padding: var(--s7) 0 var(--s6); } }
.hero-head { display: flex; align-items: center; gap: var(--s4); margin-bottom: var(--s4); }
.hero-head .needle { width: clamp(44px, 7vw, 64px); height: clamp(44px, 7vw, 64px); flex: none; }
.hero .reading { margin: 0 0 var(--s3); padding-bottom: var(--s3); border-bottom: 0.75px solid var(--rule); max-width: 36em; }
.hero .btns { margin: var(--s5) 0 var(--s3); }
.shots { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.9fr); gap: var(--s4); align-items: end; margin: var(--s6) 0 0; max-width: 820px; }
.shots figure { margin: 0; }
.shots picture, .shots img { display: block; width: 100%; height: auto; }
.shots .phone img { border-radius: 14% / 6.5%; border: 0.75px solid var(--rule-strong); }
.shots .mac img { border-radius: var(--r-card); border: 0.75px solid var(--rule-strong); }
.shots figcaption { margin-top: var(--s2); }

/* Needle motion: swings past north and settles, once */
.needle .vane { transform-origin: 50% 51.76%; transform-box: view-box; }
@media (prefers-reduced-motion: no-preference) {
  .hero .needle .vane { animation: settle 1.9s cubic-bezier(.3,.6,.3,1) both; }
}
@keyframes settle {
  0% { transform: rotate(32deg); }
  22% { transform: rotate(-21deg); }
  42% { transform: rotate(12deg); }
  60% { transform: rotate(-6deg); }
  76% { transform: rotate(2.5deg); }
  90% { transform: rotate(-0.8deg); }
  100% { transform: rotate(0deg); }
}

/* Looks strip */
.looks { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--s3); margin: var(--s5) 0 0; padding: 0; list-style: none; }
.look { border: 0.75px solid var(--rule); border-radius: var(--r-card); overflow: hidden; background: var(--raised); }
.look a { color: inherit; text-decoration: none; display: block; }
.look a:hover .look-name { color: var(--verdigris); }
.look-face { aspect-ratio: 16 / 10; padding: var(--s3); display: flex; flex-direction: column; justify-content: space-between; border-bottom: 0.75px solid var(--rule); }
.look-face .lbar { height: 10px; border-radius: 5px; width: 70%; }
.look-face .ltitle { font-size: 18px; line-height: 1; }
.look-face.light { background: #F2EFE8; color: #1B1D1C; }
.look-face.dark { background: #151716; color: #E8E4DA; }
.look-face.system { background: linear-gradient(to right, #F2EFE8 50%, #151716 50%); color: #8A8780; }
.look-face.serif .ltitle { font-family: var(--serif); font-weight: 600; }
.look-face.mono .ltitle { font-family: var(--mono); font-size: 15px; }
.look-face.rounded .ltitle { font-family: ui-rounded, "SF Pro Rounded", var(--sans); font-weight: 600; }
.look-face.standard .ltitle { font-family: var(--sans); font-weight: 600; }
.look-face.square .lbar { border-radius: 0; }
.look-meta { padding: var(--s2) var(--s3) var(--s3); }
.look-name { font-weight: 600; font-size: 15px; }

/* Tiles: flat colour, white symbol, corner 24% */
.tile { width: 44px; height: 44px; border-radius: 24%; display: grid; place-items: center; flex: none; color: #fff; background: var(--verdigris); }
.tile svg { width: 58%; height: 58%; }
.tile.k-style { background: #2E6B5E; }
.tile.k-app { background: #3D5A80; }
.tile.k-extension { background: #8A6519; }
.tile.k-mod { background: #6B4E71; }
.tile.lg { width: 72px; height: 72px; }
@media (prefers-color-scheme: dark) {
  .tile.k-style { background: #3B7F70; }
  .tile.k-app { background: #4A6890; }
  .tile.k-extension { background: #8F6B1E; }
  .tile.k-mod { background: #7A5C80; }
}

/* Marketplace */
.featured { display: grid; gap: var(--s3); grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); margin: 0 0 var(--s6); padding: 0; list-style: none; }
.card { background: var(--raised); border: 0.75px solid var(--rule); border-radius: var(--r-card); }
.card > a { display: flex; gap: var(--s3); padding: var(--s4); color: inherit; text-decoration: none; height: 100%; align-items: flex-start; }
.card > a:hover .name { color: var(--verdigris); }
.card .name { font-weight: 650; display: block; }
.card .sum { color: var(--ink-2); font-size: 15px; display: block; margin: 2px 0 var(--s1); }
.list { margin: 0; padding: 0; list-style: none; border-top: 0.75px solid var(--rule); }
.list li { border-bottom: 0.75px solid var(--rule); }
.list a { display: flex; gap: var(--s3); align-items: center; padding: var(--s3) var(--s1); color: inherit; text-decoration: none; }
.list a:hover .name { color: var(--verdigris); }
.list .body { flex: 1 1 auto; min-width: 0; }
.list .name { font-weight: 650; }
.list .by { color: var(--ink-2); font-weight: 400; font-size: 15px; }
.list .sum { display: block; color: var(--ink-2); font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list .kind { flex: none; }
@media (max-width: 520px) { .list .kind { display: none; } .list .sum { white-space: normal; } }

.tools { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; margin: 0 0 var(--s5); }
.search { flex: 1 1 260px; position: relative; }
.search svg { position: absolute; left: 12px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--ink-2); pointer-events: none; }
input[type="search"], input[type="text"], input[type="email"], input[type="url"], select, textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  background: var(--raised); border: 0.75px solid var(--rule-strong); border-radius: var(--r-control);
  padding: 10px 12px; min-height: 44px;
}
.search input { padding-left: 38px; }
textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--verdigris); outline-offset: 1px; border-color: transparent; }
.chips { display: flex; flex-wrap: wrap; gap: var(--s2); margin: 0; padding: 0; border: 0; }
.chips legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; min-height: 36px; padding: 6px 14px; border-radius: 999px; border: 0.75px solid var(--rule-strong); font-size: 15px; background: transparent; }
.chip input:checked + span { background: var(--verdigris); color: var(--on-accent); border-color: var(--verdigris); }
.chip input:focus-visible + span { outline: 2px solid var(--verdigris); outline-offset: 2px; }
.empty { padding: var(--s5) 0; color: var(--ink-2); }

.badge { display: inline-flex; align-items: center; font: 500 11px/1 var(--mono); padding: 4px 8px; border-radius: 999px; border: 0.75px solid var(--rule-strong); color: var(--ink-2); white-space: nowrap; }

.item-head { display: flex; gap: var(--s4); align-items: center; margin: var(--s6) 0 var(--s4); }
.item-head h1 { font-size: clamp(32px, 5vw, 46px); }
.panel { background: var(--raised); border: 0.75px solid var(--rule); border-radius: var(--r-card); padding: var(--s4) var(--s5); margin: 0 0 var(--s5); }
.panel p:last-child, .panel ul:last-child { margin-bottom: 0; }
.panel ul { margin: 0; padding-left: 1.2em; }
.crumbs { margin: var(--s5) 0 0; font-size: 15px; }
pre.css { font: 12.5px/1.55 var(--mono); background: var(--raised); border: 0.75px solid var(--rule); border-radius: var(--r-card); padding: var(--s4); overflow-x: auto; white-space: pre-wrap; word-break: break-word; margin: 0 0 var(--s5); }

/* Forms */
form.stack { display: grid; gap: var(--s4); max-width: 560px; }
.field { display: grid; gap: var(--s1); }
.field label, .field .label { font-weight: 600; font-size: 15px; }
.field .hint { font-size: 14px; color: var(--ink-2); }
fieldset.field { border: 0; padding: 0; margin: 0; }
fieldset.field legend { font-weight: 600; font-size: 15px; padding: 0; margin-bottom: var(--s1); }
.radio { display: flex; gap: var(--s2); align-items: flex-start; padding: var(--s1) 0; font-size: 16px; }
.radio input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--verdigris); flex: none; }
.note { font-size: 15px; color: var(--ink-2); }
.done { border-left: 2px solid var(--verdigris); padding: var(--s2) var(--s4); background: var(--raised); border-radius: 0 var(--r-control) var(--r-control) 0; }

/* FAQ */
.faq { max-width: var(--measure); }
.faq details { border-bottom: 0.75px solid var(--rule); }
.faq details:first-of-type { border-top: 0.75px solid var(--rule); }
.faq summary { cursor: pointer; padding: var(--s4) var(--s6) var(--s4) 0; font-weight: 650; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: var(--s1); top: 50%; transform: translateY(-50%); font: 400 22px/1 var(--mono); color: var(--ink-2); }
.faq details[open] summary::after { content: "\2212"; }
.faq details > div { padding: 0 0 var(--s4); color: var(--ink-2); }
.faq details > div p:last-child { margin-bottom: 0; }

/* Footer */
.foot { border-top: 0.75px solid var(--rule); padding: var(--s6) 0 var(--s7); margin-top: var(--s7); }
.foot .wrap { display: flex; flex-wrap: wrap; gap: var(--s3) var(--s5); align-items: center; }
.foot nav { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); }
.foot a { color: var(--ink); font-size: 15px; text-decoration: none; }
.foot a:hover { color: var(--verdigris); text-decoration: underline; }
.foot .reading { margin-left: auto; }
main > section.band:last-child { padding-bottom: 0; }

.page-head { padding: var(--s7) 0 var(--s5); }
.page-head h1 { margin-bottom: var(--s3); }

.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

.mt { margin-top: var(--s6); }
.mt-s { margin-top: var(--s3); }
.btns.actions { margin: var(--s5) 0; }
.acc-copper { background: #B5602F; } .acc-iron { background: #55595C; } .acc-verdigris { background: #2E6B5E; }
.acc-green { background: #5E7A3A; } .acc-purple { background: #6B4E71; } .acc-blue { background: #3D5A80; }
.acc-orange { background: #A77B1F; } .acc-red { background: #9A3B32; }
@media (min-width: 1000px) {
  .hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s7); align-items: center; }
  .hero-grid .shots { margin-top: 0; }
  .hero-grid .btns { margin-bottom: 0; }
}
.prose .meridian { margin: var(--s7) 0 var(--s4); }
.prose .meridian.small { margin: var(--s6) 0 var(--s3); }
.meridian > h2, .meridian > h3 { margin: 0; }
.page-head .meridian, .page-head + .meridian, .page-head + .meridian.small { margin-top: 0; }
.field label.radio { font-weight: 400; font-size: 16px; }
