:root {
  --ink: #071a35;
  --muted: #5c6471;
  --line: #dfe4ea;
  --paper: #fbfaf8;
  --soft: #f4f5f7;
  --blue: #082e61;
  --red: #d20b18;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(7, 26, 53, .10);
  --serif: Georgia, 'Times New Roman', serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input { font: inherit; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.section-pad { padding-left: clamp(1.25rem, 5vw, 6rem); padding-right: clamp(1.25rem, 5vw, 6rem); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2rem;
  min-height: 82px;
  padding: .85rem clamp(1.25rem, 5vw, 6rem);
  background: rgba(251, 250, 248, .92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(223, 228, 234, .7);
}
.brand { display: inline-flex; align-items: center; gap: .75rem; min-width: 210px; }
.brand-mark { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; object-position: 50% 26%; }
.brand-wordmark { width: 174px; height: 34px; object-fit: contain; object-position: left center; }
.site-nav { display: flex; justify-content: center; gap: clamp(1.25rem, 3vw, 2.9rem); font-size: .92rem; }
.site-nav a { position: relative; padding: .65rem .1rem; color: #222b3a; }
.site-nav a.active::after, .site-nav a:hover::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--ink);
}
.header-actions { display: flex; align-items: center; justify-content: end; gap: 1rem; }
.icon-button {
  display: inline-grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  width: 40px;
  height: 40px;
}
.icon-button svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 1.35rem;
  border-radius: 7px;
  border: 1px solid var(--blue);
  background: var(--blue);
  color: var(--white);
  font-weight: 800;
  font-size: .9rem;
  box-shadow: 0 7px 18px rgba(8, 46, 97, .16);
  cursor: pointer;
}
.button:hover { transform: translateY(-1px); }
.button-small { min-height: 44px; padding-inline: 1.15rem; }
.text-link { display: inline-flex; align-items: center; gap: .45rem; font-weight: 800; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }

.hero {
  display: grid;
  grid-template-columns: minmax(340px, .86fr) minmax(400px, 1.14fr);
  align-items: center;
  gap: clamp(1rem, 4vw, 5rem);
  min-height: calc(100svh - 82px);
  padding-top: 2rem;
  overflow: hidden;
}
.hero-copy { max-width: 620px; padding-top: 2rem; }
.eyebrow {
  margin: 0 0 2.2rem;
  text-transform: uppercase;
  letter-spacing: .34em;
  font-size: .82rem;
  font-weight: 900;
  color: var(--ink);
}
.eyebrow.red { color: var(--red); margin-bottom: .8rem; }
.hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(4.8rem, 8.9vw, 8.8rem);
  line-height: .9;
  letter-spacing: -.065em;
  font-weight: 700;
}
.hero h1 span { color: var(--red); }
.red-rule { width: 86px; height: 4px; background: var(--red); margin: 2.6rem 0 2.1rem; }
.lead { max-width: 360px; margin: 0 0 2.1rem; font-size: 1.1rem; color: #303847; }
.hero-actions { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.hero-portrait { align-self: stretch; display: flex; align-items: end; justify-content: center; }
.hero-portrait img {
  width: min(780px, 100%);
  max-height: calc(100svh - 110px);
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(0 35px 40px rgba(7, 26, 53, .16));
}

.soft-band { background: linear-gradient(180deg, #f4f5f7 0%, #fbfaf8 100%); }
.about {
  display: grid;
  grid-template-columns: minmax(220px, 300px) minmax(330px, 1fr) minmax(330px, 520px);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  padding-top: 4.2rem;
  padding-bottom: 4.4rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.circle-photo { aspect-ratio: 1; border-radius: 50%; overflow: hidden; box-shadow: var(--shadow); background: #123; }
.circle-photo img { width: 100%; height: 100%; object-fit: cover; }
.about h2, .subscribe-wrap h2 { margin: 0 0 1.35rem; font-family: var(--serif); font-size: clamp(2rem, 3vw, 3rem); line-height: 1.08; letter-spacing: -.03em; }
.about p { color: #3d4552; }
.about-side {
  display: grid;
  grid-template-columns: minmax(135px, 220px) 1fr;
  gap: 2rem;
  align-items: center;
  padding-left: clamp(1.5rem, 4vw, 4rem);
  border-left: 1px solid #cfd6dd;
}
.about-side > img { max-height: 420px; object-fit: contain; filter: drop-shadow(0 25px 35px rgba(7, 26, 53, .14)); }
.journey-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; color: #4b5360; }
.journey-list li { display: grid; grid-template-columns: 48px 1fr; gap: .85rem; align-items: center; }
.mini-icon { display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid #c6cdd6; border-radius: 50%; color: var(--blue); font-size: 1.25rem; }

.posts, .categories { padding-top: 3.6rem; padding-bottom: 2.2rem; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.3rem; }
.section-heading .eyebrow { margin: 0; }
.post-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.05rem; }
.post-card {
  overflow: hidden;
  border: 1px solid #dce2e8;
  border-radius: 10px;
  background: var(--white);
  box-shadow: 0 8px 30px rgba(7, 26, 53, .06);
}
.post-image { height: 145px; background-size: cover; background-position: center; }
.image-flag { background-image: linear-gradient(145deg, rgba(8,46,97,.45), rgba(210,11,24,.15)), radial-gradient(circle at 10% 40%, #d20b18 0 8%, transparent 8.5%), repeating-linear-gradient(0deg, #f4f4f1 0 10px, #d20b18 10px 18px, #f4f4f1 18px 28px, #082e61 28px 34px); }
.image-london { background-image: linear-gradient(rgba(7,26,53,.15), rgba(7,26,53,.05)), linear-gradient(135deg, #99a9ad, #e5d7ba 48%, #082e61); }
.image-paper { background-image: linear-gradient(135deg, rgba(7,26,53,.05), rgba(210,11,24,.06)), repeating-linear-gradient(100deg, #d8d3c9 0 12px, #f8f4ec 12px 24px, #b7b1a5 24px 27px); }
.image-village { background-image: linear-gradient(165deg, rgba(8,46,97,.15), rgba(255,255,255,.15)), radial-gradient(circle at 35% 70%, #6b7a58 0 24%, transparent 25%), linear-gradient(135deg, #bdc7b1, #f3ead8 55%, #526247); }
.image-home { background-image: linear-gradient(135deg, rgba(255,255,255,.7), rgba(7,26,53,.12)), radial-gradient(circle at 75% 25%, #58715a 0 12%, transparent 13%), linear-gradient(90deg, #d5c2a7, #fffaf0); }
.post-body { padding: .95rem .95rem 1.1rem; }
.category { margin: 0 0 .45rem; text-transform: uppercase; letter-spacing: .18em; font-size: .65rem; color: var(--blue); font-weight: 900; }
.post-card h3 { margin: 0 0 .55rem; font-family: var(--serif); line-height: 1.05; font-size: clamp(1.18rem, 1.6vw, 1.55rem); letter-spacing: -.025em; }
.post-card p:not(.category) { min-height: 72px; margin: 0 0 1rem; color: #4e5662; font-size: .92rem; }
.post-card time, .post-card span { color: #6c7480; font-size: .8rem; }

.subscribe-wrap { padding-top: 1.3rem; padding-bottom: 3rem; }
.airmail-box {
  position: relative;
  display: grid;
  grid-template-columns: 100px 1fr minmax(360px, .82fr);
  align-items: center;
  gap: 2rem;
  padding: 2.15rem 2.4rem;
  border: 3px solid transparent;
  border-radius: 15px;
  background:
    linear-gradient(var(--paper), var(--paper)) padding-box,
    repeating-linear-gradient(135deg, var(--blue) 0 18px, transparent 18px 34px, var(--red) 34px 52px, transparent 52px 68px) border-box;
  box-shadow: 0 8px 40px rgba(7, 26, 53, .06);
}
.airmail-box img { width: 86px; height: 86px; object-fit: cover; object-position: 50% 26%; border-radius: 50%; }
.airmail-box h2 { margin-bottom: .35rem; }
.airmail-box p { margin: 0; color: #4d5561; }
.subscribe-form { display: grid; grid-template-columns: 1fr auto; gap: .75rem; align-items: start; }
.subscribe-form input {
  min-height: 48px;
  border: 1px solid #cfd6df;
  border-radius: 7px;
  padding: 0 1rem;
  background: var(--white);
  color: var(--ink);
}
.form-note { grid-column: 1 / -1; min-height: 1.2em; font-size: .85rem; color: var(--blue); }

.category-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1rem; }
.category-tile {
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  column-gap: .8rem;
  min-height: 76px;
  padding: .9rem 1rem;
  border: 1px solid #dce2e8;
  border-radius: 8px;
  background: var(--white);
}
.category-tile span { grid-row: span 2; color: var(--blue); font-size: 1.45rem; }
.category-tile strong { line-height: 1.1; }
.category-tile small { color: #747b85; }

.site-footer {
  display: grid;
  grid-template-columns: 1.5fr .8fr .8fr 1fr;
  gap: 3rem;
  padding-top: 2.4rem;
  padding-bottom: 3.4rem;
  border-top: 1px solid #cdd4dc;
}
.footer-brand img { width: 220px; height: 42px; object-fit: contain; object-position: left center; }
.site-footer h4 { margin: 0 0 .8rem; text-transform: uppercase; letter-spacing: .2em; font-size: .75rem; }
.site-footer p, .site-footer a { color: #4f5763; font-size: .92rem; }
.site-footer nav { display: grid; align-content: start; gap: .2rem; }
.copyright { grid-column: 1 / -1; margin: 0; text-align: center; color: #828995 !important; font-size: .78rem !important; }

.nav-toggle { display: none; width: 42px; height: 42px; border: 0; background: transparent; padding: .55rem; }
.nav-toggle span:not(.sr-only) { display: block; height: 2px; background: var(--ink); margin: 6px 0; }
.search-dialog { max-width: 560px; width: calc(100% - 2rem); border: 0; border-radius: 14px; padding: 0; box-shadow: 0 20px 70px rgba(7,26,53,.24); }
.search-dialog::backdrop { background: rgba(7,26,53,.35); backdrop-filter: blur(3px); }
.search-panel { position: relative; display: grid; gap: .85rem; padding: 2rem; }
.search-panel .close { position: absolute; top: .8rem; right: .8rem; font-size: 2rem; }
.search-panel label { font-family: var(--serif); font-size: 2rem; }
.search-panel input { min-height: 52px; border: 1px solid #cfd6df; border-radius: 8px; padding: 0 1rem; }
.search-panel p { margin: 0; color: #5a6270; }

@media (max-width: 1080px) {
  .site-header { grid-template-columns: auto auto 1fr; gap: 1rem; }
  .nav-toggle { display: block; order: 2; }
  .brand { order: 1; }
  .header-actions { order: 3; }
  .site-nav {
    position: fixed;
    left: 1rem;
    right: 1rem;
    top: 74px;
    display: none;
    flex-direction: column;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--white);
    box-shadow: var(--shadow);
  }
  .site-nav.open { display: flex; }
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 3rem; }
  .hero-copy { max-width: 780px; }
  .hero-portrait { max-height: 780px; overflow: hidden; }
  .about { grid-template-columns: 220px 1fr; }
  .about-side { grid-column: 1 / -1; grid-template-columns: minmax(160px, 260px) 1fr; border-left: 0; border-top: 1px solid #cfd6dd; padding-left: 0; padding-top: 2rem; }
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .airmail-box { grid-template-columns: 76px 1fr; }
  .subscribe-form { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .site-header { min-height: 72px; }
  .brand { min-width: 0; }
  .brand-wordmark { width: 142px; }
  .brand-mark { width: 40px; height: 40px; }
  .header-actions .icon-button { display: none; }
  .hero { padding-top: 2rem; }
  .hero h1 { font-size: clamp(3.35rem, 17vw, 5rem); }
  .eyebrow { letter-spacing: .24em; margin-bottom: 1.3rem; }
  .about { grid-template-columns: 1fr; }
  .circle-photo { max-width: 240px; }
  .about-side { grid-template-columns: 1fr; }
  .about-side > img { justify-self: center; max-height: 380px; }
  .post-grid, .category-grid, .site-footer { grid-template-columns: 1fr; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .airmail-box { grid-template-columns: 1fr; padding: 1.4rem; }
  .airmail-box img { width: 72px; height: 72px; }
  .subscribe-form { grid-template-columns: 1fr; }
  .copyright { text-align: left; }
}
