:root {
  color-scheme: light;
  --ink: #292927;
  --muted: #62564c;
  --accent: #8b402c;
  --paper: #F7F3EB;
  --terracotta: #C47760;
  --blush: #E8D6D0;
  --sage: #A6AD96;
  --line: #dcccbd;
  --display: Georgia, 'Times New Roman', serif;
  --body: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.6 var(--body); }
a { color: inherit; }
a:focus-visible { outline: 3px solid #8b402c; outline-offset: 5px; border-radius: 3px; }
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
p { margin: 0 0 1em; }
h1, h2 { margin: 0; font-family: var(--display); font-weight: 400; letter-spacing: -.053em; }
h2 { font-size: clamp(2.3rem, 4.2vw, 4.35rem); line-height: 1.03; }
.wrap { width: min(100% - 6rem, 76rem); margin-inline: auto; }
.skip { position: absolute; top: .75rem; left: .75rem; z-index: 10; padding: .6rem 1rem; color: #fff; background: var(--accent); transform: translateY(-200%); }
.skip:focus { transform: translateY(0); }

.masthead, .footer { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.masthead { padding-block: 1.35rem; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: .65rem; font-family: var(--display); font-size: 1.5rem; font-weight: 700; letter-spacing: -.06em; text-decoration: none; }
.brand img { border-radius: 25%; }
nav { display: flex; flex-wrap: wrap; gap: clamp(.9rem, 3vw, 2.2rem); }
nav a { padding-block: .35rem; font-size: .92rem; font-weight: 630; text-decoration: none; }
nav a:hover, .text-link:hover { text-decoration: underline; text-underline-offset: .23em; }

.hero { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1fr); align-items: center; gap: clamp(1.6rem, 4vw, 4.3rem); padding-block: clamp(2.3rem, 6vw, 6rem); }
.status { display: inline-flex; align-items: center; gap: .55rem; margin-bottom: 1.4rem; color: var(--accent); font-size: .89rem; font-weight: 700; }
.status span { width: .5rem; height: .5rem; border-radius: 50%; background: var(--terracotta); }
.hero h1 { font-size: clamp(3.65rem, 6vw, 6.15rem); line-height: .99; }
.hero h1 em { color: var(--accent); font-weight: inherit; }
.lead { max-width: 29rem; margin-block: 1.55rem 1.75rem; color: var(--muted); font-size: clamp(1.06rem, 1.5vw, 1.2rem); line-height: 1.65; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 3.3rem; border-radius: .55rem; padding: .65rem 1.2rem; background: var(--accent); color: #fff; text-decoration: none; font-weight: 680; }
.button:hover { background: #723221; }

.hero-art { position: relative; isolation: isolate; min-height: 27rem; aspect-ratio: 1.14; overflow: hidden; border: 1px solid #d7b8ab; border-radius: 1.35rem; background:
    linear-gradient(#8b402c10 1px, transparent 1px) center / 22px 22px,
    linear-gradient(90deg, #8b402c10 1px, transparent 1px) center / 22px 22px,
    radial-gradient(ellipse at 20% 15%, var(--paper), var(--blush) 64%, #d9b2a4); }
.chart-paper { position: absolute; top: 15%; left: 8%; width: 68%; transform: rotate(-12deg); border: 1px solid #e3d2c6; border-radius: .38rem; padding: 4.5%; background: #fff8ef; box-shadow: 0 1.3rem 3rem #57352533; }
.chart-paper img { width: 100%; mix-blend-mode: multiply; }
.phone { overflow: hidden; border: clamp(5px, .65vw, 9px) solid #292927; border-radius: clamp(1.3rem, 3.4vw, 2.25rem); background: #F7F3EB; box-shadow: 0 1.4rem 2.7rem #3c2a1d57; }
.phone img { width: 100%; }
.hero-phone { position: absolute; top: 9%; left: 54%; width: 38%; transform: rotate(10deg); }
.hero-art figcaption { position: absolute; bottom: .8rem; left: 1rem; padding: .32rem .65rem; border-radius: .35rem; color: #644032; background: #F7F3EBf2; font-size: .79rem; font-weight: 670; }

.features { scroll-margin-top: 1rem; background: var(--ink); color: var(--paper); border-block: 1px solid #514c43; }
.features-inner { display: grid; grid-template-columns: minmax(0, .93fr) minmax(0, 1fr); gap: clamp(2rem, 7vw, 7.5rem); align-items: center; padding-block: clamp(3rem, 7vw, 6.2rem); }
.palette-art { position: relative; display: grid; place-items: start center; height: clamp(24rem, 42vw, 32.5rem); overflow: hidden; border-radius: 1.35rem; background: radial-gradient(ellipse at 50% 80%, #e3dfd0 0%, var(--sage) 80%); }
.palette-phone { width: min(67%, 19rem); margin-top: 2.25rem; border-radius: 2rem; }
.tools dl { margin: 1.6rem 0 0; }
.tools dl > div { padding: 1rem 0 .9rem; border-top: 1px solid #605a4c; }
.tools dt { font-size: 1.04rem; font-weight: 750; }
.tools dd { max-width: 28rem; margin: .22rem 0 0; color: #ded4c9; }

.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.4rem 4rem; align-items: start; padding-block: clamp(3rem, 7vw, 6rem); }
.about p { max-width: 30rem; margin-top: .25rem; color: var(--muted); font-size: 1.1rem; }
.text-link { color: var(--accent); font-weight: 700; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.footer { border-top: 1px solid var(--line); padding-block: 1.35rem 1.6rem; }

.article { max-width: 45rem; padding-block: 3.5rem 5rem; }
.article h1 { font-size: clamp(3.2rem, 7vw, 5.45rem); line-height: .98; margin-bottom: 1.45rem; }
.article h2 { font: 750 1.2rem/1.3 var(--body); letter-spacing: -.025em; margin: 2rem 0 .55rem; }
.article p { color: var(--muted); max-width: 61ch; }
.article a { color: var(--accent); text-underline-offset: .2em; }
.article details { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.article details p { margin: .5rem 0 0; }
.article summary { cursor: pointer; font-weight: 700; }

@media (max-width: 61rem) {
  .wrap { width: min(100% - 3rem, 76rem); }
  .hero h1 { font-size: clamp(3.1rem, 6.5vw, 5rem); }
  .hero-art { min-height: 21rem; }
}
@media (max-width: 43rem) {
  .wrap { width: calc(100% - 2rem); }
  .masthead { padding-block: .85rem; }
  .masthead .brand img { width: 34px; height: 34px; }
  .hero, .features-inner, .about { grid-template-columns: 1fr; }
  .hero { padding-block: 3rem 2.2rem; gap: 2rem; }
  .hero h1 { font-size: clamp(2.75rem, 10vw, 4.8rem); }
  .hero-art { min-height: 0; aspect-ratio: 1.03; }
  .hero-art figcaption { left: .6rem; bottom: .6rem; }
  .features-inner { gap: 2rem; }
  .palette-art { order: 2; height: clamp(20rem, 107vw, 31rem); }
  .tools { order: 1; }
  .palette-phone { width: min(72%, 18rem); }
  .about { gap: .65rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
