:root {
  color-scheme: light;
  --ink: #171614;
  --muted: #5f5a52;
  --soft: #f7f2e9;
  --paper: #fffdf8;
  --line: #e6dac8;
  --gold: #c9932f;
  --gold-dark: #8f651d;
  --blue: #204f6f;
  --blue-dark: #12344d;
  --green: #2f6954;
  --rose: #8d4a41;
  --shadow: 0 24px 60px rgba(42, 31, 17, 0.12);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}

body.locked {
  overflow: hidden;
}

img,
svg {
  max-width: 100%;
  display: block;
}

[hidden] {
  display: none !important;
}

a {
  color: inherit;
}

button,
input,
textarea,
select {
  font: inherit;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 100;
  background: var(--blue-dark);
  color: #fff;
  padding: 0.7rem 1rem;
  border-radius: var(--radius);
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 1rem;
}

.site-shell {
  min-height: 100vh;
  overflow-x: clip;
}

.topbar {
  background: var(--blue-dark);
  color: #fff;
  font-size: 0.9rem;
}

.topbar-inner,
.nav-inner,
.section-inner,
.footer-inner,
.article-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0;
}

.topbar a {
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 253, 248, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.nav-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  min-width: 0;
}

.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(32, 79, 111, 0.12);
  padding: 5px;
  flex: 0 0 auto;
}

.brand-text {
  display: grid;
  line-height: 1.05;
}

.brand-name {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 2.5vw, 1.8rem);
  font-weight: 700;
}

.brand-domain {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.nav-links a,
.nav-links button {
  color: var(--ink);
  text-decoration: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-weight: 650;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links button:hover {
  color: var(--blue);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.menu-button {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

.button,
.ghost-button,
.text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 750;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.button {
  background: var(--blue);
  color: #fff;
  border: 1px solid var(--blue);
  padding: 0.75rem 1.05rem;
  box-shadow: 0 12px 30px rgba(32, 79, 111, 0.2);
}

.button:hover {
  background: var(--blue-dark);
  transform: translateY(-1px);
}

.ghost-button {
  background: #fff;
  color: var(--blue-dark);
  border: 1px solid var(--line);
  padding: 0.75rem 1.05rem;
}

.ghost-button:hover {
  box-shadow: 0 12px 28px rgba(42, 31, 17, 0.1);
  transform: translateY(-1px);
}

.text-button {
  border: 0;
  background: transparent;
  color: var(--blue);
  padding: 0;
  min-height: auto;
}

.hero {
  position: relative;
  padding: clamp(2.4rem, 5vw, 4.5rem) 0 2.5rem;
  background:
    linear-gradient(90deg, rgba(255, 253, 248, 0.96) 0%, rgba(255, 253, 248, 0.82) 46%, rgba(255, 253, 248, 0.24) 100%),
    url("https://images.unsplash.com/photo-1600284017197-003c7e876d87?auto=format&fit=crop&w=1800&q=80") center / cover;
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.75fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1rem;
  color: var(--blue-dark);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--gold);
}

h1,
h2,
h3,
.serif {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(2.45rem, 5.7vw, 4.65rem);
  color: #111;
}

.hero-copy {
  max-width: 650px;
  margin: 1.25rem 0 0;
  color: #37322c;
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.hero-panel {
  background: rgba(255, 253, 248, 0.94);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(1.1rem, 3vw, 1.5rem);
}

.daily-card-date {
  color: var(--gold-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.daily-card-title {
  margin: 0.45rem 0 0.75rem;
  font-size: 1.55rem;
}

.daily-card p {
  margin: 0;
  color: var(--muted);
}

.daily-card-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 1.2rem;
}

.metric {
  border-top: 1px solid var(--line);
  padding-top: 0.9rem;
}

.metric strong {
  display: block;
  color: var(--blue-dark);
  font-size: 1.35rem;
  line-height: 1;
}

.metric span {
  color: var(--muted);
  font-size: 0.9rem;
}

.section {
  padding: clamp(3.2rem, 7vw, 5.5rem) 0;
}

.section.alt {
  background: var(--soft);
  border-block: 1px solid var(--line);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.8rem;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.section-heading p {
  max-width: 560px;
  margin: 0.8rem 0 0;
  color: var(--muted);
}

.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 1rem;
}

.post-card {
  display: grid;
  color: inherit;
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(42, 31, 17, 0.05);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.post-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 46px rgba(42, 31, 17, 0.1);
}

.post-card.featured {
  grid-row: span 2;
}

.post-art {
  min-height: 190px;
  background: var(--blue);
  position: relative;
  overflow: hidden;
}

.post-card.featured .post-art {
  min-height: 330px;
}

.post-art::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(140deg, rgba(18, 52, 77, 0.88), rgba(47, 105, 84, 0.62)),
    var(--image, linear-gradient(135deg, var(--blue), var(--green)));
  background-size: cover;
  background-position: center;
}

.post-art::after {
  content: "";
  position: absolute;
  left: 22px;
  bottom: 22px;
  width: 92px;
  height: 92px;
  border: 2px solid rgba(255, 255, 255, 0.76);
  border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.82) 0 6px, transparent 7px),
    conic-gradient(from 0deg, transparent 0 14%, rgba(255, 255, 255, 0.74) 14% 17%, transparent 17% 31%, rgba(255, 255, 255, 0.74) 31% 34%, transparent 34% 48%, rgba(255, 255, 255, 0.74) 48% 51%, transparent 51% 65%, rgba(255, 255, 255, 0.74) 65% 68%, transparent 68% 82%, rgba(255, 255, 255, 0.74) 82% 85%, transparent 85% 100%);
  opacity: 0.78;
}

.post-body {
  padding: 1.25rem;
}

.post-meta {
  color: var(--gold-dark);
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.post-body h3 {
  margin: 0.45rem 0 0.65rem;
  font-size: clamp(1.35rem, 2vw, 1.85rem);
}

.post-body p {
  margin: 0;
  color: var(--muted);
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--blue-dark);
  background: #fffaf1;
  font-size: 0.82rem;
  font-weight: 750;
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.topic {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem;
  min-height: 156px;
}

.topic-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--soft);
  color: var(--blue);
  margin-bottom: 0.9rem;
}

.topic h3 {
  margin: 0 0 0.4rem;
  font-size: 1.25rem;
}

.topic p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.05fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

.portrait-card {
  background: var(--blue-dark);
  color: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.portrait-art {
  display: grid;
  place-items: center;
  min-height: 360px;
  background:
    linear-gradient(145deg, rgba(18, 52, 77, 0.76), rgba(201, 147, 47, 0.52)),
    url("https://images.unsplash.com/photo-1585599767947-777b7d1169d0?auto=format&fit=crop&w=1200&q=80") center / cover;
}

.portrait-art img {
  width: min(190px, 42vw);
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.78);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.25);
}

.portrait-caption {
  padding: 1.25rem;
}

.portrait-caption p {
  margin: 0.4rem 0 0;
  color: rgba(255, 255, 255, 0.78);
}

.about-copy h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.25rem);
}

.about-copy p {
  color: var(--muted);
  font-size: 1.05rem;
}

.quote-box {
  border-left: 4px solid var(--gold);
  background: #fff;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}

.quote-box p {
  color: var(--ink);
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
}

.newsletter {
  background: var(--blue-dark);
  color: #fff;
}

.newsletter .section-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(300px, 0.7fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

.newsletter h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.newsletter p {
  color: rgba(255, 255, 255, 0.78);
  margin: 1rem 0 0;
}

.form-card {
  background: #fff;
  color: var(--ink);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 1.2rem;
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.2);
}

.form-grid {
  display: grid;
  gap: 0.8rem;
}

.field {
  display: grid;
  gap: 0.35rem;
}

.field label {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 750;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fffdf8;
  color: var(--ink);
  padding: 0.75rem 0.85rem;
  outline: none;
}

.field textarea {
  min-height: 112px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(32, 79, 111, 0.13);
}

.form-note {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.form-status {
  min-height: 1.35rem;
  margin: 0.6rem 0 0;
  color: var(--blue-dark);
  font-weight: 750;
  font-size: 0.9rem;
}

.faq-list {
  display: grid;
  gap: 0.75rem;
}

.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
}

.faq-item h3 {
  margin: 0;
  font-size: 1.2rem;
}

.faq-item p {
  margin: 0.55rem 0 0;
  color: var(--muted);
}

.login-page {
  min-height: calc(100vh - 77px);
  display: grid;
  place-items: center;
  padding: 3rem 0;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.94), rgba(247, 242, 233, 0.96)),
    url("https://images.unsplash.com/photo-1600284017197-003c7e876d87?auto=format&fit=crop&w=1800&q=80") center / cover;
}

.login-card {
  width: min(470px, calc(100% - 32px));
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(1.25rem, 4vw, 2rem);
}

.login-card h1 {
  font-size: clamp(2.1rem, 6vw, 3rem);
}

.article-hero {
  padding: clamp(3rem, 7vw, 5.4rem) 0 2.2rem;
  background: var(--soft);
  border-bottom: 1px solid var(--line);
}

.article-shell {
  display: grid;
  grid-template-columns: minmax(0, 740px) minmax(240px, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.article-hero .article-shell {
  display: block;
}

.article-label {
  color: var(--gold-dark);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.article-hero h1 {
  margin-top: 0.6rem;
  font-size: clamp(2.5rem, 6vw, 4.8rem);
}

.article-dek {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.18rem;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
  color: var(--muted);
  font-weight: 650;
}

.article-content {
  padding: 3rem 0;
}

.article-content article {
  min-width: 0;
}

.article-content p,
.article-content li {
  color: #38332d;
  font-size: 1.06rem;
}

.article-content h2 {
  margin-top: 2rem;
  font-size: 2rem;
}

.article-content blockquote {
  margin: 2rem 0;
  padding: 1rem 1.2rem;
  border-left: 4px solid var(--gold);
  background: var(--soft);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
}

.article-aside {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 1rem;
}

.aside-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
}

.aside-card h2,
.aside-card h3 {
  margin: 0 0 0.6rem;
  font-size: 1.2rem;
}

.aside-card p {
  color: var(--muted);
  margin: 0;
  font-size: 0.95rem;
}

.site-footer {
  background: #111;
  color: #fff;
  padding: 3rem 0 2rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
  gap: 2rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.1rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.76);
  text-decoration: none;
}

.footer-links a:hover {
  color: #fff;
}

.copyright {
  grid-column: 1 / -1;
  color: rgba(255, 255, 255, 0.6);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  padding-top: 1.2rem;
  margin: 0;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  place-items: center;
  padding: 1rem;
}

.modal.open {
  display: grid;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 17, 17, 0.5);
}

.modal-panel {
  position: relative;
  width: min(470px, 100%);
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 1.2rem;
}

.modal-close {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  border: 1px solid var(--line);
  background: #fff;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
}

.modal-panel h2 {
  margin: 0 2.2rem 0.5rem 0;
  font-size: 2rem;
}

@media (max-width: 900px) {
  .topbar-inner {
    display: block;
  }

  .menu-button {
    display: inline-block;
  }

  .nav-links {
    position: fixed;
    inset: 77px 0 auto 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(255, 253, 248, 0.98);
    border-bottom: 1px solid var(--line);
    padding: 0.8rem 16px 1rem;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a,
  .nav-links button {
    width: 100%;
    text-align: left;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--line);
  }

  .nav-actions .ghost-button {
    display: none;
  }

  .hero {
    background:
      linear-gradient(180deg, rgba(255, 253, 248, 0.94), rgba(255, 253, 248, 0.8)),
      url("https://images.unsplash.com/photo-1600284017197-003c7e876d87?auto=format&fit=crop&w=1400&q=80") center / cover;
  }

  .hero-grid,
  .story-grid,
  .about-grid,
  .newsletter .section-inner,
  .article-shell,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .topic-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .article-aside {
    position: static;
  }
}

@media (max-width: 620px) {
  .topbar {
    display: none;
  }

  .brand-domain {
    display: none;
  }

  .nav-inner {
    min-height: 68px;
  }

  .nav-links {
    inset-block-start: 68px;
  }

  .hero {
    padding: 2rem 0 1.7rem;
  }

  .hero-actions,
  .section-heading {
    display: grid;
    align-items: start;
  }

  .button,
  .ghost-button {
    width: 100%;
  }

  .daily-card-meta,
  .topic-grid {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    padding: 1rem;
  }

  .daily-card-title {
    font-size: 1.2rem;
    margin-bottom: 0;
  }

  .daily-card p,
  .daily-card-meta {
    display: none;
  }

  .post-card.featured .post-art,
  .portrait-art {
    min-height: 250px;
  }
}
