/* The Dailyist site. Palette and type follow the original Next.js site. */
:root {
  --ink: #181717;
  --black: #000;
  --plum: #2b1e29;
  --coral: #ff7e50;
  --coral-hover: #f26a3a;
  --sand: #f5f2ef;
  --line: #d7d3cd;
  --stone: #8f8c89;
  --muted: #6f6a66;
  --error: #b42318;
  --success: #1f7a4d;
  --serif: "Libre Baskerville", Georgia, "Times New Roman", serif;
  --sans: "Manrope", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.4; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 400; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Masthead */
.masthead { display: flex; justify-content: center; padding: 24px 16px; background: #fff; border-bottom: 1px solid var(--line); }
.masthead img { width: 140px; }

/* Hero */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--black); }
.hero-glow { position: absolute; right: 0; bottom: 0; width: 70%; height: 120%; background: url("https://static.thedailyist.com/images/BackgroundEllipsis.png") no-repeat; background-size: cover; z-index: 0; }
.hero-inner { position: relative; z-index: 1; max-width: 72rem; margin: 0 auto; padding: 40px 32px 0; display: flex; flex-direction: column; align-items: center; }
.hero-copy { flex: 1; min-width: 0; text-align: center; }
.hero h1 { font-family: var(--serif); font-size: 36px; line-height: 1.2; letter-spacing: -0.02em; color: var(--black); margin-bottom: 32px; }
.hero-copy > p { max-width: 32rem; margin: 0 auto 32px; }
.hero .subscribe { max-width: 24rem; margin: 0 auto 12px; }
.hero .fine-print { margin: 0; }
.phone { position: relative; width: 230px; aspect-ratio: 228 / 377; margin: 40px auto 0; flex-shrink: 0; overflow: hidden; }
.phone img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
@media (min-width: 640px) { .phone { width: 250px; } }
@media (min-width: 1024px) {
  .hero-inner { flex-direction: row; gap: 48px; padding-top: 32px; }
  .hero-copy { text-align: left; padding: 56px 0; }
  .hero h1 { text-align: left; }
  .hero-copy > p { margin-left: 0; }
  .hero .subscribe { margin-left: 0; }
  .hero .fine-print { text-align: left; }
  .phone { width: 300px; aspect-ratio: 253 / 441; margin: 0; }
}

/* Feature cards */
.features { background: var(--sand); }
.cards { max-width: 64rem; margin: 0 auto; padding: 56px 32px; display: grid; grid-template-columns: 1fr; gap: 24px; }
.card { background: #fff; border: 1px solid #e5e7eb; border-radius: 16px; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); padding: 32px; text-align: center; }
.card img { width: 120px; height: 120px; object-fit: contain; margin: 0 auto 32px; }
.card p { margin: 0; font-family: var(--serif); font-size: 18px; line-height: 1.3; letter-spacing: -0.02em; color: var(--ink); }
@media (min-width: 768px) { .cards { grid-template-columns: repeat(3, 1fr); } .card { padding: 40px; } }
@media (min-width: 1024px) { .cards { padding: 112px 32px; gap: 32px; } }

/* "Our daily news brief." */
.brief { background: #fff; border-top: 1px solid #302f2d; }
.brief-inner { max-width: 32rem; margin: 0 auto; padding: 96px 32px; text-align: center; }
.brief-art { width: 72px; height: 72px; object-fit: contain; margin: 0 auto 32px; transform: scaleX(-1); }
.brief h2 { font-family: var(--serif); font-size: 32px; line-height: 1.2; letter-spacing: -0.02em; color: var(--black); }
.brief-inner > p { margin: 24px auto 0; color: var(--black); }
.brief .subscribe { max-width: 24rem; margin: 32px auto 16px; }

/* Subscribe form: an email field and a coral pill button in one rounded bar */
.pill { display: flex; align-items: center; background: var(--sand); border-radius: 999px; overflow: hidden; }
.pill input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 16px 24px; font: 500 14px var(--sans); color: var(--plum); outline: none; }
.pill input::placeholder { color: var(--plum); opacity: 1; }
.pill:focus-within { box-shadow: 0 0 0 3px rgba(255, 126, 80, 0.35); }
button[type="submit"] { cursor: pointer; border: 0; background: var(--coral); color: #fff; border-radius: 999px; font: 500 11px/1.5 var(--sans); letter-spacing: 0.05em; text-transform: uppercase; padding: 12px 20px; }
.pill button { margin: 4px; flex-shrink: 0; }
button[type="submit"]:hover { background: var(--coral-hover); }
button[type="submit"]:disabled { opacity: 0.5; cursor: progress; }
.fine-print { font-size: 11px; line-height: 1.3; color: var(--muted); text-align: center; }
.fine-print a { text-underline-offset: 2px; }
.form-status { margin: 10px 0 0; font-size: 13px; min-height: 0; }
.form-status:empty { display: none; }
.form-status.ok { color: var(--success); }
.form-status.err { color: var(--error); }
.turnstile:empty { display: none; }
.turnstile { margin-top: 8px; display: flex; justify-content: center; }
@media (min-width: 1024px) { .hero .turnstile { justify-content: flex-start; } }

/* Inner pages */
.page-header { background: var(--sand); border-bottom: 1px solid var(--line); padding: 48px 32px; text-align: center; }
.page-header h1 { font-family: var(--serif); font-size: 40px; line-height: 1.4; letter-spacing: -0.02em; color: var(--ink); }
.page-header .updated, .page-header .subtitle { margin: 12px 0 0; font-size: 12px; font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; color: var(--stone); }
.page-header .subtitle { text-transform: none; letter-spacing: 0; font-size: 16px; font-weight: 400; color: var(--ink); }
@media (min-width: 1024px) { .page-header { padding: 64px 32px; } }
.prose { max-width: 42rem; margin: 0 auto; padding: 64px 32px; font-size: 15px; line-height: 1.6; color: var(--ink); }
@media (min-width: 1024px) { .prose { padding: 96px 32px; } }
.prose > * + * { margin-top: 32px; }
.prose p { margin: 0 0 16px; }
.prose section p:last-child, .prose > p { margin-bottom: 0; }
.prose > p + p, .prose > p + section, .prose > section + p { margin-top: 32px; }
.prose h2 { font-family: var(--serif); font-size: 28px; line-height: 1.4; letter-spacing: -0.02em; margin-bottom: 16px; }
.prose h3 { font-size: 22px; line-height: 1.2; letter-spacing: -0.02em; margin: 24px 0 12px; }
.prose ul, .prose ol { padding-left: 24px; margin: 0 0 16px; }
.prose li + li { margin-top: 8px; }
.prose a { text-underline-offset: 2px; }
.about > p:first-child, .prose .lead { font-family: var(--serif); font-size: 20px; line-height: 1.4; letter-spacing: -0.02em; }

/* Contact form */
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.contact-form .field { display: flex; flex-direction: column; gap: 6px; }
.contact-form label { font-size: 12px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--plum); }
.contact-form input, .contact-form textarea { font: 500 15px var(--sans); color: var(--plum); background: var(--sand); border: 1px solid transparent; border-radius: 12px; padding: 14px 16px; outline: none; width: 100%; }
.contact-form textarea { resize: vertical; min-height: 140px; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--coral); box-shadow: 0 0 0 3px rgba(255, 126, 80, 0.25); }
.contact-form .turnstile { justify-content: flex-start; margin: 0; }
.contact-form button { align-self: flex-start; padding: 14px 28px; }

/* Footer */
.site-footer { background: var(--ink); border-top: 1px solid #e5e5ea; padding: 48px 32px; }
.rule { border: 0; border-bottom: 1px solid var(--stone); margin: 0 auto; width: 100%; max-width: 28rem; }
.rule.wide { display: none; }
.rule.narrow { margin: 24px auto; }
.footer-row { display: flex; flex-direction: column; align-items: center; }
.monogram img { width: 30px; height: 30px; }
.site-footer nav { display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center; }
.site-footer nav a { font-size: 11px; font-weight: 600; line-height: 1; letter-spacing: 0.05em; text-transform: uppercase; text-decoration: none; color: var(--sand); }
.site-footer nav a:hover { text-decoration: underline; text-underline-offset: 3px; }
.site-footer > .rule:last-child { margin-top: 24px; }
@media (min-width: 1024px) {
  .site-footer { padding: 32px 96px; }
  .rule, .rule.wide { display: block; max-width: none; }
  .rule.wide { margin-bottom: 20px; }
  .rule.narrow { display: none; }
  .footer-row { flex-direction: row; justify-content: space-between; }
  .site-footer nav { flex-direction: row; gap: 48px; text-align: left; }
  .site-footer > .rule:last-child { margin-top: 20px; }
}
