/* ==========================================================================
   Nenrin 年輪 — site styles
   Pure CSS. No frameworks, no external requests, no web fonts.
   ========================================================================== */

/* --- tokens ------------------------------------------------------------- */

:root {
  /* hex first as a fallback for engines without oklch(); oklch wins where supported */
  --paper: #faf6ef;
  --paper: oklch(0.978 0.010 85);
  --panel: #f4f0e8;
  --panel: oklch(0.963 0.011 85);
  --card: #f8f4ed;
  --card: oklch(0.972 0.010 85);
  --border: #e4ded3;
  --border: oklch(0.90 0.012 80);
  --accent: #b4432b;
  --ink-strong: #2b2620;
  --ink-strong: oklch(0.24 0.014 60);
  --ink: #332e27;
  --ink: oklch(0.28 0.014 60);
  --sub: #6b6459;
  --sub: oklch(0.52 0.014 66);
  --faint: #a9a197;
  --faint: oklch(0.72 0.012 78);

  /* Chinese default is PingFang (Apple-style professional voice); diary
     content inside the demo figures stays serif to match the app itself. */
  --serif: "PingFang SC", -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Noto Sans SC", sans-serif;
  --diary: "Songti SC", "Noto Serif SC", "Hiragino Mincho ProN", "Yu Mincho", Georgia, serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;

  --shadow-soft: 0 1px 2px rgba(58, 44, 30, 0.04), 0 12px 28px -12px rgba(58, 44, 30, 0.16);
  --shadow-lift: 0 2px 4px rgba(58, 44, 30, 0.05), 0 32px 64px -28px rgba(58, 44, 30, 0.28);

  --page: 1100px;
  --prose: 640px;
  --gut: clamp(20px, 5vw, 48px);
  --band: clamp(72px, 11vw, 136px);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* Latin-leading serif on the English page; mincho-leading on the Japanese page. */
html[lang="en"] {
  --serif: Charter, "Iowan Old Style", Palatino, Georgia, "Songti SC", serif;
  --diary: var(--serif);
}
html[lang="ja"] {
  --serif: "Hiragino Mincho ProN", "Yu Mincho", YuMincho, "Noto Serif JP", Georgia, serif;
  --diary: var(--serif);
}

/* --- base --------------------------------------------------------------- */

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.85;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink-strong);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.005em;
}

p {
  margin: 0;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

code {
  font-family: var(--mono);
  font-size: 0.85em;
  letter-spacing: 0;
  color: var(--ink-strong);
  background: rgba(180, 67, 43, 0.06);
  border-radius: 4px;
  padding: 0.1em 0.36em;
  white-space: nowrap;
}

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

::selection {
  background: rgba(180, 67, 43, 0.16);
}

/* --- shared bits -------------------------------------------------------- */

.wrap {
  width: 100%;
  max-width: var(--page);
  margin: 0 auto;
  padding-inline: var(--gut);
}

.band {
  padding-block: var(--band);
}

.band--panel {
  background: var(--panel);
  border-block: 1px solid var(--border);
}

/* the little monospace annotations the app is built on */
.tag {
  display: block;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}

/* Brand names inside uppercase eyebrows keep their casing (iPhone, iCloud). */
.tag .kc {
  text-transform: none;
}

.tag--accent {
  color: var(--accent);
}

.rule {
  height: 1px;
  background: var(--border);
  border: 0;
  margin: 0;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
}

.skip:focus {
  left: var(--gut);
  top: 10px;
  z-index: 50;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 14px;
  font-family: var(--mono);
  font-size: 13px;
}

/* --- top bar ------------------------------------------------------------ */

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(250, 246, 239, 0.82);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.topbar.is-stuck {
  border-bottom-color: var(--border);
}

.topbar__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.brand__mark {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  border: 1px solid var(--border);
  flex: none;
}

.brand__name {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink-strong);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.brand__name span {
  color: var(--sub);
  font-weight: 400;
  margin-inline-start: 5px;
}

.lang {
  display: flex;
  align-items: center;
  gap: 2px;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.02em;
}

.lang a {
  padding: 5px 9px;
  border-radius: 7px;
  color: var(--sub);
  white-space: nowrap;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.lang a:hover {
  color: var(--ink-strong);
  background: rgba(180, 67, 43, 0.06);
}

.lang a[aria-current="page"] {
  color: var(--accent);
}

.lang__sep {
  color: var(--border);
  user-select: none;
}

/* --- hero --------------------------------------------------------------- */

.hero {
  position: relative;
  padding-top: clamp(56px, 9vw, 108px);
  padding-bottom: clamp(48px, 7vw, 88px);
  overflow: hidden;
}

/* faint year rings, echoing the app icon's paper */
.hero::before {
  content: "";
  position: absolute;
  top: -46%;
  left: 50%;
  width: min(1180px, 148vw);
  aspect-ratio: 1;
  transform: translateX(-50%);
  background: repeating-radial-gradient(
    circle at 50% 50%,
    transparent 0 15px,
    rgba(180, 67, 43, 0.05) 15px 16.5px
  );
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 20%, transparent 68%);
  mask-image: radial-gradient(circle at 50% 50%, #000 20%, transparent 68%);
  pointer-events: none;
  z-index: 0;
}

.hero__in {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.hero h1 {
  margin-top: 22px;
  font-size: clamp(34px, 6.2vw, 60px);
  line-height: 1.24;
  letter-spacing: -0.015em;
}

/* Chinese hero title in the diary serif (Songti) — the one place the
   PingFang page lets the app's own typeface speak. */
html[lang="zh-CN"] .hero h1 {
  font-family: "Kaiti SC", "STKaiti", "KaiTi", "LXGW WenKai", "Noto Serif SC", serif;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.hero__sub {
  margin-top: 26px;
  max-width: 34em;
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--sub);
  line-height: 1.9;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 40px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 26px;
  border-radius: 11px;
  border: 1px solid transparent;
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    background 0.25s var(--ease), border-color 0.25s var(--ease);
}

.btn--primary {
  background: var(--accent);
  color: #fdf9f3;
  box-shadow: 0 1px 2px rgba(120, 40, 24, 0.2), 0 10px 22px -12px rgba(120, 40, 24, 0.55);
}

.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(120, 40, 24, 0.22), 0 16px 30px -14px rgba(120, 40, 24, 0.6);
}

.btn--primary:active {
  transform: translateY(0);
}

.btn--ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--faint);
  cursor: default;
}

.hero__note {
  margin-top: 18px;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.05em;
  color: var(--faint);
}

.hero__shot {
  position: relative;
  z-index: 1;
  margin-top: clamp(48px, 7vw, 84px);
  border-radius: clamp(10px, 1.1vw, 16px);
  border: 1px solid var(--border);
  background: var(--card);
  overflow: hidden;
  box-shadow: var(--shadow-lift);
}

.hero__shot img {
  width: 100%;
}

/* --- section heads ------------------------------------------------------ */

.head {
  max-width: var(--prose);
}

.head h2 {
  margin-top: 18px;
  font-size: clamp(26px, 3.4vw, 38px);
  line-height: 1.36;
}

.head p {
  margin-top: 20px;
  color: var(--sub);
  font-size: clamp(15.5px, 1.5vw, 17.5px);
}

/* --- idea / md demo ----------------------------------------------------- */

.idea__grid {
  display: grid;
  gap: clamp(40px, 6vw, 76px);
  align-items: start;
  margin-top: clamp(40px, 5vw, 64px);
}

.idea__notes {
  display: grid;
  gap: 30px;
}

.note h3 {
  font-size: 18px;
  letter-spacing: 0.01em;
}

.note p {
  margin-top: 8px;
  color: var(--sub);
  font-size: 15.5px;
  line-height: 1.85;
}

.note .tag {
  margin-bottom: 7px;
}

/* the simulated markdown file — and, further down the page, the drawn
   figures of the sections that follow: all cut from the same card */
.md,
.art {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--card);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.md__bar,
.art__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--faint);
  text-transform: uppercase;
}

.md__body {
  padding: 26px 22px 30px;
  font-family: var(--mono);
  font-size: 13.5px;
  line-height: 2;
  color: var(--ink);
}

.md__h1 {
  color: var(--ink-strong);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.md__sec {
  margin-top: 22px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.md__sec.is-on {
  opacity: 1;
  transform: none;
}

.md__sec h4 {
  margin: 0;
  font-family: var(--mono);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.02em;
}

.md__sec p {
  color: var(--ink);
}

/* Diary lines inside the photos figure read in the app's own serif. */
.entry__p {
  font-family: var(--diary);
}

.md__caret {
  display: inline-block;
  width: 7px;
  height: 15px;
  margin-left: 2px;
  vertical-align: -2px;
  background: var(--accent);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}

.md__sec.is-on .md__caret {
  opacity: 1;
  animation: blink 1.15s steps(1, end) infinite;
}

@keyframes blink {
  0%,
  50% {
    opacity: 1;
  }
  50.01%,
  100% {
    opacity: 0;
  }
}

.md__foot,
.art__foot {
  padding: 13px 18px;
  border-top: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--faint);
}

/* --- the three sections that follow the idea ---------------------------- */

/* paper meeting paper: a hairline keeps the last of the three
   apart from the screenshots band below it */
.band--ruled {
  border-bottom: 1px solid var(--border);
}

/* a quiet row of .note blocks — the same species as the idea's notes */
.points {
  display: grid;
  gap: clamp(30px, 4vw, 42px);
  max-width: var(--prose);
  margin-top: clamp(38px, 4.6vw, 60px);
}

/* the evidence stamp that closes each section,
   the same species as the md card's footer line */
.stamp {
  margin-top: clamp(30px, 3.6vw, 44px);
  padding-top: 15px;
  border-top: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.7;
  letter-spacing: 0.05em;
  color: var(--faint);
}

/* words on one side, a drawn figure on the other — the idea grid's rhythm,
   turned around section by section */
.split {
  display: grid;
  gap: clamp(38px, 5.5vw, 68px);
  align-items: start;
  margin-top: clamp(40px, 5vw, 64px);
}

/* stacked inside a split, however the row behaves on its own */
.split .points {
  grid-template-columns: minmax(0, 1fr);
  max-width: none;
  margin-top: 0;
}

.art {
  width: 100%;
  max-width: 480px;
  margin-inline: auto;
}

.art__body {
  padding: 24px 20px 26px;
}

/* --- gift: two devices, one file ---------------------------------------- */

/* this figure carries its section alone, so it stands a little larger and
   keeps to the left edge the words above it start from */
.art--lead {
  max-width: var(--prose);
  margin-inline: 0;
  margin-top: clamp(38px, 4.6vw, 60px);
}

.art--lead .sync {
  max-width: 520px;
}

.sync {
  display: flex;
  align-items: center;
  max-width: 420px;
  margin-inline: auto;
}

/* device outlines: a rounded rectangle and a hairline, nothing more */
.dev {
  background: var(--paper);
  border: 1px solid var(--border);
  overflow: hidden;
}

.dev--mac {
  flex: 1 1 auto;
  min-width: 0;
  border-radius: 9px;
}

.dev--phone {
  flex: 0 0 clamp(84px, 28%, 108px);
  padding: 4px;
  border-radius: 15px;
  background: var(--panel);
}

.dev__bar {
  display: flex;
  align-items: center;
  padding: 6px 10px;
  border-bottom: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 9.5px;
  line-height: 1.6;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
  white-space: nowrap;
  overflow: hidden;
}

/* three window buttons, drawn once and shadowed twice */
.dev__dots {
  flex: none;
  width: 4px;
  height: 4px;
  margin-inline-end: 22px;
  border-radius: 50%;
  background: var(--border);
  box-shadow: 7px 0 0 var(--border), 14px 0 0 var(--border);
}

.dev__screen {
  padding: 11px 12px 13px;
  font-family: var(--mono);
  font-size: 10.5px;
  line-height: 1.7;
  color: var(--ink);
}

.dev--phone .dev__screen {
  padding: 8px 7px 9px;
  border-radius: 11px;
  background: var(--paper);
  font-size: 9.5px;
}

.dev__h1 {
  color: var(--ink-strong);
  font-weight: 600;
}

.dev__h2 {
  margin-top: 7px;
  color: var(--accent);
}

.dev__p {
  margin-top: 3px;
}

/* photo placeholders under the entry: three warm tiles + a source caption */
.dev__photos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  margin-top: 9px;
}

.dev__photos span {
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: 3px;
  border: 1px solid var(--border);
  background: oklch(0.90 0.02 60);
}

.dev__photos span:nth-child(2) { background: oklch(0.89 0.02 90); }
.dev__photos span:nth-child(3) { background: oklch(0.90 0.02 140); }

.dev__src {
  margin-top: 5px;
  font-size: 8.5px;
  letter-spacing: 0.04em;
  color: var(--faint);
}

.dev--phone .dev__photos { gap: 3px; margin-top: 7px; }
.dev--phone .dev__src { font-size: 7.5px; }

.dev__pill,
.dev__home {
  display: block;
  height: 3px;
  margin-inline: auto;
  border-radius: 999px;
  background: var(--border);
}

.dev__pill {
  width: 40%;
  margin-bottom: 9px;
}

.dev__home {
  width: 46%;
  height: 2px;
  margin-top: 11px;
}

/* the dashed run between them, with iCloud sitting on top of it */
.sync__link {
  flex: 0 0 clamp(34px, 12%, 58px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.sync__cloud {
  position: relative;
  width: 22px;
  height: 8px;
  border-radius: 999px;
  background: #ecdbd2;
  background: oklch(0.89 0.028 40);
}

.sync__cloud::before,
.sync__cloud::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: inherit;
}

.sync__cloud::before {
  width: 11px;
  height: 11px;
  left: 3px;
  top: -5px;
}

.sync__cloud::after {
  width: 8px;
  height: 8px;
  right: 3px;
  top: -4px;
}

.sync__wire {
  position: relative;
  width: 100%;
  height: 7px;
}

.sync__wire::before {
  content: "";
  position: absolute;
  inset: 3px 0 auto;
  border-top: 1px dashed var(--faint);
  opacity: 0.55;
}

/* one file, going back and forth */
.sync__dot {
  position: absolute;
  top: 1px;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.6;
  animation: syncTravel 4.6s var(--ease) infinite alternate;
}

@keyframes syncTravel {
  from {
    left: 0;
    transform: translateX(0);
  }
  to {
    left: 100%;
    transform: translateX(-100%);
  }
}

/* --- photos: the strip under the entry ---------------------------------- */

.entry__h {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--accent);
}

.entry__p {
  margin-top: 10px;
  font-size: 14.5px;
  line-height: 1.9;
  color: var(--ink);
}

.entry__label {
  margin-top: 20px;
  padding-top: 13px;
  border-top: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
}

.ph {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.ph__item {
  margin: 0;
  min-width: 0;
}

.ph__item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--border);
  border-radius: 7px;
}

/* the app's own way of labelling a thumbnail: name left, time right */
.ph__cap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0 6px;
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 9.5px;
  line-height: 1.7;
  letter-spacing: 0.02em;
  color: var(--faint);
}

/* --- leaving: one folder is the whole thing ----------------------------- */

.art--folder {
  max-width: 380px;
}

.fold__name {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-strong);
}

/* a folder in two thin lines: a tab, and the body under it */
.fold__icon {
  position: relative;
  flex: none;
  width: 20px;
  height: 15px;
  margin-top: 4px;
  border: 1px solid var(--accent);
  border-radius: 0 3px 3px 3px;
  opacity: 0.7;
}

.fold__icon::before {
  content: "";
  position: absolute;
  left: -1px;
  top: -5px;
  width: 9px;
  height: 5px;
  border: 1px solid var(--accent);
  border-bottom: 0;
  border-radius: 3px 3px 0 0;
}

.fold__list {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.7;
  color: var(--ink);
}

.fold__list li {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 7px 0;
  border-top: 1px solid var(--border);
}

.fold__size {
  color: var(--faint);
}

.fold__more {
  color: var(--faint);
  letter-spacing: 0.06em;
}

/* the listing writes itself out once, when the card arrives; without JS
   the rows are simply there */
.art--folder.is-in .fold__list li {
  animation: fileIn 0.5s var(--ease) both;
  animation-delay: calc(0.25s + var(--i, 0) * 0.09s);
}

@keyframes fileIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* --- screenshots -------------------------------------------------------- */

.shots {
  display: grid;
  gap: clamp(44px, 6vw, 72px);
  margin-top: clamp(44px, 6vw, 72px);
  justify-items: center;
}

.shot {
  max-width: 300px;
  width: 100%;
}

.phone {
  padding: 9px;
  border: 1px solid var(--border);
  border-radius: 46px;
  background: var(--card);
  box-shadow: var(--shadow-lift);
}

.phone img {
  width: 100%;
  border-radius: 38px;
  display: block;
}

.shot__cap {
  margin-top: 22px;
  text-align: center;
}

.shot__cap strong {
  display: block;
  color: var(--ink-strong);
  font-size: 16px;
  font-weight: 600;
}

.shot__cap span {
  display: block;
  margin-top: 6px;
  color: var(--sub);
  font-size: 14.5px;
}

/* --- feature grid ------------------------------------------------------- */

.feats {
  display: grid;
  gap: 1px;
  margin-top: clamp(40px, 5vw, 64px);
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}

.feat {
  background: var(--paper);
  padding: clamp(24px, 3vw, 34px);
}

/* the app's own annotation vocabulary: 08-18.MD, IMG_4100.HEIC … */
.feat__sym {
  display: flex;
  align-items: center;
  height: 20px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.14em;
  color: var(--accent);
}

.feat h3 {
  margin-top: 12px;
  font-size: 17px;
}

.feat p {
  margin-top: 8px;
  color: var(--sub);
  font-size: 14.5px;
  line-height: 1.8;
}

/* --- faq ---------------------------------------------------------------- */

.faq {
  max-width: 780px;
  margin-top: clamp(36px, 4.5vw, 56px);
  border-top: 1px solid var(--border);
}

.faq details {
  border-bottom: 1px solid var(--border);
}

.faq summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 2px;
  cursor: pointer;
  list-style: none;
  color: var(--ink-strong);
  font-size: 16.5px;
  font-weight: 600;
  transition: color 0.2s var(--ease);
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary:hover {
  color: var(--accent);
}

.faq summary::after {
  content: "+";
  flex: none;
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 400;
  color: var(--faint);
  transition: transform 0.3s var(--ease), color 0.2s var(--ease);
}

.faq details[open] summary::after {
  content: "\2212"; /* minus */
  color: var(--accent);
}

.faq__a {
  padding: 0 2px 24px;
  max-width: 60em;
  color: var(--sub);
  font-size: 15.5px;
  line-height: 1.9;
}

.faq details[open] .faq__a {
  animation: faqIn 0.4s var(--ease) both;
}

@keyframes faqIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* --- footer ------------------------------------------------------------- */

.foot {
  padding-block: clamp(52px, 6vw, 76px);
  border-top: 1px solid var(--border);
}

.foot__in {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
}

.foot__origin {
  max-width: 40em;
  color: var(--sub);
  font-size: 15px;
  line-height: 1.9;
}

.foot__meta {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--faint);
  white-space: nowrap;
}

/* --- scroll reveal ------------------------------------------------------ */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--d, 0s);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* --- responsive --------------------------------------------------------- */

@media (min-width: 720px) {
  .feats {
    grid-template-columns: 1fr 1fr;
  }
  .shots {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

@media (min-width: 880px) {
  .points {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(28px, 3.4vw, 48px);
    max-width: none;
  }
}

@media (min-width: 920px) {
  body {
    font-size: 17.5px;
  }
  .idea__grid {
    grid-template-columns: 0.85fr 1fr;
  }
  .idea__notes {
    padding-top: 6px;
  }
  .md__body {
    padding: 32px 30px 38px;
    font-size: 14px;
  }
  .split {
    grid-template-columns: 1fr 0.95fr;
  }
  .split--flip {
    grid-template-columns: 0.95fr 1fr;
  }
  .split--flip .points {
    grid-column: 2;
  }
  .split--flip .art {
    grid-column: 1;
    grid-row: 1;
  }
  /* in two columns the figure lines up with the words above it */
  .split .art {
    margin-inline: 0;
  }
  .art__body {
    padding: 28px 26px 30px;
  }
  .dev__screen {
    font-size: 11.5px;
  }
  .dev--phone .dev__screen {
    font-size: 10px;
  }
  .entry__p {
    font-size: 15.5px;
  }
  .ph__cap {
    font-size: 10.5px;
  }
  .fold__list {
    font-size: 12.5px;
  }
}

@media (max-width: 460px) {
  .topbar__in {
    min-height: 58px;
  }
  .brand__name span {
    display: none;
  }
  .lang {
    font-size: 12px;
  }
  .lang a {
    padding: 5px 6px;
  }
  .btn {
    width: 100%;
  }
  .hero__actions {
    gap: 12px;
  }
  .phone {
    border-radius: 40px;
    padding: 7px;
  }
  .phone img {
    border-radius: 34px;
  }
  .art__body {
    padding: 20px 16px 22px;
  }
  .ph {
    gap: 6px;
  }
}

/* --- reduced motion ----------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
  .md__sec {
    opacity: 1;
    transform: none;
  }
  .md__caret {
    display: none;
  }
  /* the file rests on the wire, at iCloud, and the listing just sits there */
  .sync__dot {
    animation: none;
    left: 50%;
    transform: translateX(-50%);
  }
  .art--folder.is-in .fold__list li {
    animation: none;
  }
  .hero::before {
    display: none;
  }
}

/* --- print -------------------------------------------------------------- */

@media print {
  .topbar,
  .hero::before,
  .sync__dot {
    display: none;
  }
  .reveal,
  .md__sec {
    opacity: 1 !important;
    transform: none !important;
  }
  .art--folder.is-in .fold__list li {
    animation: none;
  }
}
