/* d60lab — editorial, paper-and-ink. No web fonts: this site makes zero third-party requests. */

:root {
  /* color */
  --paper: #f6f1e7;
  --paper-2: #efe7d7;
  --ink: #15202b;
  --ink-2: #4a5560;
  --ink-3: #7a838c;
  --rule: #d9cfbd;
  --rule-2: #e8e0cf;
  --sea: #0f4c5c;
  --sea-2: #0b3a47;
  --coral: #e4572e;
  --coral-ink: #fff6f2;
  --ok: #2f7d4f;

  /* type */
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Songti SC", "Noto Serif CJK SC", Georgia, serif;
  --sans: "Avenir Next", Avenir, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --fs-display: clamp(2.5rem, 1.6rem + 3.2vw, 4.5rem);
  --fs-h1: clamp(2rem, 1.4rem + 2vw, 3rem);
  --fs-h2: clamp(1.375rem, 1.15rem + 0.8vw, 1.75rem);
  --fs-h3: 1.125rem;
  --fs-body: 1.0625rem;
  --fs-small: 0.9rem;
  --fs-caption: 0.8rem;
  --lh: 1.65;

  /* space (8px) */
  --s-1: .5rem; --s-2: 1rem; --s-3: 1.5rem; --s-4: 2rem; --s-5: 2.5rem; --s-6: 3rem; --s-8: 4rem; --s-12: 6rem;

  /* shape + motion */
  --r-sm: 4px; --r-md: 8px; --r-lg: 14px;
  --t: 180ms ease-out;
  --measure: 42rem;
  --wide: 68rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #14181d;
    --paper-2: #1b2128;
    --ink: #ece6d8;
    --ink-2: #b7b0a2;
    --ink-3: #847e72;
    --rule: #2d3640;
    --rule-2: #232b33;
    --sea: #7fc4d3;
    --sea-2: #a8dbe6;
    --coral: #ff7a52;
    --coral-ink: #1a0d08;
    --ok: #7dd3a0;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 var(--fs-body)/var(--lh) var(--sans);
  font-feature-settings: "kern", "liga";
}
a { color: var(--sea); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color var(--t); }
a:hover { color: var(--coral); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: var(--r-sm); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.01em; line-height: 1.15; margin: 0 0 var(--s-2); }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); margin-top: var(--s-6); }
h3 { font-size: var(--fs-h3); margin-top: var(--s-4); }
p, ul, ol, table { margin: 0 0 var(--s-2); }
ul, ol { padding-left: 1.4em; }
li { margin-bottom: .35em; }
small, .small { font-size: var(--fs-small); color: var(--ink-2); }
code { font: 0.9em var(--mono); background: var(--paper-2); padding: .1em .35em; border-radius: var(--r-sm); }
hr { border: 0; border-top: 1px solid var(--rule); margin: var(--s-6) 0; }
table { width: 100%; border-collapse: collapse; font-size: var(--fs-small); }
th, td { text-align: left; vertical-align: top; padding: .6rem .5rem; border-bottom: 1px solid var(--rule-2); }
th { font-weight: 600; color: var(--ink-2); font-size: var(--fs-caption); text-transform: uppercase; letter-spacing: .06em; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* layout */
.wrap { max-width: var(--wide); margin: 0 auto; padding: 0 var(--s-3); }
.measure { max-width: var(--measure); }
.site-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-2); padding: var(--s-3) 0; border-bottom: 1px solid var(--rule); }
.brand { font-family: var(--serif); font-size: 1.35rem; font-weight: 700; color: var(--ink); text-decoration: none; letter-spacing: -.02em; }
.brand:hover { color: var(--coral); }
.brand b { color: var(--coral); }
.site-nav { display: flex; gap: var(--s-3); font-size: var(--fs-small); }
.site-nav a { color: var(--ink-2); text-decoration: none; }
.site-nav a:hover { color: var(--coral); }
main { padding: var(--s-6) 0 var(--s-12); }
.site-foot { border-top: 1px solid var(--rule); padding: var(--s-4) 0 var(--s-6); color: var(--ink-3); font-size: var(--fs-small); display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-3); }
.site-foot a { color: var(--ink-2); }

/* home */
.hero { padding: var(--s-6) 0 var(--s-8); border-bottom: 1px solid var(--rule); margin-bottom: var(--s-6); }
.hero h1 { font-size: var(--fs-display); max-width: 18ch; margin-bottom: var(--s-3); }
.hero p { font-size: 1.2rem; color: var(--ink-2); max-width: var(--measure); margin: 0; }
.hero .zh { font-family: var(--serif); font-size: 1.05rem; color: var(--ink-3); margin-top: var(--s-1); }
.section-title { display: flex; align-items: baseline; gap: var(--s-2); margin: var(--s-6) 0 var(--s-3); }
.section-title h2 { margin: 0; }
.section-title small { color: var(--ink-3); }
.apps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.app-card { background: var(--paper); padding: var(--s-3); display: grid; grid-template-columns: 3.25rem 1fr; gap: var(--s-2); align-content: start; transition: background var(--t); }
.app-card:hover { background: var(--paper-2); }
.app-card a.title { font-family: var(--serif); font-size: 1.25rem; font-weight: 600; color: var(--ink); text-decoration: none; }
.app-card a.title:hover { color: var(--coral); }
.app-card p { margin: .3rem 0 0; color: var(--ink-2); font-size: var(--fs-small); }
.app-card .alt { color: var(--ink-3); font-family: var(--serif); }
.tile { width: 3.25rem; height: 3.25rem; border-radius: var(--r-lg); display: grid; place-items: center; font: 700 1.5rem/1 var(--serif); color: #fff; background: hsl(var(--hue) 55% 42%); box-shadow: inset 0 -2px 0 rgb(0 0 0 / .15); }
.tile.lg { width: 5.5rem; height: 5.5rem; font-size: 2.6rem; border-radius: 1.25rem; }
.badge { display: inline-block; font: 600 var(--fs-caption)/1 var(--sans); letter-spacing: .04em; text-transform: uppercase; padding: .35em .6em; border-radius: 999px; border: 1px solid var(--rule); color: var(--ink-2); margin-top: .5rem; }
.badge.live { border-color: var(--ok); color: var(--ok); }
.badge.review, .badge.testflight { border-color: var(--sea); color: var(--sea); }

/* app page */
.app-head { display: grid; grid-template-columns: auto 1fr; gap: var(--s-3); align-items: center; margin-bottom: var(--s-4); }
.app-head h1 { margin: 0 0 .25rem; }
.app-head .tag { font-size: 1.15rem; color: var(--ink-2); margin: 0; }
.app-head .alt { font-family: var(--serif); color: var(--ink-3); margin-top: .25rem; }
.cta { display: flex; flex-wrap: wrap; gap: var(--s-2); align-items: center; margin: var(--s-3) 0 var(--s-5); }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 1.25rem; border-radius: var(--r-md); font-weight: 600; text-decoration: none; border: 1px solid transparent; transition: background var(--t), color var(--t), border-color var(--t); }
.btn-primary { background: var(--sea); color: #fff; }
.btn-primary:hover { background: var(--coral); color: var(--coral-ink); }
.btn-ghost { border-color: var(--rule); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--coral); color: var(--coral); }
.btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; pointer-events: none; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: var(--s-2); margin: var(--s-4) 0; padding: var(--s-3); background: var(--paper-2); border-radius: var(--r-lg); }
.facts dt { font-size: var(--fs-caption); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); }
.facts dd { margin: .15rem 0 0; font-weight: 500; }
.features { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: var(--s-2) var(--s-4); }
.features li { padding-left: 1.4em; position: relative; }
.features li::before { content: "—"; position: absolute; left: 0; color: var(--coral); }
.two-col { display: grid; grid-template-columns: 1fr; gap: var(--s-6); }
@media (min-width: 60rem) { .two-col { grid-template-columns: 2fr 1fr; } }
aside.side { font-size: var(--fs-small); color: var(--ink-2); border-left: 3px solid var(--coral); padding-left: var(--s-2); align-self: start; }
aside.side h3 { margin-top: 0; }

/* legal pages */
.legal { max-width: var(--measure); }
.legal .meta { color: var(--ink-3); font-size: var(--fs-small); margin-bottom: var(--s-4); }
.legal .lang-switch { display: flex; gap: var(--s-2); font-size: var(--fs-small); margin-bottom: var(--s-4); }
.legal .lang-switch a { padding: .25em .6em; border: 1px solid var(--rule); border-radius: 999px; text-decoration: none; color: var(--ink-2); }
.legal .lang-switch a:hover { border-color: var(--coral); color: var(--coral); }
.legal section + section { margin-top: var(--s-8); padding-top: var(--s-6); border-top: 3px double var(--rule); }
.legal .promise { background: var(--paper-2); border-radius: var(--r-lg); padding: var(--s-3); margin: var(--s-3) 0; }
.legal .promise ul { margin: 0; }
.legal .contact { font-weight: 500; }
.faq dt { font-weight: 600; margin-top: var(--s-3); font-family: var(--serif); font-size: 1.05rem; }
.faq dd { margin: .35rem 0 0; color: var(--ink-2); }

@media (max-width: 40rem) {
  .site-head { flex-direction: column; gap: var(--s-1); }
  .app-head { grid-template-columns: 1fr; }
  .tile.lg { width: 4.5rem; height: 4.5rem; font-size: 2.1rem; }
}
