/* picflips.app — the required pages, styled to DESIGN.md.
   Dark is the default; the light theme follows the OS setting.
   No scripts anywhere on this site. */

@font-face {
  font-family: "Big Shoulders";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/big-shoulders-latin-700-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Big Shoulders";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("fonts/big-shoulders-latin-800-normal.woff2") format("woff2");
}

:root {
  --ground: #141517;
  --surface: #1c1e22;
  --raised: #262930;
  --hairline: #32363d;
  --text: #ececea;
  --secondary: #a3a7ae;
  --muted: #8a8f97;
  --gold: #e3b341;
  --gold-text: #e3b341;
  --in: #5ed39a;
  --display: "Big Shoulders", "Arial Narrow", sans-serif;
  --ui: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root {
    --ground: #f2f2f1;
    --surface: #ffffff;
    --raised: #e9e9e7;
    --hairline: #d9d9d6;
    --text: #141517;
    --secondary: #5a5c60;
    --muted: #63666c;
    --gold: #e3b341;
    --gold-text: #7a5a0e;
    --in: #1b6b43;
    color-scheme: light;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: var(--ui);
  font-size: 17px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

a { color: var(--gold-text); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--text); }

.skip {
  position: absolute; left: -9999px; top: 8px;
  padding: 8px 12px; background: var(--gold); color: #141517; border-radius: 8px;
}
.skip:focus { left: 16px; outline: 2px solid var(--text); }

header.site {
  border-bottom: 1px solid var(--hairline);
}
.bar {
  max-width: 760px; margin: 0 auto; padding: 18px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.brand {
  display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text);
}
.brand img { width: 36px; height: 36px; border-radius: 9px; display: block; }
.brand span {
  font-family: var(--display); font-weight: 800; font-size: 26px; letter-spacing: 0.04em; line-height: 1;
  text-transform: uppercase;
}
nav.site ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 18px; }
nav.site a { color: var(--secondary); text-decoration: none; font-size: 15px; font-weight: 500; }
nav.site a:hover, nav.site a[aria-current="page"] { color: var(--text); }

main { max-width: 760px; margin: 0 auto; padding: 40px 16px 64px; }
main.prose { max-width: 680px; }

h1 { font-size: 34px; line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 8px; text-wrap: balance; }
h2 { font-size: 22px; line-height: 1.25; letter-spacing: -0.01em; margin: 40px 0 10px; text-wrap: balance; }
h3 { font-size: 17px; margin: 24px 0 6px; }
p, ul, ol { margin: 0 0 16px; }
ul, ol { padding-left: 22px; }
li { margin-bottom: 6px; }
.lede { font-size: 19px; color: var(--secondary); margin-bottom: 28px; }
.meta { color: var(--muted); font-size: 14px; margin-bottom: 32px; }
hr { border: 0; border-top: 1px solid var(--hairline); margin: 40px 0; }
code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 0.92em; background: var(--raised); padding: 1px 6px; border-radius: 5px; }
strong { font-weight: 600; }

table { border-collapse: collapse; width: 100%; margin: 0 0 20px; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 10px 10px 10px 0; border-bottom: 1px solid var(--hairline); }
th { color: var(--secondary); font-weight: 600; }

.panel {
  background: var(--surface); border: 1px solid var(--hairline); border-radius: 20px; padding: 20px 22px; margin: 0 0 20px;
}
.panel h2:first-child { margin-top: 0; }

.hero { padding: 56px 0 24px; }
.hero .label {
  font-family: var(--display); font-weight: 700; font-size: 15px; letter-spacing: 0.14em; color: var(--secondary);
  text-transform: uppercase; margin-bottom: 14px;
}
.hero h1 { font-size: 44px; margin-bottom: 14px; }
.hero p { font-size: 19px; max-width: 560px; }
.hero .icon { width: 96px; height: 96px; border-radius: 22px; display: block; margin-bottom: 28px; }

.button {
  display: inline-block; background: var(--gold); color: #141517; font-weight: 600; font-size: 16px;
  padding: 14px 20px; border-radius: 12px; text-decoration: none; margin-top: 8px;
}
.button:hover { color: #141517; filter: brightness(1.05); }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin: 36px 0 0; padding: 0; list-style: none; }
.steps li { background: var(--surface); border: 1px solid var(--hairline); border-radius: 20px; padding: 18px 18px 16px; margin: 0; }
.steps .n {
  font-family: var(--display); font-weight: 800; font-size: 28px; color: var(--gold-text); line-height: 1; margin-bottom: 8px;
}
.steps strong { display: block; margin-bottom: 4px; }
.steps span { color: var(--secondary); font-size: 15px; }

footer.site { border-top: 1px solid var(--hairline); }
footer.site .bar { color: var(--muted); font-size: 14px; }
footer.site a { color: var(--secondary); }

@media (max-width: 480px) {
  h1 { font-size: 30px; }
  .hero h1 { font-size: 36px; }
  .hero { padding-top: 32px; }
}
