/* andrewseavey.com: one stylesheet, no build step, system fonts. */
:root {
    --bg: #f7f5f0;
    --surface: #ffffff;
    --text: #1b1a22;
    --muted: #4f4c5a;
    --border: #dcd7cc;
    --accent: #9a3f0c;
    --accent-strong: #7a3009;
    --accent-ink: #ffffff;
    --shadow: 0 1px 2px rgba(20, 18, 30, .06), 0 8px 24px rgba(20, 18, 30, .08);
    --radius: 14px;
    color-scheme: light;
}
:root.dark {
    --bg: #12111a;
    --surface: #1c1b26;
    --text: #f2f0f7;
    --muted: #b8b4c6;
    --border: #34323f;
    --accent: #f5a86a;
    --accent-strong: #ffc08f;
    --accent-ink: #1b1a22;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .35);
    color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 400 1.0625rem/1.6 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: .18em; }
a:hover { color: var(--accent-strong); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.skip-link { position: absolute; left: -999px; top: 0; }
.skip-link:focus { left: 1rem; top: 1rem; z-index: 10; background: var(--surface); padding: .5rem .75rem; }

.page { max-width: 72rem; margin: 0 auto; padding: 4.5rem 1.25rem 3rem; }
@media (min-width: 768px) { .page { padding: 6rem 2rem 4rem; } }

/* Theme toggle */
.theme-toggle {
    position: fixed; top: 1rem; right: 1rem; z-index: 5;
    width: 2.75rem; height: 2.75rem; display: grid; place-items: center;
    border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text);
    box-shadow: var(--shadow); cursor: pointer;
}
.theme-toggle svg { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .icon-sun, :root.dark .theme-toggle .icon-moon { display: none; }
:root.dark .theme-toggle .icon-sun { display: block; }

/* Intro */
.intro { max-width: 44rem; margin-bottom: 4.5rem; }
h1 { font-size: clamp(2.5rem, 7vw, 4.25rem); line-height: 1.05; letter-spacing: -.02em; margin: 0 0 1rem; font-weight: 800; }
.lede { font-size: clamp(1.25rem, 2.6vw, 1.625rem); line-height: 1.35; margin: 0 0 1rem; font-weight: 600; }
.about { color: var(--muted); margin: 0 0 1.5rem; }
.links { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; margin: 1.25rem 0 0; }
.button {
    display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 1.15rem;
    border-radius: 10px; background: var(--accent); color: var(--accent-ink); font-weight: 600; text-decoration: none;
}
.button:hover { background: var(--accent-strong); color: var(--accent-ink); }
.text-link { font-weight: 600; }

/* Sections */
h2 { font-size: clamp(1.5rem, 3.4vw, 2.125rem); line-height: 1.2; letter-spacing: -.01em; margin: 0 0 1rem; }
h3 { font-size: 1.125rem; margin: 0 0 .35rem; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8125rem; font-weight: 700; color: var(--accent); margin: 0 0 .5rem; }
.feature { margin-bottom: 5rem; scroll-margin-top: 1.5rem; }
.feature p { max-width: 44rem; }
.facts { padding-left: 1.15rem; margin: 1rem 0; max-width: 46rem; }
.facts li { margin: .4rem 0; }
.stack { color: var(--muted); font-size: .9375rem; }
.note { color: var(--muted); font-size: .875rem; }

/* Screenshots: plain links to the full image (tap to open), no carousel controls over the pictures. */
.gallery { display: grid; gap: 1.25rem; margin-top: 2rem; }
.gallery figure, .food-shot { margin: 0; }
figcaption { color: var(--muted); font-size: .9375rem; margin-top: .6rem; }
.shot {
    display: block; overflow: hidden; border-radius: var(--radius);
    border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow);
}
.shot img { width: 100%; }
.shot.phone { border-radius: 22px; }
@media (min-width: 900px) { .gallery-desktop { grid-template-columns: 1fr 1fr; } .gallery-desktop .wide { grid-column: 1 / -1; } }
.gallery-phone { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 61rem; }
@media (max-width: 599px) {
    .gallery-phone { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 72%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .5rem; }
    .gallery-phone figure { scroll-snap-align: start; }
}

/* Only the image for the current theme is shown (and fetched). */
.only-dark { display: none; }
:root.dark .only-dark { display: block; }
:root.dark .only-light { display: none; }

.feature-split { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 900px) { .feature-split { grid-template-columns: 1fr 20rem; gap: 3rem; } }
.food-shot { max-width: 20rem; }

/* Other projects */
.other { margin-bottom: 4rem; }
.other-list { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 1rem; }
@media (min-width: 768px) { .other-list { grid-template-columns: 1fr 1fr; } }
.other-list li { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem 1.35rem; }
.other-list p { margin: 0; color: var(--muted); }

.footer { border-top: 1px solid var(--border); padding-top: 2rem; color: var(--muted); font-size: .9375rem; }
.feature-intro { display: grid; gap: 2rem; align-items: start; }
.brand-shot { margin: 0; }
@media (min-width: 1100px) { .feature-intro { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 3rem; } }

.phone-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; max-width: 46rem; margin-top: 1.5rem; }
.phone-row figure { margin: 0; }
.phone-row figcaption { font-size: .85rem; margin-top: .5rem; }
@media (max-width: 520px) { .phone-row { gap: .5rem; } .phone-row figcaption { font-size: .75rem; } }
