/* chatzimanolis.com. Shared by static pages and the PHP contact response. */
@font-face {
  font-family: "Newsreader";
  src: url("/assets/fonts/newsreader-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("/assets/fonts/newsreader-italic-latin.woff2") format("woff2");
  font-style: italic;
  font-weight: 300 500;
  font-display: swap;
}
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/assets/fonts/bricolage-grotesque-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 75% 100%;
  font-display: swap;
}

:root {
  color-scheme: light;
  --navy: #172E44;
  --navy-deep: #10243A;
  --paper: #F6F3ED;
  --rule: #CED7DF;
  --soft: #526577;
  --accent: #245C90;
  --wash: #E4EBF1;
  --on-navy: #CDD9E4;
  --on-navy-strong: #F6F3ED;
  --light-accent: #B9D6F2;
  --error: #9B3026;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: 48px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--navy);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 5px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
[id] { scroll-margin-top: 28px; }
h1, h2, h3 {
  margin: 0;
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.025em;
  text-wrap: pretty;
}
h1 { font-size: clamp(42px, 4.8vw, 66px); }
h2 { font-size: clamp(34px, 3.4vw, 44px); }
h3 { font-size: 29px; }
p { margin: 0 0 18px; }
p:last-child { margin-bottom: 0; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }
.skip {
  position: absolute; left: 16px; top: -80px; z-index: 40;
  background: var(--navy); color: #fff; padding: 12px 16px; font-size: 15px;
}
.skip:focus { top: 12px; outline-color: var(--navy); }
.site-header {
  display: flex; justify-content: space-between; align-items: center;
  gap: 24px; padding-top: 28px; padding-bottom: 28px; position: relative;
  font-size: 15px;
}
.site-header::after { content: ""; position: absolute; bottom: 0; left: var(--gutter); right: var(--gutter); border-bottom: 1px solid var(--rule); }
.brand { font-size: 17px; font-weight: 600; letter-spacing: -0.02em; text-decoration: none; }
.site-header nav { display: flex; flex-wrap: wrap; gap: 8px 27px; }
.site-header nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--soft); text-decoration: none; }
.site-header nav a:hover, .site-header nav a[aria-current="page"] { color: var(--navy); text-decoration: underline; }
.site-header nav a.nav-write { color: var(--navy); text-decoration: underline; }
.kicker { font: 600 12px/1.5 var(--sans); text-transform: uppercase; letter-spacing: 0.12em; color: var(--accent); margin: 0 0 16px; }
.lead { color: var(--soft); font-size: 18px; line-height: 1.7; }
.text-link { display: inline-block; font-size: 15px; font-weight: 500; }
.btn {
  display: inline-flex; justify-content: center; align-items: center; gap: 18px;
  min-height: 48px; padding: 13px 22px; border: 0; border-radius: 0;
  background: var(--navy); color: #fff; font: 500 15px/1.5 var(--sans);
  text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--navy-deep); }
.btn-outline { border: 1px solid var(--navy); background: transparent; color: var(--navy); }
.btn-outline:hover { background: var(--wash); }
.btn[disabled] { opacity: 0.7; cursor: progress; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 28px; margin-top: 30px; }
.hero { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, .85fr); gap: 56px; align-items: center; padding-top: 64px; padding-bottom: 60px; }
.hero h1 { max-width: 16ch; margin-bottom: 26px; }
.hero h1 em { font-weight: 400; color: var(--accent); }
.hero .lead { max-width: 50ch; }
.portrait { margin: 0; }
.portrait img { width: 100%; }
.hero-portrait { background: var(--wash); padding: 28px 16px 0; }
.home-section { padding-top: 72px; padding-bottom: 72px; }
.hero + .home-section { padding-top: 40px; }
.section-head { display: grid; grid-template-columns: 1fr 1.2fr; gap: 72px; align-items: start; }
.section-head h2 { max-width: 18ch; }
.section-copy { color: var(--soft); }
.belief-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; list-style: none; padding: 0; margin: 44px 0 0; }
.belief-list li { padding-top: 20px; border-top: 1px solid var(--rule); }
.belief-list h3 { font-size: 28px; margin-bottom: 14px; }
.belief-list li > span { display: block; font-size: 15px; line-height: 1.75; color: var(--soft); }
.story-note { border-top: 1px solid var(--rule); margin-top: 36px; padding-top: 22px; color: var(--soft); font-size: 15px; max-width: 78ch; }
/* Explicit foregrounds prevent inherited light-page colors on dark backgrounds. */
.speaking-band, .speaking-sample { background: var(--navy-deep); color: var(--on-navy-strong); }
.speaking-band { padding: 64px 0; }
.speaking-band h2, .speaking-band h3, .speaking-band a,
.speaking-sample h2, .speaking-sample h3, .speaking-sample a { color: var(--on-navy-strong); }
.speaking-band p, .speaking-band .section-copy, .speaking-sample p { color: var(--on-navy); }
.speaking-band .kicker, .speaking-sample .kicker { color: var(--light-accent); }
.speaking-band :focus-visible, .speaking-sample :focus-visible, .consent :focus-visible { outline-color: var(--light-accent); }
.topic-list { list-style: none; padding: 0; margin: 36px 0 0; }
.topic-list li { border-top: 1px solid #536C85; }
.topic-list a { display: flex; justify-content: space-between; gap: 24px; padding: 21px 0; font: 400 29px/1.2 var(--serif); text-decoration: none; }
.topic-list a:hover { text-decoration: underline; }
.topic-list a > span { color: var(--light-accent); flex-shrink: 0; }
.speaking-bottom { display: grid; grid-template-columns: 1fr 1.2fr; gap: 72px; margin-top: 28px; align-items: center; }
.speaking-bottom > div > a { color: var(--light-accent); }
.speaking-bottom > div > p { font-size: 14px; margin-top: 8px; }
.episode { display: grid; grid-template-columns: 84px 1fr; align-content: start; gap: 5px 20px; text-decoration: none; }
.episode img { grid-row: 1 / span 3; width: 84px; align-self: center; }
.episode-show { color: var(--on-navy); font-size: 12px; }
.episode-title { font-family: var(--serif); font-size: 20px; line-height: 1.3; }
.episode-cta { font-size: 13px; text-decoration: underline; color: var(--light-accent); }
.project-head { display: flex; justify-content: space-between; gap: 28px; align-items: end; }
.project-head > a { flex-shrink: 0; }
.making .sub { color: var(--soft); max-width: 64ch; margin: 22px 0 34px; }
.selected-projects { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 56px; }
.selected-projects article { border-top: 1px solid var(--rule); padding-top: 20px; }
.meta { color: var(--soft); font-size: 13px; }
.selected-projects .meta { margin-bottom: 10px; }
.selected-projects h3 { margin-bottom: 12px; }
.selected-projects h3 a { text-decoration: none; }
.selected-projects h3 a:hover { text-decoration: underline; }
.selected-projects h3 span { font: 400 18px var(--sans); color: var(--accent); }
.selected-projects article > p:last-child { font-size: 15px; color: var(--soft); max-width: 48ch; }
/* Contact: the DOM contract and progressive enhancement remain unchanged. */
.write { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; border-top: 1px solid var(--rule); padding: 48px 0 80px; margin-top: 20px; }
.write .intro > p { color: var(--soft); margin: 18px 0 0; }
.write .intro > .kicker { color: var(--accent); margin: 0 0 16px; }
.write .elsewhere { font-size: 14px; }
.contact-form label.field-label { display: block; font-size: 14px; color: var(--soft); margin-top: 18px; }
.contact-form label.field-label:first-child { margin-top: 0; }
.field { display: block; width: 100%; border: 0; border-bottom: 1px solid #7B8D9B; border-radius: 0; background: transparent; padding: 10px 2px 12px; font: inherit; font-size: 17px; color: var(--navy); }
.field:focus { border-bottom-color: var(--navy); }
.field[aria-invalid="true"] { border-bottom-color: var(--error); }
textarea.field { resize: vertical; min-height: 120px; }
.field-error { color: var(--error); font-size: 14px; margin: 6px 0 0; }
.field-error:empty, .form-status:empty { display: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact-form .btn { margin-top: 24px; }
.form-status { font-size: 15px; margin: 16px 0 0; }
.form-status.is-error, .result-errors { color: var(--error); }
/* Inner pages */
.page-head > .btn { margin-top: 26px; }
.about-head .lead + p { color: var(--soft); margin-top: 18px; }
.topic-copy .takeaway { padding-left: 18px; border-left: 2px solid var(--accent); font-size: 15px; color: var(--navy); }
.topic-copy .takeaway strong { display: block; margin-bottom: 6px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.page-head { padding-top: 64px; padding-bottom: 56px; }
.page-head h1 { max-width: 20ch; }
.page-head .lead { max-width: 60ch; margin: 24px 0 0; }
.page-head > p:not(.kicker):not(.lead) { max-width: 65ch; color: var(--soft); margin-top: 16px; }
.about-head { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 72px; align-items: center; padding-top: 64px; padding-bottom: 64px; }
.about-head h1 { font-size: 54px; max-width: 19ch; }
.about-head .lead { max-width: 54ch; margin: 24px 0 0; }
.section { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 64px; padding: 48px 0; border-top: 1px solid var(--rule); }
.section h2 { font-size: 32px; }
.section .body { color: var(--soft); }
.section .body p { max-width: 65ch; }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--rule); }
.timeline li:first-child { padding-top: 0; }
.timeline li:last-child { border-bottom: 0; padding-bottom: 0; }
.timeline .when { color: var(--accent); font-size: 14px; }
.timeline .what { font-weight: 500; margin-bottom: 6px; }
.timeline p { font-size: 15px; color: var(--soft); }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 40px; margin: 0; }
.facts dt { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.facts dd { font-size: 15px; color: var(--soft); margin: 0; }
.plain-list { margin: 0; padding-left: 20px; color: var(--soft); }
.plain-list li + li { margin-top: 8px; }
.topic-detail { display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; padding: 32px 0; border-top: 1px solid var(--rule); }
.topic-detail h3 { max-width: 23ch; font-size: 32px; }
.topic-copy { color: var(--soft); }
.audience { font-size: 14px; }
.audience strong { color: var(--accent); font-weight: 500; }
.speaking-sample { display: grid; grid-template-columns: minmax(0, 1fr) 180px; gap: 56px; padding: 40px; margin: 32px 0 56px; align-items: center; }
.speaking-sample h2 { font-size: 36px; margin-bottom: 20px; }
.speaking-sample img { width: 100%; }
/* Project descriptions and screenshots get their own space at every width. */
.category { font: 600 12px/1.5 var(--sans); color: var(--accent); text-transform: uppercase; letter-spacing: .12em; border-top: 1px solid var(--navy); margin: 0; padding: 24px 0 8px; }
.category.later { margin-top: 44px; }
.project { display: grid; grid-template-columns: minmax(0, 1fr) 180px; column-gap: 56px; row-gap: 20px; padding: 28px 0 36px; border-bottom: 1px solid var(--rule); }
.project > div:first-child { grid-column: 1; }
.project h3 { font-size: 34px; }
.project .meta { margin-top: 10px; margin-bottom: 0; }
.project .desc { grid-column: 1; color: var(--soft); }
.project .desc p { max-width: 65ch; }
.project .desc .role { font-size: 14px; }
.project .text-link { color: var(--navy); }
.project .shot { grid-column: 2; grid-row: 1 / span 2; margin: 0; align-self: start; }
.project .shot img { width: 100%; height: auto; border: 1px solid var(--rule); }
.project.product { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.project.product .shot { align-self: center; }
.project figcaption { color: var(--soft); font-size: 12px; margin-top: 10px; }
.project.past h3 { color: var(--soft); }
.project.past .shot { max-width: 120px; justify-self: end; }
.prose { max-width: 680px; padding-bottom: 72px; }
.prose h2 { font-size: 30px; margin: 38px 0 16px; }
.prose p, .prose li { color: var(--soft); }
.prose ul { padding-left: 20px; }
.result { max-width: 860px; padding-top: 64px; padding-bottom: 80px; }
.result h1 { font-size: 48px; margin-bottom: 24px; }
/* Footer and consent */
.site-footer { color: var(--soft); font-size: 13px; }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px 24px; padding-bottom: 36px; }
.footer-inner::before { content: ""; flex-basis: 100%; border-top: 1px solid var(--rule); margin-bottom: 8px; }
.site-footer ul { display: flex; flex-wrap: wrap; gap: 10px 20px; list-style: none; margin: 0; padding: 0; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.linklike { padding: 0; border: 0; background: none; font: inherit; color: inherit; cursor: pointer; }
.linklike:hover { text-decoration: underline; }
.consent {
  position: fixed; left: 16px; bottom: 16px; z-index: 30;
  width: calc(100% - 32px); max-width: 560px;
  max-height: calc(100dvh - 32px); overflow-y: auto;
  padding: 20px 24px; background: var(--navy-deep); color: var(--on-navy-strong);
  border: 1px solid #74899C; box-shadow: 0 8px 32px rgb(16 36 58 / 20%);
  font-size: 14px; line-height: 1.6;
}
.consent[hidden] { display: none; }
.consent p { margin-bottom: 16px; }
.consent a { color: var(--light-accent); }
.consent-actions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.consent-actions button { min-height: 44px; border: 1px solid var(--on-navy); background: transparent; color: #fff; font: inherit; cursor: pointer; }
.consent-actions button:hover { background: #203D5A; }
@media (max-width: 1000px) {
  :root { --gutter: 32px; }
  .site-header nav { column-gap: 20px; }
  .hero { gap: 32px; }
  .hero h1 { font-size: 54px; }
  .section-head, .speaking-bottom { gap: 40px; }
  .belief-list { gap: 26px; }
  .section { grid-template-columns: 210px minmax(0, 1fr); gap: 40px; }
  .about-head { grid-template-columns: minmax(0, 1fr) 230px; gap: 40px; }
  .about-head h1 { font-size: 46px; }
  .topic-detail { gap: 40px; }
  .write { gap: 40px; }
  .project { column-gap: 32px; }
  .project.product { grid-template-columns: 1fr; }
  .project.product .shot { grid-column: 1; grid-row: auto; width: 100%; max-width: 680px; }
}
@media (max-width: 700px) {
  :root { --gutter: 22px; }
  body { font-size: 16px; }
  .site-header { flex-direction: column; align-items: start; gap: 8px; padding-top: 20px; padding-bottom: 14px; }
  .brand { font-size: 16px; }
  .site-header nav { width: 100%; justify-content: space-between; column-gap: 12px; font-size: 13px; }
  .hero { grid-template-columns: 1fr; padding-top: 38px; padding-bottom: 38px; gap: 30px; }
  .hero h1 { font-size: 46px; max-width: 16ch; }
  .hero .kicker { max-width: 32ch; }
  .hero .lead { font-size: 16px; }
  .hero-portrait { width: 210px; justify-self: end; padding: 14px 10px 0; }
  .actions { gap: 22px; }
  .home-section { padding-top: 48px; padding-bottom: 48px; }
  .section-head, .belief-list, .speaking-bottom, .selected-projects, .write, .about-head, .section, .topic-detail { grid-template-columns: 1fr; gap: 24px; }
  .section-head h2 { max-width: 20ch; }
  .belief-list { margin-top: 30px; gap: 28px; }
  .belief-list h3 { font-size: 27px; }
  .speaking-band { padding: 44px 0; }
  .topic-list { margin-top: 28px; }
  .topic-list a { font-size: 26px; padding: 20px 0; gap: 14px; }
  .speaking-bottom { margin-top: 30px; gap: 32px; }
  .episode { grid-template-columns: 72px 1fr; gap: 4px 16px; }
  .episode img { width: 72px; }
  .episode-title { font-size: 19px; }
  .project-head { flex-direction: column; align-items: start; gap: 20px; }
  .selected-projects { gap: 28px; }
  .selected-projects h3 { font-size: 28px; }
  .write { padding: 36px 0 56px; margin-top: 4px; gap: 30px; }
  .contact-form .btn { width: 100%; }
  .page-head { padding-top: 40px; padding-bottom: 40px; }
  .page-head h1, .about-head h1 { font-size: 42px; }
  .about-head { padding-top: 40px; padding-bottom: 40px; }
  .about-head .portrait { max-width: 190px; justify-self: end; }
  .section { padding: 32px 0; }
  .section h2 { font-size: 30px; }
  .timeline li { grid-template-columns: 72px minmax(0, 1fr); gap: 16px; }
  .facts { grid-template-columns: 1fr; gap: 24px; }
  .topic-detail { padding: 28px 0; gap: 18px; }
  .topic-detail h3 { font-size: 30px; }
  .speaking-sample { grid-template-columns: 1fr; gap: 28px; padding: 28px 24px; margin: 20px 0 40px; }
  .speaking-sample img { max-width: 140px; }
  .speaking-sample h2 { font-size: 32px; }
  .project { grid-template-columns: minmax(0, 1fr) 96px; gap: 18px 20px; padding: 24px 0 32px; }
  .project h3 { font-size: 28px; }
  .project .desc { grid-column: 1 / -1; }
  .project .shot { grid-row: 1; }
  .project.product .shot { max-width: none; }
  .category.later { margin-top: 32px; }
  .result { padding-top: 40px; padding-bottom: 56px; }
  .result h1 { font-size: 40px; }
  .consent { padding: 18px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
