/* As Your Days (asyourdays.com): its own look on top of the shared base. Light, airy, left-aligned magazine. */
:root[data-site="en"] {
  --bg: #fbfaf6; --surface: #ffffff; --ink: #1b1d1a; --ink-2: #474b45; --muted: #7b8077;
  --rule: #e7e4dc; --accent: #3d6b4f; --accent-ink: #fff; --gold: #a87a22; --band: #eef1ea; --band-ink: #1b1d1a;
  --serif: 'Fraunces', Georgia, serif; --body-serif: 'Source Serif 4', Georgia, serif; --sans: 'Inter', system-ui, sans-serif;
  --radius: 6px; --kicker-l: 34%; --kicker-s: 40%;
}
@media (prefers-color-scheme: dark) {
  :root[data-site="en"]:not([data-theme="light"]) {
    --bg: #121412; --surface: #1a1d1a; --ink: #ecebe5; --ink-2: #c8c9c1; --muted: #8d9188;
    --rule: #2a2e29; --accent: #9cc7a9; --accent-ink: #0f1a13; --gold: #e2b860; --band: #1a201b; --band-ink: #ecebe5; --kicker-l: 72%;
  }
}
:root[data-site="en"][data-theme="dark"] {
  --bg: #121412; --surface: #1a1d1a; --ink: #ecebe5; --ink-2: #c8c9c1; --muted: #8d9188;
  --rule: #2a2e29; --accent: #9cc7a9; --accent-ink: #0f1a13; --gold: #e2b860; --band: #1a201b; --band-ink: #ecebe5; --kicker-l: 72%;
}
[data-site="en"] .kicker { color: var(--gold); letter-spacing: .1em; font-size: 11.5px; }

/* Header */
.e-head { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--rule); }
.e-head-in { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.e-brand { display: inline-flex; align-items: center; gap: 10px; font: 800 26px/1 var(--serif); letter-spacing: -0.02em; color: var(--ink); }
.e-logo { display: block; height: 42px; width: auto; margin-left: -8px; }
.e-logo-dark { display: none; }
@media (prefers-color-scheme: dark) { :root[data-site="en"]:not([data-theme="light"]) .e-logo-light { display: none; } :root[data-site="en"]:not([data-theme="light"]) .e-logo-dark { display: block; } }
:root[data-site="en"][data-theme="dark"] .e-logo-light { display: none; }
:root[data-site="en"][data-theme="dark"] .e-logo-dark { display: block; }
.e-foot .e-logo { height: 36px; }
.e-tools { display: flex; align-items: center; gap: 6px; color: var(--ink-2); }
.e-search { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; }
.e-search:hover { background: var(--rule); }
.e-nav { border-top: 1px solid var(--rule); }
.e-nav-in { display: flex; gap: 26px; overflow-x: auto; scrollbar-width: none; height: 44px; align-items: center; }
.e-nav-in::-webkit-scrollbar { display: none; }
.e-nav a { white-space: nowrap; font: 500 14px var(--sans); color: var(--ink-2); padding: 12px 0; border-bottom: 2px solid transparent; }
.e-nav a:hover { color: var(--ink); }
.e-nav a[aria-current="page"] { color: var(--ink); border-color: var(--accent); }

/* Hero */
.e-hero { position: relative; margin-top: 32px; border-radius: var(--radius); overflow: hidden; background: #222; min-height: 520px; display: flex; align-items: flex-end; }
.e-hero-img { position: absolute; inset: 0; }
.e-hero-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.e-hero:hover .e-hero-img img { transform: scale(1.02); }
.e-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,12,10,.88) 0%, rgba(10,12,10,.45) 45%, rgba(10,12,10,0) 75%); pointer-events: none; }
.e-hero-text { position: relative; z-index: 1; padding: 44px 48px; max-width: 760px; color: #fff; }
.e-hero-text .kicker { color: #f0cf8a; }
.e-hero h1 { font: 700 clamp(30px, 4.4vw, 52px)/1.1 var(--serif); letter-spacing: -0.02em; }
.e-hero p { font: 400 18px/1.55 var(--body-serif); color: rgba(255,255,255,.88); margin: 14px 0 0; }
.e-hero .meta { color: rgba(255,255,255,.7); }

/* Featured row */
.e-feat { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-bottom: 1px solid var(--rule); }
.e-feat article { display: grid; grid-template-columns: 44px 1fr; gap: 10px; padding: 26px 24px 26px 0; }
.e-feat article + article { padding-left: 24px; border-left: 1px solid var(--rule); }
.e-num { font: 800 28px/1 var(--serif); color: var(--accent); opacity: .5; }
.e-feat h3 { font: 600 19px/1.3 var(--serif); }

/* Daily Bread */
.e-daily { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 40px; margin: 48px 0 16px; }
.e-daily-card { background: var(--band); border-radius: var(--radius); padding: 44px 48px; border-left: 4px solid var(--accent); }
.e-eyebrow { font: 600 12px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.e-daily-card blockquote { margin: 18px 0 12px; font: italic 400 clamp(22px, 2.6vw, 30px)/1.45 var(--body-serif); color: var(--band-ink); }
.e-daily-card cite { display: block; font: 500 13px var(--sans); color: var(--muted); font-style: normal; margin-bottom: 24px; }
.e-daily-list h2 { font: 700 20px var(--serif); margin-bottom: 8px; }
.e-daily-list a { display: block; padding: 14px 0; border-bottom: 1px solid var(--rule); font: 600 17px/1.35 var(--serif); }
.e-daily-list a span { display: block; font: 500 12px var(--sans); color: var(--muted); margin-bottom: 4px; }
.e-daily-list a:hover { color: var(--accent); }
.e-daily-list .e-more { border: 0; font: 600 14px var(--sans); color: var(--accent); }

/* Latest list + rail */
.e-split { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; margin-top: 32px; }
.e-sec-head { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 12px; border-bottom: 1px solid var(--ink); margin-bottom: 8px; }
.e-sec-head h2 { font: 700 24px var(--serif); letter-spacing: -0.01em; }
.e-sec-head a { font: 500 14px var(--sans); color: var(--muted); }
.e-sec-head a:hover { color: var(--accent); }
.e-list article { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--rule); }
.e-list h3 { font: 600 21px/1.3 var(--serif); }
.e-list p { font: 400 16px/1.55 var(--body-serif); color: var(--ink-2); margin: 8px 0 0; }
.e-rail { display: flex; flex-direction: column; gap: 24px; padding-top: 44px; }
[data-site="en"] .box { border-radius: var(--radius); }
[data-site="en"] .box-news { background: var(--band); color: var(--ink); border-left: 4px solid var(--accent); }
[data-site="en"] .box-news .box-title, [data-site="en"] .box-news p { color: var(--ink); }
[data-site="en"] .box-news .btn { background: var(--accent); color: var(--accent-ink); }
[data-site="en"] .news-form input { border: 1px solid var(--rule); }

/* Topic blocks */
.e-block { margin-top: 56px; }
.e-block-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px; padding-top: 16px; }
.e-big h3 { font: 700 26px/1.25 var(--serif); margin-top: 6px; }
.e-big p { font: 400 17px/1.55 var(--body-serif); color: var(--ink-2); margin: 10px 0 0; }
.e-big .cover { margin-bottom: 16px; }
.e-small { display: grid; gap: 24px; align-content: start; }
.e-small article { display: grid; grid-template-columns: 150px minmax(0, 1fr); grid-template-rows: auto 1fr; column-gap: 16px; align-items: start; align-content: start; }
.e-small article .cover { grid-row: span 2; }
.e-small h3 { font: 600 17px/1.3 var(--serif); }
.e-small .meta { margin-top: 6px; }

/* Footer */
.e-foot { margin-top: 80px; background: var(--band); padding: 56px 0 40px; }
.e-foot-verse { font: italic 400 clamp(22px, 3vw, 32px)/1.35 var(--body-serif); margin: 0 0 36px; max-width: 760px; }
.e-foot-verse cite { display: block; margin-top: 10px; font: 500 13px var(--sans); color: var(--muted); font-style: normal; }
.e-foot-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; border-top: 1px solid var(--rule); padding-top: 24px; }
.e-foot-row nav { display: flex; flex-wrap: wrap; gap: 20px; font: 500 14px var(--sans); color: var(--ink-2); }
.e-foot-row nav a:hover { color: var(--accent); }
.e-foot-note { font: 400 12.5px var(--sans); color: var(--muted); margin: 24px 0 0; }

/* Article page: left-aligned, serif body */
[data-site="en"] .post-head { text-align: left; padding-top: 56px; }
[data-site="en"] .post-head h1 { font-weight: 700; letter-spacing: -0.02em; line-height: 1.12; }
[data-site="en"] .post-dek { margin-left: 0; font-family: var(--body-serif); }
[data-site="en"] .post-meta { justify-content: flex-start; }
[data-site="en"] .post-cover { max-width: 1120px; }
[data-site="en"] .prose { font-family: var(--body-serif); font-size: 19.5px; line-height: 1.7; }
[data-site="en"] .prose h2, [data-site="en"] .prose h3 { font-family: var(--serif); }
[data-site="en"] .prose > blockquote { background: transparent; border: 0; border-left: 3px solid var(--accent); border-radius: 0; padding: 4px 0 4px 24px; font-family: var(--body-serif); font-size: 1.1em; }
[data-site="en"] .pager a { border-radius: var(--radius); }
[data-site="en"] .page-head h1 { font-weight: 700; letter-spacing: -0.02em; }
[data-site="en"] .cover { border-radius: var(--radius); }
[data-site="en"] .sec-head { border-top-width: 1px; }

@media (max-width: 1000px) {
  .e-split, .e-daily, .e-block-grid { grid-template-columns: minmax(0, 1fr); }
  .e-feat { grid-template-columns: minmax(0, 1fr); }
  .e-feat article + article { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule); }
  .e-rail { padding-top: 0; }
}
@media (max-width: 640px) {
  .e-head-in { height: 58px; }
  .e-logo { height: 34px; }
  .e-hero { min-height: 420px; margin-top: 16px; }
  .e-hero-text { padding: 24px 20px; }
  .e-hero p { font-size: 16px; }
  .e-daily-card { padding: 28px 22px; }
  .e-list article { grid-template-columns: 110px minmax(0, 1fr); gap: 14px; }
  .e-list p { display: none; }
  .e-list h3 { font-size: 17px; }
  .e-small article { grid-template-columns: 110px minmax(0, 1fr); }
  [data-site="en"] .prose { font-size: 18px; }
}
.e-submit { font: 500 14px/1 var(--sans); padding: 8px 12px; border-radius: 99px; color: var(--ink-2); }
.e-submit:hover { background: var(--rule); color: var(--ink); }
/* Smaller article cover */
[data-site="en"] .post-cover { max-width: 860px; }
