/* ----------------------------------------------------------------------------
   alexwgold.com — editorial / personal letterhead.
   Warm cream paper, a single serif family, hairline rules, mono section
   labels. Designed to feel hand-set, not corporate.
---------------------------------------------------------------------------- */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght,SOFT,WONK@0,9..144,300..700,0..100,0..1;1,9..144,300..700,0..100,0..1&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
    --paper:        #faf6ee;
    --paper-warm:   #f0e6d2;
    --paper-edge:   #f3ecdd;
    --ink:          #1a1410;
    --ink-soft:     #5a4f44;
    --ink-faint:    #8a7e6f;
    --rule:         #d8cfbf;
    --rule-soft:    #e6dfd0;
    --accent:       #b34a1f;
    --accent-soft:  #efd9cb;

    --serif: 'Fraunces', 'EB Garamond', Georgia, serif;
    --mono:  'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

    --col:   640px;
}

* { box-sizing: border-box; }

/* Make the HTML5 [hidden] attribute beat element-level display rules. */
[hidden] { display: none !important; }

html { background: var(--paper); }

body {
    margin: 0;
    padding: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--serif);
    font-weight: 400;
    font-size: 18px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    font-feature-settings: "ss01", "ss02", "kern", "liga";
}

/* ---- bands: full-width tonal blocks ---- */

.band {
    width: 100%;
    position: relative;
}
.band-paper {
    background: var(--paper);
}
.band-warm {
    background: var(--paper-warm);
}
/* hairline between adjacent bands */
.band + .band {
    border-top: 1px solid var(--rule-soft);
}

.wrap {
    max-width: var(--col);
    margin: 0 auto;
    padding: 0 1.75rem;
}

/* ---- typographic primitives ---- */

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

a {
    color: var(--ink);
    text-decoration: none;
    border-bottom: 1px solid var(--rule);
    transition: border-color 0.2s ease, border-width 0.2s ease;
}
a:hover {
    border-bottom-color: var(--ink);
}

p {
    margin: 0 0 1.1em;
    color: var(--ink-soft);
}
strong { color: var(--ink); font-weight: 500; }

/* ---- masthead ---- */

.masthead {
    padding: 4rem 0 0;
    text-align: left;
}
.monogram {
    font-family: var(--serif);
    font-weight: 300;
    font-size: 1.4rem;
    letter-spacing: 0.05em;
    color: var(--ink);
    font-style: italic;
    font-variation-settings: "opsz" 144, "SOFT" 100;
}
.byline {
    display: block;
    font-family: var(--mono);
    font-size: 0.72rem;
    font-weight: 400;
    color: var(--ink-faint);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-top: 0.8rem;
}

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

.hero {
    padding: 3rem 0 2rem;
}
.hero h1 {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(1.85rem, 4.6vw, 2.55rem);
    line-height: 1.12;
    letter-spacing: -0.018em;
    margin: 0 0 1.6rem;
    color: var(--ink);
    font-variation-settings: "opsz" 144, "SOFT" 50, "WONK" 0;
}
.hero h1 em {
    font-style: italic;
    color: var(--ink);
    font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
    font-weight: 400;
}
.hero .lede {
    font-size: 1.12rem;
    line-height: 1.55;
    color: var(--ink-soft);
    max-width: 32rem;
    margin: 0 0 2rem;
}
/* ---- section ---- */

.section {
    padding: 1.5rem 0 2rem;
    position: relative;
}
.section h2 {
    display: inline-block;
    font-family: var(--serif);
    font-style: normal;
    font-weight: 500;
    font-size: 1.75rem;
    line-height: 1.2;
    color: var(--ink);
    margin: 0 0 1.7rem;
    letter-spacing: -0.015em;
    font-variation-settings: "opsz" 96, "SOFT" 50;
    position: relative;
    padding-bottom: 0.7rem;
}
.section h2::after {
    content: "";
    display: block;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--ink);
}

/* ---- "what I build" — entries as typographic list ---- */

.entries {
    list-style: none;
    margin: 0;
    padding: 0;
}
.entries > li {
    padding: 1.1rem 0;
    border-bottom: 1px solid var(--rule-soft);
}
.entries > li:last-child { border-bottom: none; }
.entries .title {
    font-family: var(--serif);
    font-size: 1.18rem;
    font-weight: 500;
    color: var(--ink);
    margin: 0 0 0.15em;
    font-variation-settings: "opsz" 72, "SOFT" 50;
}
.entries .desc {
    color: var(--ink-soft);
    font-size: 0.98rem;
    line-height: 1.55;
    margin: 0;
}

/* ---- "how I work" — editorial blocks ---- */

.principles {
    margin: 0;
    padding: 0;
}
.principles > div {
    padding: 1.1rem 0;
    border-bottom: 1px solid var(--rule-soft);
}
.principles > div:last-child { border-bottom: none; }
.principles h3 {
    font-family: var(--serif);
    font-weight: 500;
    font-size: 1.15rem;
    margin: 0 0 0.4em;
    color: var(--ink);
    font-variation-settings: "opsz" 72;
}
.principles p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 0.98rem;
    line-height: 1.55;
}

/* ---- contact form — labels as questions, inputs as ruled lines ---- */

.contact-intro {
    margin: 0 0 2.5rem;
    font-size: 1.05rem;
    line-height: 1.55;
    color: var(--ink-soft);
}
.contact-intro em {
    color: var(--ink);
    font-style: italic;
    font-variation-settings: "opsz" 72, "SOFT" 100;
}

.contact-form {
    display: grid;
    gap: 2rem;
}
.field label {
    display: block;
    font-family: var(--serif);
    font-style: italic;
    font-size: 1.02rem;
    color: var(--ink);
    margin-bottom: 0.45rem;
    font-variation-settings: "opsz" 72, "SOFT" 100;
}
.field label .muted {
    color: var(--ink-faint);
    font-style: italic;
    font-size: 0.9em;
}
.field input,
.field textarea {
    width: 100%;
    padding: 0.5rem 0;
    border: none;
    border-bottom: 1px solid var(--rule);
    background: transparent;
    font-family: var(--serif);
    font-size: 1.05rem;
    color: var(--ink);
    line-height: 1.5;
    border-radius: 0;
    transition: border-color 0.2s ease;
}
.field input:focus,
.field textarea:focus {
    outline: none;
    border-bottom-color: var(--ink);
}
.field textarea {
    min-height: 6rem;
    resize: vertical;
    padding-top: 0.7rem;
}

.send-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 0.5rem;
}
button.send {
    background: transparent;
    border: none;
    color: var(--ink);
    font-family: var(--mono);
    font-size: 0.82rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    padding: 0.7rem 0;
    cursor: pointer;
    border-bottom: 1px solid var(--ink);
    transition: color 0.2s ease, border-color 0.2s ease, letter-spacing 0.25s ease;
}
button.send:hover {
    border-bottom-color: var(--ink);
    letter-spacing: 0.22em;
}
.send-row .small {
    font-family: var(--mono);
    font-size: 0.7rem;
    color: var(--ink-faint);
    letter-spacing: 0.06em;
}

.honeypot {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.flash {
    font-family: var(--serif);
    font-style: italic;
    padding: 1rem 1.2rem;
    margin-bottom: 2rem;
    border-left: 2px solid var(--accent);
    background: var(--paper-edge);
    color: var(--ink);
    font-size: 1rem;
    font-variation-settings: "opsz" 72, "SOFT" 100;
}
.flash.error {
    border-left-color: #8a3a1a;
    background: #f4e4dc;
}

/* ---- entrance animation: staggered fade-rise on load ---- */

.reveal {
    opacity: 0;
    transform: translateY(8px);
    animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}
.reveal-1 { animation-delay: 0.05s; }
.reveal-2 { animation-delay: 0.18s; }
.reveal-3 { animation-delay: 0.32s; }
.reveal-4 { animation-delay: 0.46s; }
.reveal-5 { animation-delay: 0.60s; }
.reveal-6 { animation-delay: 0.74s; }
.reveal-7 { animation-delay: 0.88s; }

@keyframes rise {
    to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        animation: none;
    }
    button.send,
    .hero .cta .arrow {
        transition: none;
    }
}

/* ---- responsive ---- */

@media (max-width: 520px) {
    body { font-size: 17px; }
    .wrap { padding: 0 1.4rem; }
    .masthead { padding-top: 2.5rem; }
    .hero { padding: 2rem 0 1.5rem; }
    .section { padding: 1rem 0 1.5rem; }
    .send-row { flex-direction: column; align-items: flex-start; gap: 0.6rem; }
}
