/* Porch Light site, in the app's language (docs/Porch_Light_Design_Spec.md Section 3, docs/design/DESIGN.md).
   Paper surface (evening in dark mode), two type sizes: a system-serif display line and
   system-sans body. No bold, no boxes, no shadows; one radius. Left-aligned. The warm light
   color marks a light that is on and the app's one filled button; the site has neither. */
:root {
  --bg: #FAFAF8;
  --ink: #1C1916;
  --secondary: #776C60;
  --hairline: #E9E4DD;
  --pressed-overlay: rgba(28, 25, 22, 0.08);
  --serif: ui-serif, serif;
  --sans: -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16110C;
    --ink: #F3EADB;
    --secondary: #A39580;
    --hairline: rgba(255, 236, 210, 0.11);
    --pressed-overlay: rgba(243, 234, 219, 0.10);
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/24px var(--sans);
}
main { max-width: 640px; margin: 0 auto; padding: 24px 24px 48px; }

/* Header: the wordmark in the display serif at body size, plain text. */
header {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 24px;
  padding-bottom: 16px; border-bottom: 0.5px solid var(--hairline);
}
header > a { font-family: var(--serif); color: var(--ink); text-decoration: none; }
nav a { color: var(--secondary); margin-left: 16px; text-decoration: none; }
nav a:first-child { margin-left: 0; }

/* The two sizes. h1 is the one display line; everything else is body size. */
h1 {
  font: 400 40px/44px var(--serif); letter-spacing: -0.4px;
  max-width: 300px; margin: 40px 0 24px;
}
h2 { font: inherit; color: var(--ink); margin: 40px 0 8px; }
p, li { margin: 0 0 16px; }
ul { padding-left: 24px; }
.muted { color: var(--secondary); }
a { color: var(--ink); text-underline-offset: 3px; }

/* Store buttons: outline buttons, full width inside the margin. One page, two equal choices,
   so neither takes the single filled button. Hidden until a store URL is set (site.js). */
.stores { display: grid; gap: 12px; margin-top: 40px; }
.stores a {
  display: flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 16px;
  border: 1px solid var(--ink); border-radius: 6px;
  color: var(--ink); text-decoration: none; font-weight: 500; letter-spacing: 0.2px;
}
.stores a:active { background: var(--pressed-overlay); }
.stores a[hidden] { display: none; }

footer { margin-top: 48px; padding-top: 16px; border-top: 0.5px solid var(--hairline); color: var(--secondary); }
footer a { color: var(--secondary); }

/* A join code (site/j/): display size, wide tracking, tabular figures. */
.code {
  font: 400 40px/44px var(--serif); letter-spacing: 4px; font-variant-numeric: tabular-nums;
  max-width: none; margin: 40px 0 24px;
}
.code[hidden] { display: none; }
