/* wheelmaker.dev — hand-written, no framework. Paper, ink, one accent. */

:root {
    --paper: #faf8f4;
    --ink: #1a1815;
    --muted: #6f6a63;
    --line: #e7e1d8;
    --accent: #c2410c;
    --accent-dark: #9a3412;
    --serif: "Fraunces", Georgia, "Times New Roman", serif;
    --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

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

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

::selection { background: var(--accent); color: #fff; }

a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.wrap {
    max-width: 72rem;
    margin: 0 auto;
    padding: 0 1.5rem;
}
.wrap.narrow { max-width: 44rem; }

/* ---------- header ---------- */

.site-header {
    border-bottom: 1px solid var(--line);
    background: var(--paper);
    position: sticky;
    top: 0;
    z-index: 10;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    height: 3.75rem;
}
.wordmark {
    font-family: var(--serif);
    font-weight: 600;
    font-size: 1.125rem;
    letter-spacing: -0.01em;
    text-decoration: none;
}
.site-nav { display: flex; gap: 1.5rem; }
.site-nav a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--muted);
    text-decoration: none;
    letter-spacing: 0.01em;
}
.site-nav a:hover { color: var(--accent); }

/* ---------- hero ---------- */

.hero { padding: 6.5rem 0 5rem; }
.kicker {
    margin: 0 0 1.25rem;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
}
.hero h1 {
    font-family: var(--serif);
    font-weight: 500;
    font-size: clamp(2.75rem, 7vw, 4.75rem);
    line-height: 1.04;
    letter-spacing: -0.02em;
    margin: 0 0 1.5rem;
    max-width: 14ch;
}
.lede {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--muted);
    max-width: 34ch;
    margin: 0 0 2.5rem;
}
.hero-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.75rem;
}
.text-link {
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    border-bottom: 1px solid var(--line);
    padding-bottom: 2px;
}
.text-link:hover { color: var(--accent); border-color: var(--accent); }
.btn-resume {
    font: inherit;
    font-weight: 600;
    font-size: 1rem;
    color: #fff;
    background: var(--ink);
    border: none;
    border-radius: 999px;
    padding: 0.7rem 1.4rem;
    cursor: pointer;
}
.btn-resume:hover { background: var(--accent); }
.btn-resume:disabled { opacity: 0.6; cursor: wait; }

/* ---------- sections ---------- */

.section { padding: 4.5rem 0; border-top: 1px solid var(--line); }
.section-head {
    font-family: var(--serif);
    font-weight: 500;
    font-size: 1.75rem;
    letter-spacing: -0.01em;
    margin: 0 0 2.5rem;
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
}
.section-num {
    font-family: var(--sans);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.08em;
}
.tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0.2rem 0.65rem;
    white-space: nowrap;
}

/* now */
.now-list { border-top: 1px solid var(--line); }
.now-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    padding: 1.75rem 0;
    border-bottom: 1px solid var(--line);
}
.now-item h3 {
    font-family: var(--serif);
    font-weight: 500;
    font-size: 1.375rem;
    margin: 0 0 0.25rem;
}
.now-item p { margin: 0; color: var(--muted); max-width: 52ch; }

/* work */
.work-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border-top: 1px solid var(--line);
}
.work-item {
    padding: 1.75rem 1.75rem 1.75rem 0;
    border-bottom: 1px solid var(--line);
}
.work-item:nth-child(even) { padding-left: 1.75rem; }
.work-item h3 {
    font-family: var(--serif);
    font-weight: 500;
    font-size: 1.375rem;
    margin: 0 0 0.25rem;
}
.work-item h3 a { text-decoration: none; }
.work-item h3 a:hover { color: var(--accent); }
.work-item p { margin: 0 0 0.75rem; color: var(--muted); }
.earlier {
    margin: 2rem 0 0;
    color: var(--muted);
    font-size: 0.9375rem;
}

/* about */
#about p { margin: 0 0 1.25rem; }
#about p:last-child { margin-bottom: 0; }

/* contact */
.contact-intro { color: var(--muted); margin: 0 0 2rem; }
.field { margin-bottom: 1.5rem; }
.field label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
}
.field .optional { font-weight: 400; color: var(--muted); }
.field input,
.field textarea {
    width: 100%;
    font: inherit;
    color: var(--ink);
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    padding: 0.55rem 0;
}
.field input:focus,
.field textarea:focus {
    outline: none;
    border-bottom-color: var(--accent);
}
.field textarea { resize: vertical; min-height: 7rem; }
.honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
.btn-primary {
    font: inherit;
    font-weight: 600;
    font-size: 1rem;
    color: #fff;
    background: var(--accent);
    border: none;
    border-radius: 999px;
    padding: 0.75rem 1.6rem;
    cursor: pointer;
}
.btn-primary:hover { background: var(--accent-dark); }
.btn-primary:disabled { opacity: 0.6; cursor: wait; }
.form-status { margin: 1rem 0 0; min-height: 1.5em; font-weight: 500; }
.form-status.ok { color: #166534; }
.form-status.err { color: #b91c1c; }
.form-error { color: #b91c1c; font-weight: 500; margin: 1rem 0 0; }

/* ---------- footer ---------- */

.site-footer { border-top: 1px solid var(--line); padding: 2.5rem 0 3rem; }
.footer-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.5rem 2rem;
}
.footer-inner p { margin: 0; font-size: 0.875rem; color: var(--muted); }

/* ---------- utilities ---------- */

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* ---------- small screens ---------- */

@media (max-width: 640px) {
    .hero { padding: 4.5rem 0 3.5rem; }
    .section { padding: 3.25rem 0; }
    .site-nav { gap: 1rem; }
    .site-nav a { font-size: 0.8125rem; }
    .wordmark { font-size: 1rem; }
    .now-item { flex-direction: column; gap: 0.75rem; }
    .work-list { grid-template-columns: 1fr; }
    .work-item:nth-child(even) { padding-left: 0; }
    .lede { font-size: 1.125rem; }
}
