@font-face {
    font-family: 'Bricolage Grotesque';
    src: url('/fonts/BricolageGrotesque-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Instrument Sans';
    src: url('/fonts/InstrumentSans-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Instrument Sans';
    src: url('/fonts/InstrumentSans-Italic.woff2') format('woff2');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Instrument Sans';
    src: url('/fonts/InstrumentSans-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'IBM Plex Mono';
    src: url('/fonts/IBMPlexMono-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'IBM Plex Mono';
    src: url('/fonts/IBMPlexMono-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'IBM Plex Mono';
    src: url('/fonts/IBMPlexMono-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

:root {
    --bg: #FBF7F1;
    --ink: #2C2722;
    --ink-soft: #5B5349;
    --muted: #6E665D;
    --faint: #8A8178;
    --orange: #D9572B;
    --orange-bright: #E8742F;
    --orange-soft: #F8865C;
    --orange-tint: #FDF0E8;
    --underline: #E8B89D;
    --dash: #D8C9B4;
    --yellow: #F4B942;
    --sans: 'Instrument Sans', sans-serif;
    --mono: 'IBM Plex Mono', monospace;
    --display: 'Bricolage Grotesque', sans-serif;
}

* { box-sizing: border-box; }

html {
    margin: 0;
    padding: 0;
    /* Reserve the scrollbar gutter so short pages don't shift the
       centered column sideways relative to scrolling ones */
    scrollbar-gutter: stable;
}

body {
    margin: 0;
    background: var(--bg);
    background-image: radial-gradient(rgba(44, 39, 34, 0.045) 1px, transparent 1px);
    background-size: 22px 22px;
    color: var(--ink);
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.65;
    padding: 0 0 100px 0;
    -webkit-font-smoothing: antialiased;
}

/* Matches the blog's measure; the design's 760px split the text up too much */
.col { max-width: 860px; margin: 0 auto; padding: 0 24px; }
p { margin: 0 0 18px 0; }
a:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 2px; }

/* ---------- header ---------- */
.site-header {
    display: flex; justify-content: space-between; align-items: baseline;
    padding: 32px 48px;
    font-family: var(--mono); font-size: 14px;
}
.site-header-left { display: flex; gap: 18px; align-items: baseline; }
.wordmark { font-weight: 600; color: var(--ink); text-decoration: none; }
.navlink { color: var(--orange); text-decoration: underline; text-underline-offset: 3px; }
.lang { color: var(--faint); }
.lang a { color: var(--faint); text-decoration: none; }
.lang a.active { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- hero ---------- */
.hero { display: flex; gap: 56px; align-items: flex-start; padding-top: 56px; }
.hero-text { flex: 1; }
.prompt { font-family: var(--mono); font-size: 14px; color: var(--faint); margin-bottom: 18px; }
.prompt b { color: var(--orange); font-weight: 500; }
h1 {
    font-family: var(--display); font-weight: 700;
    font-size: clamp(38px, 6vw, 58px); line-height: 1.05; letter-spacing: -0.02em;
    margin: 0 0 22px 0; text-wrap: balance;
}
h1 mark { background: linear-gradient(transparent 62%, #FFC9A8 62%); color: inherit; }
.meta { font-family: var(--mono); font-size: 13.5px; color: var(--muted); margin-bottom: 26px; }

.polaroid-wrap { flex: none; position: relative; padding-top: 14px; }
.polaroid {
    background: #fff; padding: 12px 12px 40px 12px; margin: 0;
    transform: rotate(2.6deg);
    box-shadow: 0 2px 6px rgba(44, 39, 34, 0.12), 0 12px 28px rgba(44, 39, 34, 0.10);
    position: relative;
}
.polaroid picture { display: block; }
.polaroid img { width: 196px; height: 210px; object-fit: cover; object-position: top; display: block; }
.polaroid figcaption {
    position: absolute; bottom: 10px; left: 0; right: 0; text-align: center;
    font-family: var(--mono); font-size: 12.5px; color: var(--faint);
}
.tape {
    position: absolute; top: 2px; left: 50%; width: 92px; height: 26px;
    transform: translateX(-50%) rotate(-3deg);
    background: rgba(244, 185, 66, 0.38);
    border-left: 1px dashed rgba(160, 120, 30, 0.25);
    border-right: 1px dashed rgba(160, 120, 30, 0.25);
}
.badge {
    position: absolute; bottom: -16px; right: -14px; transform: rotate(-6deg);
    font-family: var(--mono); font-size: 12px; font-weight: 500;
    background: var(--ink); color: var(--bg); padding: 7px 13px; border-radius: 999px;
    white-space: nowrap;
}

/* ---------- buttons ---------- */
.btn {
    display: inline-block; margin-top: 8px;
    font-family: var(--mono); font-size: 15px; font-weight: 500;
    color: var(--ink); background: var(--orange-soft); text-decoration: none;
    padding: 13px 24px; border: 2px solid var(--ink); border-radius: 12px;
    box-shadow: 4px 4px 0 var(--ink);
    transition: transform .08s ease, box-shadow .08s ease;
}
.btn:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.btn:active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--ink); }

/* ---------- sections ---------- */
section { margin-top: 72px; }
h2 {
    font-family: var(--display); font-weight: 700; font-size: 29px;
    letter-spacing: -0.01em; margin: 0 0 16px 0;
    display: flex; align-items: baseline; gap: 12px;
}
h2 .hash { font-family: var(--mono); font-size: 17px; font-weight: 600; color: var(--orange-bright); letter-spacing: -0.08em; }

.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 24px 0 18px 0; }
.card {
    border: 1.5px dashed var(--dash); border-radius: 14px; background: rgba(255, 255, 255, 0.55);
    padding: 20px 22px; font-size: 16px; line-height: 1.55;
}
.card h3 {
    font-family: var(--mono); font-size: 15px; font-weight: 600;
    margin: 0 0 8px 0; color: var(--ink); display: flex; gap: 8px; align-items: baseline;
}
.card h3::before { content: '›'; color: var(--orange-bright); font-weight: 600; }
.card p { margin: 0; color: var(--ink-soft); }
.muted { color: var(--muted); }

.note {
    background: var(--orange-tint); border-radius: 14px; padding: 22px 26px; margin-top: 22px;
}
.note p { margin: 0; }
.note .note-tag { font-family: var(--mono); font-size: 12.5px; color: var(--orange); display: block; margin-bottom: 6px; }

.inline-link { color: var(--orange); }

/* ---------- posts ---------- */
.posts {
    list-style: none; margin: 22px 0 0 0; padding: 18px 22px;
    border: 1.5px dashed var(--dash); border-radius: 14px; background: rgba(255, 255, 255, 0.55);
    font-family: var(--mono); font-size: 14.5px;
    display: grid; gap: 12px;
}
.posts li { display: flex; gap: 16px; align-items: baseline; }
.posts .date { color: var(--faint); flex: none; font-size: 13px; }
.posts a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--underline); text-underline-offset: 3px; }
.posts a:hover { text-decoration-color: var(--orange); }
.posts .all a { color: var(--orange); text-decoration: none; }

/* ---------- get in touch ---------- */
.touch {
    margin-top: 80px; border: 2px solid var(--ink); border-radius: 18px;
    background: #fff; box-shadow: 6px 6px 0 var(--yellow);
    padding: 40px 44px; display: flex; gap: 32px; align-items: center; justify-content: space-between;
}
.touch-text h2 { margin-bottom: 10px; }
.touch-text p { margin: 0; max-width: 380px; color: var(--ink-soft); }

/* ---------- footer ---------- */
.site-footer {
    margin-top: 64px; font-family: var(--mono); font-size: 13px; color: var(--faint);
    display: flex; gap: 16px; justify-content: space-between; flex-wrap: wrap;
}
.site-footer a { color: var(--faint); }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
    .site-header { padding: 24px; }
    .hero { flex-direction: column-reverse; gap: 44px; }
    .polaroid-wrap { align-self: center; }
    .cards { grid-template-columns: 1fr; }
    .touch { flex-direction: column; align-items: flex-start; padding: 32px 28px; }
}
@media (max-width: 480px) {
    body { font-size: 16px; }
    section { margin-top: 56px; }
    .btn { width: 100%; text-align: center; }
    .posts li { flex-direction: column; gap: 2px; }
}
