:root {
  color-scheme: light dark;
  --paper: #f7f4ec;
  --ink: #202629;
  --muted: #535c5d;
  --line: #c9c5b9;
  --card: #fffcf5;
  --accent: #8a3924;
  --accent-panel: #eee7d8;
  --navy: #101a20;
  --white: #f8f4e8;
  --focus: #9a4128;
  --display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --body: "Avenir Next", "Trebuchet MS", sans-serif;
  --mono: ui-monospace, Menlo, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #12191d;
    --ink: #f5f1e6;
    --muted: #c1c7c4;
    --line: #4a5658;
    --card: #1d272b;
    --accent: #ffbd9e;
    --accent-panel: #282921;
    --focus: #ffc078;
  }
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.65 var(--body); }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: .22em; }
a:hover { text-decoration-thickness: .14em; }
:focus-visible { outline: .19rem solid var(--focus); outline-offset: .24rem; }
.frame { width: min(100% - 3rem, 75rem); margin-inline: auto; }
.skip { position: absolute; top: .5rem; left: .5rem; z-index: 2; transform: translateY(-200%); background: var(--card); padding: .5rem 1rem; }
.skip:focus { transform: none; }

.header { color: var(--white); background: var(--navy); --focus: #ffc078; }
.top { min-height: 5rem; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; column-gap: 2rem; }
.wordmark { width: clamp(9rem, 19vw, 14rem); padding-block: .85rem; }
nav { display: flex; flex-wrap: wrap; column-gap: clamp(.8rem, 2.4vw, 1.7rem); }
nav a { display: inline-flex; align-items: center; min-height: 2.75rem; }
.header a { color: var(--white); }
.header nav a, .app-nav a { text-decoration: none; }
.header a:hover, .app-nav a:hover, nav [aria-current="page"] { text-decoration: underline; }
.header nav [aria-current="page"] { text-decoration: underline; }

.page { padding-block: clamp(1.6rem, 5vw, 4.4rem) 4rem; }
h1, h2, h3 { margin: 0; font-family: var(--display); line-height: 1.12; letter-spacing: -.035em; font-weight: 600; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 6.2vw, 5.4rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.65rem); }
h3 { font-size: clamp(1.45rem, 3vw, 2rem); }
p { margin: .8rem 0 0; }
.label { font: 600 .78rem/1.55 var(--mono); letter-spacing: .04em; color: var(--muted); }
.intro { max-width: 52rem; margin-block: .5rem 2.5rem; }
.intro p, .standfirst { font-size: clamp(1.1rem, 2.2vw, 1.38rem); color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem 1.25rem; margin-top: 1.55rem; }
.button { display: inline-flex; min-height: 2.75rem; align-items: center; padding: .55rem 1.1rem; border-radius: .3rem; background: var(--ink); color: var(--paper); font-weight: 750; text-decoration: none; }
.button:hover { text-decoration: underline; }
.text-link { font-weight: 750; }

.hero { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .95fr); min-height: 27rem; border: 1px solid var(--line); background: var(--card); }
.hero-copy { align-self: center; padding: clamp(1.45rem, 5vw, 4.5rem); }
.hero-copy h1 { margin-block: .55rem 1rem; }
.hero-copy h1 span { color: var(--accent); display: block; }
.hero-copy > p:not(.label) { font-size: clamp(1.05rem, 2.2vw, 1.36rem); }
.hero-image { background: #18282b; display: block; position: relative; overflow: hidden; min-height: 12rem; }
.hero-image img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.home-section { margin-top: clamp(2rem, 6vw, 4.1rem); padding-top: 1.3rem; border-top: 1px solid var(--line); }
.section-heading { margin-bottom: 1.2rem; }
.cards, .feature-grid, .split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 2.5rem; }
.app-card { display: flex; align-items: flex-start; gap: 1rem; padding: clamp(1rem, 3vw, 1.7rem); border: 1px solid var(--line); background: var(--card); }
.app-card .label { margin: 0 0 .25rem; }
.app-card p:last-child { color: var(--muted); }
.icon { flex: none; border-radius: 22%; }
.project { padding-left: 1rem; border-left: 2px solid var(--accent); }
.project h3 { font-size: 1.55rem; }

.app-nav { border-bottom: 1px solid var(--line); margin: -.5rem 0 1.8rem; }
.app-nav a { color: var(--ink); }
.app-nav [aria-current="page"] { color: var(--accent); text-decoration: underline; }
.product { background: var(--accent-panel); border: 1px solid var(--line); padding: clamp(1.2rem, 4.5vw, 3.2rem); }
.product.with-media { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; gap: 2rem; }
.product .label { margin-top: 1.35rem; }
.product-media { width: min(100%, 23rem); justify-self: center; }
.app-screenshot { margin: 0; }
.screenshot-frame { aspect-ratio: 3 / 4; background: var(--card); border: 1px solid var(--line); border-radius: .35rem; overflow: hidden; }
.screenshot-frame img { width: 100%; height: 100%; object-fit: contain; }
.app-screenshot figcaption { color: var(--muted); font-size: .875rem; margin-top: .4rem; }
.screenshot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: 1.25rem; max-width: 47.25rem; margin-top: 1rem; }
.screenshot-grid .app-screenshot { width: min(100%, 23rem); }
.feature-grid { margin-top: 1.6rem; }
.feature-grid section { background: var(--card); border: 1px solid var(--line); padding: clamp(1rem, 3vw, 1.7rem); }
.prose { max-width: 48rem; }
.prose section + section { margin-top: 2rem; }
.prose > p + section { margin-top: 2rem; }
dt { font-weight: 750; }
dd { margin: .25rem 0 1.2rem; color: var(--muted); }
li + li { margin-top: .35rem; }
.contact-list { overflow-wrap: anywhere; }
.footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 1.5rem; padding-block: .8rem 1.4rem; border-top: 1px solid var(--line); }
.footer p { margin: 0; color: var(--muted); }

@media (max-width: 650px) {
  .frame { width: calc(100% - 2rem); }
  .top { display: block; padding-top: .3rem; }
  .top .wordmark { display: block; }
  .hero, .cards, .feature-grid, .split, .product.with-media { grid-template-columns: minmax(0, 1fr); }
  .hero { min-height: auto; }
  .hero-image { min-height: clamp(10.5rem, 38vw, 16rem); }
  .hero-image img { object-position: center 60%; }
  .app-card .icon { width: 3.4rem; }
}
