:root {
  color-scheme: light dark;
  --paper: #fbf8f2;
  --panel: #f4ecdf;
  --ink: #32251e;
  --muted: #64584e;
  --accent: #854e29;
  --line: #ded4c6;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #201b17;
    --panel: #2b241e;
    --ink: #f8eee2;
    --muted: #c8b9a9;
    --accent: #edb587;
    --line: #493d33;
  }
}

* { box-sizing: border-box; }
body { margin: 0; line-height: 1.6; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, dl, dd { margin: 0; }
h1, h2, h3, .brand, .footer-brand {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.08;
}
h1, h2 { letter-spacing: -.04em; }
h1 { font-size: clamp(2.75rem, 5.6vw, 5rem); }
h2 { font-size: clamp(2.2rem, 3.8vw, 3.3rem); }
h3 { font-size: clamp(1.5rem, 2vw, 1.85rem); letter-spacing: -.03em; }
a { color: var(--accent); text-underline-offset: .22em; }
a:focus-visible { outline: 3px solid currentColor; outline-offset: 4px; }
.shell { width: min(78rem, calc(100% - clamp(2rem, 9vw, 9rem))); margin-inline: auto; }
.skip-link { position: absolute; z-index: 5; left: 1rem; top: -6rem; background: var(--paper); padding: .5rem 1rem; }
.skip-link:focus { top: .5rem; }
.masthead, .site-footer, .primary-nav, .site-footer nav, .brand { display: flex; align-items: center; }
.masthead, .site-footer { justify-content: space-between; gap: 1.2rem; }
.masthead { padding-block: 1.25rem; }
.brand, .footer-brand { color: var(--ink); text-decoration: none; }
.brand { gap: .6rem; font-size: 1.9rem; letter-spacing: -.05em; }
.brand img { border-radius: 24%; }
.primary-nav, .site-footer nav { gap: clamp(1rem, 3vw, 2.4rem); }
.primary-nav a, .site-footer nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--muted);
  font-size: .94rem;
  text-decoration: none;
}
.primary-nav a[aria-current], .primary-nav a:hover, .site-footer nav a[aria-current], .site-footer nav a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: .5em;
}
.site-footer { border-top: 1px solid var(--line); padding-block: 1.35rem 1.8rem; }
.footer-brand { font-size: 1.3rem; letter-spacing: -.035em; }

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  overflow: hidden;
  min-height: 32rem;
  border-radius: 1.25rem;
  background: #31251c;
  color: #fffaf1;
}
.hero-landscape, .hero::before {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-landscape { z-index: -2; object-fit: cover; object-position: 50% 50%; }
.hero::before {
  content: "";
  z-index: -1;
  background: linear-gradient(90deg, rgb(30 20 14 / 96%) 0%, rgb(36 23 16 / 89%) 29%, rgb(41 26 16 / 66%) 49%, rgb(44 28 18 / 7%) 75%);
}
.hero-copy { padding: clamp(2rem, 5vw, 4.5rem) 0 clamp(2rem, 5vw, 4.5rem) clamp(2rem, 5vw, 4.5rem); }
.hero h1 { font-size: clamp(3.4rem, 6.6vw, 6rem); line-height: .98; }
.hero h1 em { color: #f3c99d; font-weight: inherit; }
.hero-copy > p { max-width: 27rem; margin-top: 1.4rem; font-size: 1.08rem; color: #fff4e7; }
.download { display: flex; align-items: center; gap: 1.2rem; margin-top: 1.7rem; }
.download a { display: block; color: #fffaf1; border-radius: .5rem; }
.store-badge img { width: 9.75rem; height: auto; }
.download .scan-link { padding-left: 1.15rem; border-left: 1px solid rgb(255 255 255 / 38%); border-radius: 0; }
.scan-link img { border-radius: .24rem; image-rendering: pixelated; }
.hero-copy .platforms { margin-top: .65rem; font-size: .88rem; color: #eedfcd; }
.hero-device { display: grid; place-items: center; align-self: stretch; padding: 1.9rem 1rem 1.9rem 0; }
.hero-device img {
  width: clamp(11rem, 17vw, 14rem);
  height: auto;
  transform: rotate(4deg);
  filter: drop-shadow(.6rem 1rem 1rem rgb(22 13 7 / 42%));
}

.screenshots {
  padding-block: clamp(2.5rem, 5vw, 4.5rem);
  border-bottom: 1px solid var(--line);
}
.screenshots h2 { margin-bottom: 1.35rem; }
.screenshot-devices {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin-bottom: 1.25rem;
}
.screenshot-devices a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: .45rem .9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
}
.screenshot-devices a:hover,
.screenshot-devices a[aria-selected="true"] {
  border-color: var(--accent);
  color: var(--ink);
}
.screenshot-devices [aria-selected="true"] { background: var(--panel); }
.screenshot-panel { margin-top: 1.3rem; }
.screenshot-device-title { margin-bottom: .8rem; font-size: 1.3rem; }
.screenshot-strip {
  display: flex;
  align-items: flex-start;
  gap: clamp(.8rem, 1.8vw, 1.35rem);
  overflow-x: auto;
  margin: 0;
  padding: .25rem .15rem 1rem;
  list-style: none;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: .15rem;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) var(--panel);
}
.screenshot-strip:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.screenshot-strip li { flex: 0 0 auto; scroll-snap-align: start; }
.screenshot-strip img {
  width: clamp(10rem, 19vw, 14rem);
  height: auto;
  border-radius: .7rem;
  box-shadow: 0 .6rem 1.5rem rgb(31 22 15 / 16%);
}
.screenshot-panel[id="screenshots-ipad"] .screenshot-strip img {
  width: clamp(16rem, 35vw, 25rem);
}
.screenshot-panel[id="screenshots-watch"] .screenshot-strip img {
  width: clamp(9rem, 15vw, 11rem);
}
.screenshot-panel[id="screenshots-duo-outer"] .screenshot-strip img,
.screenshot-panel[id="screenshots-duo-inner"] .screenshot-strip img {
  width: clamp(12rem, 23vw, 17rem);
}
.screenshot-panel[hidden] { display: none; }
.screenshot-panel[role="tabpanel"] .screenshot-device-title { display: none; }

.features { padding-block: clamp(2.5rem, 5vw, 4.5rem) clamp(3rem, 6vw, 5rem); }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.2rem, 2.2vw, 2rem); margin-top: 1.5rem; }
.feature-art {
  display: grid;
  place-items: center;
  position: relative;
  height: clamp(11rem, 15vw, 13rem);
  border-radius: 1rem;
  overflow: hidden;
}
.feature-grid h3 { margin-block: 1.2rem .55rem; }
.feature-grid p { color: var(--muted); max-width: 40ch; }
.reminder-art { background: linear-gradient(145deg, #f5e8d8, #e8c8aa); }
.reminder {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .8rem 1.15rem;
  border: 1px solid #fff7ef;
  border-radius: 1rem;
  background: #fff7ed;
  color: #392b21;
  box-shadow: 0 .65rem 1.4rem #80583729;
  transform: rotate(-3deg);
}
.reminder img { border-radius: .65rem; }
.reminder span, .reminder strong, .reminder small { display: block; }
.reminder span, .reminder small { color: #685a4d; font-size: .8rem; }
.reminder strong { font-size: 1rem; }
.journal-art { background: linear-gradient(150deg, #e0e4d8, #c0c9b4); }
.print {
  position: absolute;
  top: 50%;
  width: 44%;
  max-width: 10.9rem;
  height: 65%;
  object-fit: cover;
  border: .37rem solid #fffaf2;
  border-bottom-width: .9rem;
  box-shadow: 0 .45rem .9rem #35422e40;
}
.print-walk { right: 44%; transform: translateY(-53%) rotate(-11deg); }
.print-tea { left: 43%; transform: translateY(-42%) rotate(9deg); }
.widget-art { background: linear-gradient(135deg, #e5d8cc, #caa991); }
.widget-art img { width: 76%; max-width: 17rem; height: auto; transform: rotate(-3deg); filter: drop-shadow(0 .5rem .65rem #654f3e33); }

.device-sync { display: grid; grid-template-columns: 1fr 2fr; gap: 2rem; align-items: baseline; border-top: 1px solid var(--line); padding-block: clamp(2rem, 4vw, 3.5rem); }
.device-sync h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
.device-sync p { color: var(--muted); max-width: 62ch; }

.page-heading { padding-block: clamp(2rem, 5vw, 4rem); border-bottom: 1px solid var(--line); }
.page-heading p { max-width: 63ch; }
.updated { margin: .8rem 0 1.4rem; font-size: .94rem; color: var(--muted); }
.policy-layout { display: grid; grid-template-columns: minmax(12rem, 1fr) minmax(0, 3fr); gap: clamp(2rem, 7vw, 6rem); padding: 2.5rem 0 4rem; }
.contents { align-self: start; position: sticky; top: 1.5rem; }
.contents h2 { font: 600 1rem/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; letter-spacing: 0; }
.contents ul { padding: 0; list-style: none; margin: .6rem 0 0; }
.contents a { display: inline-block; padding-block: .35rem; }
.policy-text { max-width: 67ch; }
.policy-text section { scroll-margin-top: 1.5rem; }
.policy-text section + section { margin-top: 2rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.policy-text h2 { font-size: 1.85rem; margin-bottom: .9rem; }
.policy-text dt { font-weight: 650; }
.policy-text dd + dt, .policy-text p + p { margin-top: 1rem; }
.policy-text ul { margin: 0; padding-left: 1.3rem; }
.policy-text li + li { margin-top: .55rem; }
.contact-page { padding-block: 1rem clamp(3rem, 6vw, 5rem); }
.contact-panel { display: grid; grid-template-columns: 1.25fr 1fr; overflow: hidden; border-radius: 1.25rem; background: var(--panel); }
.contact-copy { align-self: center; padding: clamp(2rem, 5vw, 4rem); }
.contact-copy p { max-width: 42ch; margin-top: 1.3rem; color: var(--muted); }
.email-link { display: inline-block; margin-top: 1.2rem; font-size: clamp(1rem, 2vw, 1.45rem); overflow-wrap: anywhere; }
.contact-copy .contact-note { font-size: 1rem; margin-top: 2rem; }
.contact-photo { width: 100%; height: 100%; min-height: 27rem; object-fit: cover; }

.changelog-intro {
  padding: clamp(1.5rem, 5vw, 4rem);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  background: var(--panel);
}
.changelog-intro p { max-width: 52ch; margin-top: .9rem; color: var(--muted); }
.changelog-intro a { display: inline-block; margin-top: .85rem; }
.changelog-layout {
  display: grid;
  grid-template-columns: minmax(9rem, 1fr) minmax(0, 3fr);
  gap: clamp(2rem, 6vw, 5rem);
  max-width: 65rem;
  padding-block: clamp(2rem, 5vw, 4rem);
}
.release-index { align-self: start; }
.release-index h2 { font: inherit; font-weight: 650; letter-spacing: 0; }
.release-index ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(4.25rem, 1fr));
  gap: .35rem;
  max-width: 16rem;
  margin: .7rem 0 0;
  padding: 0;
  list-style: none;
}
.release-index a {
  display: grid;
  place-items: center;
  min-height: 2.5rem;
  padding-inline: .35rem;
  border: 1px solid var(--line);
  border-radius: .5rem;
  font-size: .94rem;
  text-decoration: none;
}
.release-index a:hover { background: var(--panel); text-decoration: underline; }
.release { scroll-margin-top: 1rem; }
.release + .release {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.release-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem .8rem;
  align-items: baseline;
  margin-bottom: .45rem;
  color: var(--muted);
  font-size: .94rem;
}
.release-version, .release-latest { color: var(--accent); font-weight: 650; }
.release h2 { font-size: clamp(1.65rem, 3vw, 2.3rem); }
.release:target h2 { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: .22em; }
.release ul { margin: .85rem 0 0; padding-left: 1.3rem; }
.release li + li { margin-top: .45rem; }
.release-source { margin-top: .8rem; color: var(--muted); font-size: .94rem; }

@media (max-width: 56rem) {
  .hero { min-height: 28rem; grid-template-columns: 1.25fr .75fr; }
  .hero-copy { padding-left: 2rem; }
  .feature-grid { gap: 1rem; }
  .reminder { padding: .65rem .8rem; gap: .45rem; }
  .reminder img { width: 2rem; height: 2rem; }
}

@media (max-width: 45rem) {
  .site-footer { flex-direction: column; align-items: flex-start; gap: .25rem; }
  .masthead { gap: .65rem; padding-block: .85rem; }
  .brand { gap: .35rem; font-size: 1.55rem; }
  .brand img { width: 2.05rem; height: 2.05rem; }
  .primary-nav { flex-wrap: wrap; gap: 0 .85rem; }
  .primary-nav a { font-size: .875rem; }
  .hero { display: flex; align-items: flex-end; min-height: 31rem; }
  .hero-device { display: none; }
  .hero-landscape { object-position: 58% center; }
  .hero::before { background: linear-gradient(0deg, #241910 1%, rgb(36 25 16 / 93%) 34%, rgb(36 25 16 / 82%) 49%, rgb(36 25 16 / 10%) 84%); }
  .hero-copy { padding: 8rem 1.6rem 1.8rem; }
  .hero h1 { font-size: clamp(3rem, 9vw, 4.3rem); }
  .hero-copy > p { font-size: 1rem; margin-top: 1rem; }
  .download { margin-top: 1.35rem; }
  .download .scan-link { display: none; }
  .feature-grid { grid-template-columns: 1fr; gap: 2rem; }
  .feature-art { height: 11.5rem; }
  .feature-grid p { max-width: 56ch; }
  .feature-grid h3 { margin-top: .95rem; }
  .device-sync { grid-template-columns: 1fr; gap: .75rem; }
  .policy-layout { grid-template-columns: 1fr; gap: 2rem; }
  .changelog-layout { grid-template-columns: 1fr; gap: 2rem; }
  .release-index ul { max-width: none; }
  .contents { position: static; }
  .contents ul { display: flex; flex-wrap: wrap; gap: 0 1.2rem; }
  .contact-panel { grid-template-columns: 1fr; }
  .contact-photo { min-height: 0; height: 13rem; }
  .contact-copy { padding: 2rem 1.5rem; }
}

@media (max-width: 24rem) {
  .masthead { flex-wrap: wrap; }
  .primary-nav { gap: 0 1rem; }
  .hero-copy { padding-inline: 1.15rem; }
}
