/* rjpalombo.com — site styles */

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader-italic.woff2") format("woff2");
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
}

:root {
  --bg: #f6f4ef;
  --surface: #ffffff;
  --surface-2: #eeebe3;
  --ink: #13201c;
  --ink-2: #2c3a35;
  --muted: #5c6964;
  --line: #e1ddd2;
  --accent: #0d7a64;
  --accent-ink: #ffffff;
  --accent-soft: #dcefe8;
  --warm: #b4532a;
  --band: #12261f;
  --code-bg: #f1efe8;
  --tk-k: #8a3ffc;
  --tk-s: #0d7a3c;
  --tk-c: #7b827f;
  --tk-n: #b4532a;
  --tk-t: #1f5fbf;
  --tk-a: #9a5b00;
  --tk-y: #1d6f8a;
  --shadow: 0 1px 2px rgb(19 32 28 / 0.04), 0 8px 24px rgb(19 32 28 / 0.06);
  --radius: 14px;
  --radius-lg: 22px;
  --wrap: 1120px;
  --narrow: 720px;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Newsreader", Georgia, "Times New Roman", serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1110;
    --surface: #121a18;
    --surface-2: #18221f;
    --ink: #edf2ef;
    --ink-2: #c9d3cf;
    --muted: #92a09a;
    --line: #233230;
    --accent: #3ccfae;
    --accent-ink: #0b1110;
    --accent-soft: #12302a;
    --warm: #f08a5d;
    --band: #102720;
    --code-bg: #0f1715;
    --tk-k: #c4a7ff;
    --tk-s: #7ee2a8;
    --tk-c: #6f7d78;
    --tk-n: #f5a97f;
    --tk-t: #7cb7ff;
    --tk-a: #f0c674;
    --tk-y: #6fd3e8;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 8px 24px rgb(0 0 0 / 0.25);
    color-scheme: dark;
  }
}

*, *::before, *::after { 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(--ink);
  font: 400 17px/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
  color: var(--ink);
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 6vw, 4.6rem); letter-spacing: -0.025em; font-weight: 500; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.4rem); font-weight: 500; }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.25rem); color: var(--ink-2); max-width: 38em; }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.55em;
  font: 600 0.76rem/1 var(--font-body);
  letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 1.1rem;
}
.eyebrow::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: var(--warm); }

.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.wrap-narrow { width: min(100% - 32px, var(--narrow)); margin-inline: auto; }
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-tight { padding: clamp(36px, 5vw, 64px) 0; }
.section-head { max-width: 44rem; margin-bottom: clamp(24px, 4vw, 40px); }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--accent); color: var(--accent-ink);
  padding: 10px 16px; border-radius: 8px; font-weight: 600;
}
.skip:focus { top: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand-name { font: 600 1.3rem/1 var(--font-display); letter-spacing: -0.01em; }

.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px;
  color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: 0.96rem;
}
.nav-links a:hover { background: var(--surface-2); color: var(--ink); }
.nav-links a[aria-current="page"] { color: var(--ink); background: var(--surface-2); }
.nav-links .nav-out { color: var(--muted); margin-left: 6px; }
.nav-links .nav-out svg { width: 15px; height: 15px; }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line); border-radius: 10px;
  width: 44px; height: 44px; color: var(--ink); cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle svg { width: 22px; height: 22px; }

@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute; left: 0; right: 0; top: 68px;
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 12px 16px 20px; background: var(--bg);
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; font-size: 1.05rem; }
  .nav-links .nav-out { margin-left: 0; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; border: 1px solid transparent;
  font: 600 0.98rem/1.2 var(--font-body); text-decoration: none; cursor: pointer;
  transition: transform 0.15s, background 0.15s, border-color 0.15s;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn-primary { background: var(--accent); color: var(--accent-ink) !important; }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 86%, var(--ink)); }
.btn-ghost { background: transparent; color: var(--ink) !important; border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink-2); background: var(--surface); }
.btn-light { background: #f6f4ef; color: #12261f !important; }
.btn-light:hover { background: #fff; }
.btn svg { width: 18px; height: 18px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---------- Hero ---------- */
.hero { padding: clamp(36px, 6vw, 80px) 0 clamp(40px, 6vw, 72px); }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.hero h1 { margin-bottom: 0.35em; }
.hero-photo { margin: 0; position: relative; max-width: 460px; justify-self: end; width: 100%; }
.hero-photo picture { display: block; aspect-ratio: 4/5; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface-2); box-shadow: 0 30px 60px -24px rgb(19 32 28 / 0.35); transform: rotate(1.2deg); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo figcaption, .portrait-wrap figcaption {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 14px;
  font-size: 0.85rem; color: var(--muted);
}
.hero-photo figcaption svg, .portrait-wrap figcaption svg { width: 15px; height: 15px; color: var(--warm); }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-photo { justify-self: start; max-width: 420px; }
  .hero-photo picture { transform: none; }
}

/* ---------- Cards ---------- */
.grid { display: grid; gap: 20px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow); position: relative;
}
.card h3 { margin-bottom: 0.35em; }
.card p { color: var(--muted); margin-bottom: 0; }
a.card { display: flex; flex-direction: column; color: inherit; text-decoration: none; transition: transform 0.18s, border-color 0.18s; }
a.card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.card .more { margin-top: auto; padding-top: 18px; color: var(--accent); font-weight: 600; font-size: 0.95rem; display: inline-flex; align-items: center; gap: 6px; }
.card .more svg { width: 16px; height: 16px; transition: transform 0.18s; }
a.card:hover .more svg { transform: translateX(3px); }
.icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); margin-bottom: 18px;
}
.icon svg { width: 22px; height: 22px; }

/* ---------- Band ---------- */
.band {
  background: var(--band); color: #f6f4ef; border-radius: var(--radius-lg);
  padding: clamp(32px, 5vw, 56px); display: flex; flex-wrap: wrap; gap: 24px;
  align-items: center; justify-content: space-between; position: relative; overflow: hidden;
}
.band::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(80% 120% at 100% 0%, rgb(60 207 174 / 0.18), transparent 60%); }
.band h2 { color: #fff; margin: 0 0 6px; }
.band p { margin: 0; color: rgb(246 244 239 / 0.8); max-width: 34em; }
.band > * { position: relative; z-index: 1; }

/* ---------- Page header ---------- */
.page-head { padding: clamp(40px, 6vw, 88px) 0 clamp(24px, 4vw, 40px); }
.page-head h1 { font-size: clamp(2.3rem, 5vw, 3.8rem); max-width: 18ch; }
.back { display: inline-block; margin-bottom: 22px; font-size: 0.92rem; color: var(--muted); text-decoration: none; }
.back:hover { color: var(--accent); }

/* ---------- Post lists ---------- */
.posts { list-style: none; padding: 0; margin: 0; }
.post-row { display: grid; grid-template-columns: 7.5rem 1fr; gap: 20px; padding: 22px 0; border-top: 1px solid var(--line); }
.post-row:last-child { border-bottom: 1px solid var(--line); }
.post-row time { color: var(--muted); font-size: 0.9rem; padding-top: 6px; font-variant-numeric: tabular-nums; }
.post-link { font: 500 1.4rem/1.25 var(--font-display); color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.post-link:hover { color: var(--accent); }
.post-row p { margin: 6px 0 10px; color: var(--muted); font-size: 0.96rem; }
@media (max-width: 600px) { .post-row { grid-template-columns: 1fr; gap: 4px; } .post-row time { padding: 0; } }
.year-group + .year-group { margin-top: 36px; }
.year { font: 600 0.8rem/1 var(--font-body); letter-spacing: 0.12em; color: var(--muted); margin-bottom: 4px; }
.latest .more-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 22px; font-weight: 600; text-decoration: none; }
.latest .more-link svg { width: 16px; height: 16px; }

.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-2);
  font-size: 0.8rem; font-weight: 500; text-decoration: none;
}
a.tag:hover { border-color: var(--accent); color: var(--accent); }
.tag span { color: var(--muted); font-variant-numeric: tabular-nums; }
.tag.draft { background: color-mix(in srgb, var(--warm) 16%, var(--surface)); border-color: color-mix(in srgb, var(--warm) 40%, var(--line)); }
.blog-tools { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; margin-top: 28px; }
.blog-tools .tag { font-size: 0.88rem; padding: 6px 12px; }
.rss { display: inline-flex; align-items: center; gap: 6px; font-size: 0.92rem; font-weight: 600; color: var(--warm); text-decoration: none; }
.rss svg { width: 18px; height: 18px; }

/* ---------- Post ---------- */
.post-head { padding: clamp(36px, 6vw, 72px) 0 clamp(20px, 3vw, 32px); }
.post-head h1 { font-size: clamp(2.1rem, 5vw, 3.3rem); margin-bottom: 0.4em; }
.post-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: var(--muted); font-size: 0.95rem; margin-bottom: 14px; }

.note {
  display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; margin: 0 0 32px;
  border-radius: var(--radius); background: color-mix(in srgb, var(--warm) 9%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--warm) 28%, var(--line)); color: var(--ink-2); font-size: 0.95rem;
}
.note svg { width: 20px; height: 20px; flex: none; color: var(--warm); margin-top: 2px; }
.note b { color: var(--ink); }

.prose { max-width: var(--narrow); }
.post-body { font: 400 1.18rem/1.7 var(--font-display); color: var(--ink); }
.post-body p, .post-body li { overflow-wrap: anywhere; }
.prose h2 { font-size: 1.7rem; margin-top: 1.8em; }
.prose h3 { font-size: 1.3rem; margin-top: 1.5em; }
.post-body h2, .post-body h3 { font-family: var(--font-body); font-weight: 650; letter-spacing: -0.01em; }
.post-body h2 { font-size: 1.45rem; }
.post-body h3 { font-size: 1.15rem; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: 0.4em; }
.prose blockquote { margin: 1.5em 0; padding: 0.2em 0 0.2em 1.2em; border-left: 3px solid var(--accent); color: var(--ink-2); font-style: italic; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.5em 0; }
.prose figure { margin: 1.8em 0; }
.prose figure img { border-radius: 10px; border: 1px solid var(--line); background: #fff; max-height: 560px; width: auto; }
.prose figure a { display: inline-block; }
.prose figcaption { font: 400 0.88rem/1.4 var(--font-body); color: var(--muted); margin-top: 8px; }
.prose :not(pre) > code {
  font: 500 0.84em/1 var(--font-mono); background: var(--code-bg); border: 1px solid var(--line);
  padding: 2px 6px; border-radius: 6px; overflow-wrap: anywhere;
}

/* Code blocks */
.code { margin: 1.6em 0; border: 1px solid var(--line); border-radius: 12px; background: var(--code-bg); overflow: hidden; font-family: var(--font-body); }
.code-head { display: flex; justify-content: space-between; align-items: center; padding: 6px 8px 6px 14px; border-bottom: 1px solid var(--line); font-size: 0.75rem; color: var(--muted); letter-spacing: 0.04em; min-height: 36px; }
.copy { font: 600 0.75rem/1 var(--font-body); color: var(--ink-2); background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 6px 10px; cursor: pointer; }
.copy:hover { border-color: var(--accent); color: var(--accent); }
.code pre { margin: 0; padding: 16px 18px; overflow-x: auto; font: 400 0.84rem/1.6 var(--font-mono); tab-size: 4; color: var(--ink); }
.code code { font: inherit; }
.tk-k { color: var(--tk-k); font-weight: 600; }
.tk-s { color: var(--tk-s); }
.tk-c { color: var(--tk-c); font-style: italic; }
.tk-n { color: var(--tk-n); }
.tk-t { color: var(--tk-t); }
.tk-a { color: var(--tk-a); }
.tk-x { color: var(--tk-n); }
.tk-y { color: var(--tk-y); }

.byline { display: flex; gap: 14px; align-items: center; margin: 48px 0 0; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.byline img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; object-position: 50% 30%; }
.byline b { display: block; font-family: var(--font-display); font-size: 1.15rem; }
.byline span { color: var(--muted); font-size: 0.93rem; }

.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 28px 0 0; }
.pn { display: block; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); text-decoration: none; color: var(--ink); font: 500 1.05rem/1.3 var(--font-display); }
.pn span { display: block; font: 600 0.75rem/1 var(--font-body); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.pn:hover { border-color: var(--accent); }
.pn.next { text-align: right; grid-column: 2; }
@media (max-width: 600px) { .post-nav { grid-template-columns: 1fr; } .pn.next { grid-column: auto; text-align: left; } }

/* Comments */
.discussion { margin-top: 56px; }
.discussion > h2 { font-size: 1.6rem; margin-bottom: 6px; }
.comments, .replies { list-style: none; margin: 0; padding: 0; }
.comments { margin-top: 20px; }
.comment { padding: 18px 0 4px; border-top: 1px solid var(--line); }
.replies { margin-left: clamp(14px, 4vw, 32px); padding-left: clamp(12px, 3vw, 20px); border-left: 2px solid var(--line); }
.replies .comment { border-top: 0; padding-top: 10px; }
.comment-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; margin-bottom: 6px; }
.comment-meta b { font-weight: 600; }
.comment-meta b a { color: var(--ink); }
.comment-date { color: var(--muted); font-size: 0.85rem; text-decoration: none; }
.comment-date:hover { color: var(--accent); }
.badge-author { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); padding: 2px 7px; border-radius: 999px; }
.comment-body { color: var(--ink-2); font-size: 0.97rem; overflow-wrap: anywhere; }
.comment-body p { margin-bottom: 0.7em; }
.comment-body pre { background: var(--code-bg); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; overflow-x: auto; font: 0.82rem/1.55 var(--font-mono); }
.comment-body code { font-family: var(--font-mono); font-size: 0.88em; }
.comment-form { margin-top: 36px; }
.comment-form h2 { font-size: 1.4rem; margin-bottom: 4px; }

/* ---------- About ---------- */
.split { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.portrait-wrap { margin: 0; position: sticky; top: 96px; }
@media (max-width: 860px) { .portrait-wrap { position: static; max-width: 420px; } }
.portrait { display: block; aspect-ratio: 4/5; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface-2); box-shadow: var(--shadow); }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.split .prose h2 { font-size: 1.6rem; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 28px 0 8px; }
.facts div { border-top: 2px solid var(--accent); padding-top: 12px; }
.facts b { display: block; font: 500 1.4rem/1.2 var(--font-display); }
.facts span { color: var(--muted); font-size: 0.9rem; }
@media (max-width: 600px) { .facts { grid-template-columns: 1fr; } }

/* Hobbies */
.hobbies { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.hobby { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.hobby h3 { margin-bottom: 0.35em; }
.hobby p { color: var(--muted); margin: 0; }
.hobby-lg { grid-column: 1 / -1; display: flex; flex-direction: column; background: var(--band); border-color: var(--band); color: #f6f4ef; position: relative; overflow: hidden; }
.hobby-lg::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(90% 70% at 100% 100%, rgb(60 207 174 / 0.2), transparent 65%); }
.hobby-lg > * { position: relative; z-index: 1; }
.hobby-lg h3 { color: #fff; font-size: 1.8rem; font-weight: 500; }
.hobby-lg p { color: rgb(246 244 239 / 0.82); font-size: 1.05rem; }
.hobby-lg .icon { background: rgb(60 207 174 / 0.16); color: #3ccfae; }
.hobby-lg p { max-width: 46em; }
.hobby-fact { margin-top: auto; padding-top: 20px; font: 500 0.82rem/1 var(--font-body); letter-spacing: 0.1em; text-transform: uppercase; color: #3ccfae; }
@media (max-width: 640px) { .hobbies { grid-template-columns: 1fr; } }
.hobby-wide { grid-column: 1 / -1; }
.tinker-head { display: flex; gap: 18px; align-items: flex-start; max-width: 50em; }
.tinker-head .icon { flex: none; margin: 0; }
.tinker-head p { margin-top: 2px; }
.tinker-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 32px; margin-top: 26px; padding-top: 24px; border-top: 1px solid var(--line); }
.tinker-grid h4 { display: flex; align-items: center; gap: 8px; font: 600 1rem/1.3 var(--font-body); margin-bottom: 6px; }
.tinker-grid h4 svg { width: 18px; height: 18px; color: var(--accent); }
.tinker-grid p { font-size: 0.95rem; }
.tinker-foot { margin-top: 22px !important; padding-top: 18px; border-top: 1px solid var(--line); font-size: 0.95rem; }
@media (max-width: 640px) { .tinker-grid { grid-template-columns: 1fr; } }

.archive-box {border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.archive-box summary { list-style: none; cursor: pointer; display: flex; gap: 14px; align-items: center; padding: 18px 20px; position: relative; padding-right: 48px; }
.archive-box summary::-webkit-details-marker { display: none; }
.archive-box summary svg { width: 22px; height: 22px; color: var(--warm); flex: none; }
.archive-box summary b { display: block; font: 600 1.15rem/1.3 var(--font-display); }
.archive-box summary small { color: var(--muted); font-size: 0.88rem; }
.archive-box summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg); transition: transform 0.2s; }
.archive-box[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.archive-body { padding: 4px 22px 22px; font: 400 1.08rem/1.65 var(--font-display); color: var(--ink-2); }
.archive-body::after { content: ""; display: block; clear: both; }
.archive-photo { float: left; width: 140px; margin: 6px 20px 10px 0; border-radius: 8px; }
.archive-body ul { clear: both; }
.badges { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 18px; }
.badges img { width: 120px; }
@media (max-width: 520px) { .archive-photo { float: none; margin: 6px 0 14px; } }

/* ---------- Forms ---------- */
.form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.field label, .field legend { display: block; font-weight: 600; font-size: 0.92rem; margin-bottom: 6px; color: var(--ink); }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--bg); color: var(--ink);
  font: inherit; font-size: 1rem;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
fieldset.field { border: 0; padding: 0; margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { margin: 0; font-weight: 500; cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: inline-block; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); }
.chips input:checked + span { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.chips input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-status { display: none; padding: 14px 16px; border-radius: 12px; font-weight: 500; }
.form-status.ok { display: block; background: color-mix(in srgb, var(--accent) 12%, var(--surface)); color: var(--ink); border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--line)); }
.form-status.err { display: block; background: color-mix(in srgb, #d93f2b 12%, var(--surface)); color: var(--ink); border: 1px solid color-mix(in srgb, #d93f2b 40%, var(--line)); }
.form button[disabled] { opacity: 0.6; cursor: progress; }

.contact-grid { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-aside .card + .card { margin-top: 16px; }
.contact-aside h3 { font-size: 1.15rem; margin-bottom: 4px; }
.contact-aside .icon { margin-bottom: 14px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 52px 0 36px; margin-top: clamp(40px, 7vw, 88px); font-size: 0.95rem; }
.foot-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > :first-child { grid-column: 1 / -1; } }
.site-footer h4 { font: 600 0.78rem/1 var(--font-body); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--ink-2); text-decoration: none; }
.site-footer a:hover { color: var(--accent); text-decoration: underline; }
.foot-tag { color: var(--muted); max-width: 26em; margin-top: 14px; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.86rem; }
