/* AnnoPotato website. One stylesheet, no external resources.
   Structure follows overcast.fm: one narrow column, the app icon, a one-line
   pitch, one button, a short list of features, a plain footer.
   Finish follows forestapp.cc: heavy rounded headings, a warm two-tone
   palette, a soft glow behind the hero, rounded cards and a pill button. */

:root {
  --bg: #fbf6ec;            /* the icon's cream */
  --bg-glow: #f3e2c3;
  --surface: #fffbf4;
  --surface-strong: #f5ecdc;
  --text: #33251a;          /* roasted brown */
  --muted: #76624f;
  --border: #eadcc4;
  --accent: #9a5f22;        /* potato-skin brown, for links */
  --button-bg: #5b3a1d;
  --button-text: #fdf6e6;
  --button-hover: #46290f;
  --focus: #2f6fd6;
  --shadow: 0 1px 2px rgba(74, 48, 22, 0.06), 0 8px 24px rgba(74, 48, 22, 0.08);
  --icon-shadow: rgba(90, 58, 28, 0.22);
  --max: 720px;
  --radius: 22px;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-round: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1c1610;
    --bg-glow: #3a2a17;
    --surface: #261e16;
    --surface-strong: #30261b;
    --text: #fcf4e2;
    --muted: #c4b49c;
    --border: #3d3123;
    --accent: #f0c46c;      /* golden flesh of a baked potato */
    --button-bg: #f0c46c;
    --button-text: #2a1d10;
    --button-hover: #f7d48d;
    --focus: #8ab4ff;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.25);
    --icon-shadow: rgba(0, 0, 0, 0.45);
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  overflow-wrap: break-word;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1 0 auto; }

a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, .button:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 16px;
}

/* Header: brand on the left, a few plain links. */
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 18px;
  padding-bottom: 18px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  text-decoration: none;
  font-family: var(--font-round);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.01em;
}
.brand img { width: 32px; height: 32px; }
.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav li { margin: 0; }
.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-family: var(--font-round);
  font-weight: 600;
  font-size: 15px;
}
.site-nav a:hover { color: var(--text); }
.site-nav a[aria-current="page"] { color: var(--text); }

/* Type */
main { padding: 32px 0 72px; }

h1, h2, h3 {
  font-family: var(--font-round);
  color: var(--text);
  letter-spacing: -0.02em;
}
h1 { font-size: 44px; line-height: 1.1; font-weight: 800; margin: 0 0 12px; }
h2 { font-size: 26px; line-height: 1.25; font-weight: 700; margin: 48px 0 12px; }
h3 { font-size: 19px; line-height: 1.3; font-weight: 700; margin: 28px 0 6px; letter-spacing: -0.01em; }
p, ul { margin: 0 0 14px; }
ul { padding-left: 22px; }
li { margin-bottom: 6px; }

.lead { font-size: 21px; line-height: 1.45; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: 15px; }

code {
  font-size: 0.88em;
  background: var(--surface-strong);
  border-radius: 6px;
  padding: 1px 6px;
}

/* Hero: centered, icon-led, with a soft warm glow behind the icon. */
.hero {
  text-align: center;
  padding: 24px 0 8px;
  background: radial-gradient(closest-side, var(--bg-glow), transparent) no-repeat center 0 / 420px 300px;
}
.hero-icon {
  display: block;
  width: 144px;
  height: 144px;
  margin: 0 auto 12px;
  filter: drop-shadow(0 6px 14px var(--icon-shadow));
}
.hero h1 { font-size: 52px; }
.hero .lead { max-width: 30ch; margin: 0 auto 4px; }

/* Page head on the inner pages: the same centered block, smaller. */
.page-head { text-align: center; padding: 16px 0 8px; }
.page-head .lead { max-width: 34ch; margin-left: auto; margin-right: auto; }

.cta { margin: 28px 0 12px; }

.button {
  display: inline-block;
  background: var(--button-bg);
  color: var(--button-text);
  text-decoration: none;
  font-family: var(--font-round);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.2;
  padding: 16px 32px;
  border-radius: 999px;
  box-shadow: var(--shadow);
}
.button:hover { background: var(--button-hover); color: var(--button-text); }

/* Cards: Forest's rounded panels, kept quiet. */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 26px;
  margin: 32px 0;
  box-shadow: var(--shadow);
}
.card h2:first-child, .card h3:first-child { margin-top: 0; }
.card p:last-child, .card ul:last-child, .card figure:last-child { margin-bottom: 0; }
.card h2 { font-size: 22px; }

/* Home page feature list: two short cards side by side, one wide card. */
.features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 20px 0;
}
.features .card { margin: 0; }
.features .card h2 { font-size: 20px; margin-bottom: 8px; }
.features + .card, .card + .features { margin-top: 20px; }

figure { margin: 24px 0; }
figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid var(--border);
}
figcaption { font-size: 15px; color: var(--muted); margin-top: 10px; text-align: center; }

/* Where the product screenshot will go. */
.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 9;
  margin: 40px 0 28px;
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 24px;
  text-align: center;
  color: var(--muted);
  font-size: 15px;
}

dl.facts { margin: 0; }
dl.facts dt { font-weight: 600; margin-top: 12px; }
dl.facts dd { margin: 2px 0 0; }

/* Footer: plain, centered, small. */
.site-footer {
  padding: 28px 0 40px;
  font-size: 14px;
  color: var(--muted);
  text-align: center;
}
.site-footer .wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.site-footer .wrap::before {
  content: "";
  align-self: stretch;
  border-top: 1px solid var(--border);
  margin-bottom: 16px;
}
.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-footer li { margin: 0; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }
.site-footer p { margin: 0; }

@media (max-width: 600px) {
  body { font-size: 16px; }
  main { padding: 16px 0 48px; }
  .site-header .wrap { justify-content: center; }
  .site-nav ul { justify-content: center; gap: 4px 16px; }
  h1 { font-size: 34px; }
  .hero h1 { font-size: 40px; }
  h2 { font-size: 23px; margin-top: 40px; }
  .lead { font-size: 19px; }
  .hero-icon { width: 112px; height: 112px; }
  .hero { background-size: 320px 240px; }
  .features { grid-template-columns: 1fr; gap: 16px; }
  .features + .card, .card + .features { margin-top: 16px; }
  .card { padding: 20px; }
  .button { display: block; text-align: center; }
  /* The drawer screenshot is very wide; on a phone show its left part
     at a readable size instead of the whole strip shrunk. */
  .card figure img {
    aspect-ratio: 3 / 1;
    object-fit: cover;
    object-position: left center;
  }
}
