/* Newsreader — self-hosted (was Google Fonts) */
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(fonts/newsreader-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(fonts/newsreader-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/newsreader-italic-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/newsreader-italic-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Layout + page classes for aleravanetti.com. Tokens come from styles.css. */
/* Palette: two tones of paper, ink, one yellow for action, near-black for the statement.
   #f1efe7 paper · #e8e5db panel · #272625 ink · #ffcd29 yellow · #2a2929 near-black */
:root {
  --color-bg: #f1efe7;
  --color-surface: #e8e5db;
  --color-text: #272625;
  --color-divider: #c9c8c0;
  --color-neutral-200: #dedcd3;
  --color-neutral-700: #66655e;
  --color-neutral-800: #45443e;
  --color-neutral-900: #2f2e2a;
  /* yellow is a field colour: it fills buttons and underlines links, never sets type */
  --color-accent: #ffcd29;
  --color-accent-100: #fff6da;
  --color-accent-200: #ffe9a6;
  --color-accent-400: #ffd950;
  --color-accent-600: #ecb800;
  --color-accent-700: #272625;
  --color-accent-900: #272625;
  --ink-box: #2a2929;
  --serif: Plantin, "Newsreader", "Book Antiqua", Georgia, "Times New Roman", serif;
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  /* the design system's Archivo tokens are repointed so .btn, .card and .nav follow */
  --font-heading: var(--sans);
  --font-body: var(--sans);
  --font-heading-weight: 600;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--color-bg); color: var(--color-text); font-family: var(--font-body); }
img { max-width: 100%; display: block; }
a { color: var(--color-text); text-decoration: underline; text-decoration-color: var(--color-accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--color-text); background: var(--color-accent-100); text-decoration-color: var(--color-accent-600); }
.brand, .site-nav a, .site-nav .cta { text-decoration: none; }
.site-nav a:hover { background: none; text-decoration: none; }
*:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }

.page { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
/* the footer draws its own top rule, so the last section must not draw one too */
main > section:last-child { border-bottom: 0; }
@media print {
  .page { min-height: 0; }
  .site-head { position: static; }
  .marquee-track { animation: none; }
}
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 40px); }
.sec { border-bottom: 2px solid var(--color-text); }
.sec-pad { padding-top: clamp(48px, 7vw, 72px); padding-bottom: clamp(48px, 7vw, 72px); }
.surface { background: var(--color-surface); }
.statement { background: var(--ink-box); color: var(--color-bg); border-top: 2px solid var(--color-text); border-bottom: 2px solid var(--color-text); }
.statement .kicker, .statement h2 { color: var(--color-bg); }
.statement p { color: #c6c4bd; }
/* the label sits on its own row, so headline and body share a first baseline */
.statement-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 0 clamp(40px, 6vw, 72px); align-items: baseline; }
.statement-grid .kicker { grid-column: 1 / -1; margin: 0 0 28px; color: var(--color-accent); }
.statement-head { margin: 0; font-size: clamp(28px, 3.4vw, 44px); line-height: 1.06; letter-spacing: -0.02em; max-width: 28ch; }
.statement-body { display: grid; gap: 18px; }
.statement-body p { margin: 0; font-family: var(--serif); font-size: 18px; line-height: 1.55; max-width: 42ch; }
@media (max-width: 860px) { .statement-grid { grid-template-columns: 1fr; } .statement-body { margin-top: 32px; } }

/* header */
.site-head { position: sticky; top: 0; z-index: 20; background: var(--color-bg); border-bottom: 2px solid var(--color-text); }
.site-head .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 28px; min-height: 76px; padding-top: 10px; padding-bottom: 10px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--serif); font-weight: 500; font-size: 21px; letter-spacing: -0.005em; color: var(--color-text); }
.brand:hover { color: var(--color-text); text-decoration: underline; text-decoration-color: var(--color-accent); text-decoration-thickness: 2px; text-underline-offset: 4px; }
/* The header mark is images/headshot.jpg. If that file is missing, the img
   drops .brand-img and falls back to the small accent square below. */
.brand-mark { width: 14px; height: 14px; flex: none; background: var(--color-accent); display: block; }
.brand-img { width: 36px; height: 36px; background: none; border: 0; object-fit: cover; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.site-nav a { font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: 0.11em; text-transform: uppercase; color: var(--color-text); padding: 11px 12px; border-bottom: 3px solid transparent; }
.site-nav a:hover { color: var(--color-text); border-bottom-color: var(--color-accent-200); text-decoration: none; }
.site-nav a[aria-current="page"] { border-bottom-color: var(--color-accent); }
.btn { white-space: nowrap; }
.site-nav .cta { white-space: nowrap; }

/* mobile: burger nav — the panel drops under the header, current page keeps its yellow mark */
.nav-toggle { display: none; }
@media (max-width: 640px) {
  .site-head .wrap { flex-wrap: nowrap; min-height: 66px; }
  .brand { font-size: 19px; gap: 10px; white-space: nowrap; }
  .nav-toggle { display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; margin-right: -10px; padding: 0 9px; background: none; border: 0; cursor: pointer; }
  .nav-toggle span { display: block; height: 2px; background: var(--color-text); transition: transform 0.18s ease, opacity 0.18s ease; }
  .site-head.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .site-head.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .site-head.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 0 clamp(20px, 4vw, 40px) 10px; background: var(--color-bg); border-bottom: 2px solid var(--color-text); }
  .site-head.nav-open .site-nav { display: flex; }
  .site-nav a { padding: 17px 0; border-bottom: 0; border-top: 2px solid var(--color-divider); }
  .site-nav a:hover { border-bottom-color: transparent; }
  .site-nav a[aria-current="page"] { border-bottom-color: transparent; border-left: 3px solid var(--color-accent); padding-left: 13px; }
}
@media (max-width: 400px) {
  .brand { font-size: 16.5px; }
  .brand-img { width: 32px; height: 32px; }
}

/* type — serif carries the editorial text, the grotesque carries the chrome */
h1, h2, h3, h4, h5, h6 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.005em; font-optical-sizing: auto; }
.kicker { margin: 0 0 22px; font-family: var(--sans); font-size: 11.5px; font-weight: 600; letter-spacing: 0.13em; text-transform: uppercase; color: var(--color-neutral-700); }
.h-hero { margin: 0; font-size: clamp(40px, 6.6vw, 92px); line-height: 1.02; letter-spacing: -0.02em; max-width: 24ch; text-wrap: balance; }
.h-page { margin: 0; max-width: 24ch; font-size: clamp(31px, 3.8vw, 50px); line-height: 1.12; letter-spacing: -0.01em; }
.h-sec { margin: 0; font-size: clamp(25px, 2.8vw, 33px); }
.lede { margin: 28px 0 0; max-width: 34em; font-family: var(--serif); font-size: 19px; line-height: 1.5; color: var(--color-neutral-800); text-wrap: pretty; }
.body { font-family: var(--serif); font-size: 18px; line-height: 1.55; color: var(--color-neutral-800); max-width: 40em; }
.small { font-family: var(--serif); font-size: 16px; line-height: 1.5; color: var(--color-neutral-800); }
.meta { font-family: var(--sans); font-size: 11.5px; font-weight: 600; letter-spacing: 0.11em; text-transform: uppercase; color: var(--color-neutral-700); }

/* actions */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
/* CTAs use the design system's .btn / .btn-primary / .btn-secondary from styles.css.
   Only the size is bumped here for page-level calls to action. */
.actions .btn, .btn.cta-lg { font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: 0.11em; text-transform: uppercase; padding: 16px 24px; min-height: 0; }
.btn-primary { background: var(--color-accent); color: var(--color-text); border: 0; }
.btn-primary:hover { background: var(--color-accent-600); color: var(--color-text); }
.btn-secondary { background: var(--color-neutral-200); color: var(--color-text); border: 0; }
.btn-secondary:hover { background: var(--color-accent-200); color: var(--color-text); }

/* grids */
.grid { display: grid; }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g5 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr)); }
@media (max-width: 1000px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px)  { .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 780px)  { .g2 { grid-template-columns: 1fr; } .g3 { grid-template-columns: 1fr; } }
@media (max-width: 620px)  { .g4 { grid-template-columns: 1fr; } }
.ruled { gap: 2px; background: var(--color-divider); }
.ruled > * { background: var(--color-bg); padding: 28px 24px; }
.split { display: flex; flex-wrap: wrap; gap: 0 clamp(24px, 4vw, 56px); }
/* home hero: headline runs the full measure, supporting copy sits under it */
.hero { padding-top: clamp(52px, 8vw, 96px); padding-bottom: clamp(44px, 6vw, 72px); }
.hero-foot { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px clamp(40px, 6vw, 80px); align-items: baseline; margin-top: clamp(36px, 5vw, 60px); padding-top: clamp(28px, 4vw, 40px); border-top: 2px solid var(--color-divider); }
@media (max-width: 820px) { .hero-foot { grid-template-columns: 1fr; align-items: start; } }
.hero-foot .lede { margin: 0; max-width: 42ch; font-size: 20px; }
.hero-foot .lede-sub { max-width: none; font-size: 17px; line-height: 1.55; color: var(--color-neutral-700); }
.hero-foot .actions { margin: 0; grid-column: 1 / -1; }
.split > .main { flex: 1 1 min(100%, 440px); padding: clamp(48px, 7vw, 72px) 0; }
.split > .side { flex: 1 1 min(100%, 250px); padding: clamp(48px, 7vw, 72px) 0; }
.split > .side-wide { flex: 1 1 min(100%, 400px); padding: 0 0 clamp(48px, 7vw, 72px); }
.rows > * { display: grid; grid-template-columns: 240px minmax(0, 1fr) 180px; gap: 12px 32px; padding: 26px 0; border-bottom: 2px solid var(--color-divider); align-items: baseline; }
/* work rows read name | scale | description, so they override the generic tracks */
.rows > .work-row { grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: 12px clamp(28px, 4vw, 56px); }
.work-name { margin: 0; font-family: var(--serif); font-weight: 600; font-size: 19px; }
.work-scale { margin: 8px 0 0; font-family: var(--sans); font-size: 11.5px; font-weight: 700; letter-spacing: 0.11em; text-transform: uppercase; color: var(--color-neutral-700); }
.pair { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 24px 56px; padding: 56px 0; }
@media (max-width: 860px) { .rows > *, .pair { grid-template-columns: 1fr; } .rows > * { gap: 8px; } .rows > .work-row { grid-template-columns: 1fr; gap: 8px; } }
.pair + .pair { border-top: 2px solid var(--color-divider); }
.ticks { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.ticks li { font-family: var(--serif); font-size: 16px; padding-left: 18px; border-left: 3px solid var(--color-accent); }
.plainlist { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; font-family: var(--serif); font-size: 16px; line-height: 1.5; }
.portrait { width: 200px; height: 250px; background: var(--color-neutral-200); }
.portrait img { width: 100%; height: 100%; object-fit: cover; }

/* marquee */
.marquee-label { padding-top: 28px; }
.marquee { overflow: hidden; }
.marquee-track { display: flex; align-items: center; padding: 14px 0 20px; width: max-content; animation: marquee 60s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group { display: flex; align-items: center; font-family: var(--sans); font-weight: 600; font-size: 13px; letter-spacing: 0.02em; white-space: nowrap; }
.marquee-group span { display: flex; align-items: center; justify-content: center; padding: 0 24px; border-left: 2px solid var(--color-divider); min-height: 40px; }
.marquee-group img { width: auto; height: auto; max-width: 132px; max-height: 27px; object-fit: contain; }
.marquee-group .lw img { max-width: 176px; max-height: 23px; }
.marquee-group .lt img { max-width: 88px; max-height: 33px; }
.marquee-group span.noimg img { display: none; }
.marquee-group span:not(.noimg) b { display: none; }
.marquee-group b { font-weight: 600; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* quotes + wall */
.quote { display: flex; flex-direction: column; }
.quote p { margin: 0 0 24px; font-family: var(--serif); font-size: 17px; line-height: 1.55; color: var(--color-neutral-900); text-wrap: pretty; }
.quote .attrib { display: flex; align-items: center; gap: 12px; }
.quote .face { width: 44px; height: 44px; flex: none; border-radius: 50%; object-fit: cover; background: var(--color-neutral-200); }
.quote .attrib.noimg .face { display: none; }
.quote .who { margin: 0; font-family: var(--serif); font-weight: 600; font-size: 18px; }
.quote .org { margin: 3px 0 0; font-family: var(--sans); font-size: 11.5px; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; color: var(--color-neutral-700); }
.wall > * { font-family: var(--sans); font-weight: 600; font-size: 13px; padding: 22px 16px; }

/* forms */
/* Fields are the design system's .field + .input from styles.css. */
form.contact { display: grid; gap: 20px; max-width: 34em; }
form.contact .input { font-size: 16px; min-height: 44px; padding: 10px 12px; }
form.contact textarea.input { min-height: 140px; }

/* blog */
.prose { max-width: 38em; }
.prose h2 { margin: 44px 0 14px; font-size: 26px; }
.prose h3 { margin: 32px 0 12px; font-size: 20px; }
.prose p { margin: 0 0 20px; font-family: var(--serif); font-size: 19px; line-height: 1.6; }
.prose ul, .prose ol { margin: 0 0 20px; padding-left: 22px; font-size: 18px; line-height: 1.65; }
.prose li { margin-bottom: 8px; }
.prose blockquote { margin: 32px 0; padding-left: 24px; border-left: 2px solid var(--color-accent); font-size: 20px; line-height: 1.5; }
.prose figure { margin: 32px 0; }
.prose figcaption { margin-top: 10px; font-size: 14px; color: var(--color-neutral-700); }
.postlist a { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 180px; gap: 12px 32px; padding: 26px 0; border-bottom: 2px solid var(--color-divider); color: var(--color-text); align-items: baseline; }
.postlist a:hover { color: var(--color-text); text-decoration: none; background: var(--color-accent-100); }
.postlist h2 { margin: 0; font-size: 21px; }

/* footer */
.site-foot { border-top: 2px solid var(--color-text); background: var(--color-surface); }
.site-foot .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-top: clamp(28px, 4vw, 40px); padding-bottom: clamp(28px, 4vw, 40px); }
.site-foot p { margin: 0; font-family: var(--sans); font-size: 12px; color: var(--color-neutral-700); }
.foot-links { display: flex; flex-wrap: wrap; gap: 24px; font-family: var(--sans); font-size: 12px; font-weight: 600; }
@media (max-width: 860px) { .postlist a { grid-template-columns: 1fr; gap: 8px; } }
