@font-face {
  font-family: Inter;
  src: url('inter.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
:root { --at-header-height: 62px }
html { scroll-padding-top: calc(var(--at-header-height) + 12px) }
.at-header {
  position: sticky;
  top: 0;
  z-index: 101;
  background: #fff;
  color: #161b20;
  border-bottom: 1px solid rgba(31, 45, 60, .14);
  box-shadow: 0 5px 16px rgba(21, 33, 51, .045);
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .at-header {
    background: rgba(255, 255, 255, .83);
    -webkit-backdrop-filter: blur(16px) saturate(150%);
    backdrop-filter: blur(16px) saturate(150%);
  }
}
.at-header-inner {
  width: min(1200px, calc(100% - 72px));
  min-height: calc(var(--at-header-height) - 1px);
  margin-inline: auto;
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  font: 550 .8rem/1.2 Inter, system-ui, sans-serif;
}
.at-header a { text-decoration: none }
.at-header-nav { display: flex; align-items: center; gap: clamp(10px, 1.65vw, 22px) }
.at-header a:focus-visible, .at-header summary:focus-visible { outline: 2px solid var(--accent, #1e68d7); outline-offset: 4px }
.at-wordmark img { display: block; width: 86px; height: auto }
.at-donation {
  justify-self: end;
  padding: 10px 14px;
  color: #fff;
  background: var(--accent, #1e68d7);
  border-radius: 6px;
  letter-spacing: .11em;
  font-size: .68rem;
  font-weight: 800;
}
.at-donation:hover { color: #fff; filter: brightness(.88) }
.at-menu summary, .at-search { cursor: pointer; list-style: none; display: grid; place-items: center; width: 24px; height: 28px }
.at-menu summary::-webkit-details-marker { display: none }
.at-menu summary span { width: 15px; height: 11px; border-block: 1px solid; background: linear-gradient(currentColor,currentColor) center/100% 1px no-repeat }
.at-search span { position: relative; width: 11px; height: 11px; border: 1px solid; border-radius: 50% }
.at-search span::after { position: absolute; content: ""; width: 5px; height: 1px; background: currentColor; transform: rotate(45deg); right: -4px; bottom: -2px }
.at-menu-links { position: absolute; top: 100%; left: 0; background: #fff; border: 1px solid #dededb; border-radius: 0 0 8px 8px; box-shadow: 0 10px 22px #14213114; padding: 8px; min-width: 185px }
.at-menu-links a { display: block; padding: 8px; color: inherit }
.at-top-link:hover, .at-menu-links a:hover, .at-menu-links a:focus-visible,
.at-account-dropdown :is(a, button):hover, .at-account-dropdown :is(a, button):focus-visible { color: var(--accent, #1e68d7) }
.at-studio { font-family: Inter, system-ui, sans-serif }
.at-studio .shell { min-height: calc(100vh - var(--at-header-height)) }
.at-studio .shell > aside { top: var(--at-header-height); height: calc(100vh - var(--at-header-height)) }
.at-studio .topbar { top: var(--at-header-height) }
@media (max-width: 930px) { .at-header-inner { width: calc(100% - 42px) } }
@media (max-width: 620px) {
  :root { --at-header-height: 54px }
  .at-header-inner { width: calc(100% - 28px) }
  .at-top-link { display: none }
  .at-donation { padding-inline: 10px }
}
@media (max-width: 760px) { .at-studio .shell > aside { height: auto } }

.skip, .skip-link { z-index: 102 }

:root { color-scheme: light; --page-background: #f5f6fa }
body { background: var(--page-background) }
.at-header-actions { justify-self: end; display: flex; align-items: center; gap: 9px }
.at-theme-toggle {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  padding: 0;
  border: 1px solid #d6dce4;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  font: 600 1.16rem/1 Inter, system-ui, sans-serif;
  cursor: pointer;
}
.at-theme-toggle svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.at-theme-toggle .icon-sun, [data-theme="dark"] .at-theme-toggle .icon-moon { display: none }
[data-theme="dark"] .at-theme-toggle .icon-sun { display: block }
.at-footer { background: #12191f; color: white; padding: 26px 0 }
.at-footer > div {
  width: min(1200px, calc(100% - 72px));
  margin-inline: auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}
.at-footer-logo img { display: block; width: 95px; filter: invert(1) }
.at-footer nav { display: flex; flex-wrap: wrap; gap: 13px; font: 550 .75rem Inter, system-ui, sans-serif }
.at-footer a { color: inherit; text-decoration: none }
.at-footer a:hover, .at-footer small { color: #ced7df }
.at-studio .topbar h1 { font-size: 11px }
.at-studio .login h1 { font-size: 17px }
[data-theme="dark"] {
  color-scheme: dark;
  --page-background: #141c2a;
  --paper: #141c2a;
  --ink: #eaf0f8;
  --muted: #b5c2d2;
  --line: #344259;
  --bg: #141c2a;
}
[data-theme="dark"] body {
  background: #141c2a;
  color: var(--ink);
  --accent: #81b3ff !important;
}
[data-theme="dark"] .at-header { background: rgba(20, 28, 42, .9); border-color: var(--line); color: var(--ink) }
[data-theme="dark"] .at-wordmark img { filter: invert(1) }
[data-theme="dark"] .at-menu-links { background: #212c3d; border-color: var(--line) }
[data-theme="dark"] .at-theme-toggle { border-color: var(--line) }
[data-theme="dark"] .at-donation, [data-theme="dark"] .book-shelf-heading h2,
[data-theme="dark"] .book-action-primary, [data-theme="dark"] .search-form button {
  background: #2768cc;
  color: white;
}
[data-theme="dark"] .section-heading { border-color: var(--line) }
[data-theme="dark"] .excerpt, [data-theme="dark"] .book-byline { color: var(--muted) }
[data-theme="dark"] .issue-entry, [data-theme="dark"] .writer-grid a,
[data-theme="dark"] .book-card-cover { background: #212c3d; border-color: var(--line) }
[data-theme="dark"] .book-visual { background: radial-gradient(ellipse at center, #2a364a, transparent 67%) }
[data-theme="dark"] .book-access { background: #203d32; color: #b3e3c3 }
[data-theme="dark"] input, [data-theme="dark"] textarea, [data-theme="dark"] select,
[data-theme="dark"] .at-studio .login, [data-theme="dark"] .at-studio .topbar,
[data-theme="dark"] .at-studio .panel, [data-theme="dark"] .at-studio .studio-list button,
[data-theme="dark"] .at-studio .studio-queue button, [data-theme="dark"] .at-studio .btn.ghost {
  background: #212c3d;
  color: var(--ink);
  border-color: var(--line);
}
[data-theme="dark"] .at-studio .studio-metric strong,
[data-theme="dark"] .at-studio .topbar h1 { color: var(--ink) }
@media (max-width: 620px) {
  .at-footer > div { width: calc(100% - 28px) }
  .at-header-inner { gap: 6px }
  .at-header-actions { gap: 4px }
  .at-theme-toggle { width: 28px; height: 28px }
}

@media (max-width: 620px) {
  .at-header-inner { grid-template-columns: minmax(0,1fr) auto minmax(0,1fr) }
  .at-wordmark img { width: clamp(56px, 18vw, 75px) }
  .at-header-actions { min-width: 0 }
}

:root { --site-frame: min(1120px, calc(100% - 64px)) }
@media(max-width:900px) { :root { --site-frame: calc(100% - 42px) } }
@media(max-width:600px) { :root { --site-frame: calc(100% - 28px) } }
body .at-header-inner, body .at-footer > div { width:var(--site-frame) }

:root { font-family: Inter, system-ui, sans-serif }
button, input, select, textarea, code, pre, kbd, samp { font-family: inherit }

.at-reader-link { white-space: nowrap; padding: 5px 2px; font-size: .72rem; font-weight: 650 }
.at-reader-link:hover { color: var(--accent) }
@media(max-width: 820px) {
  .at-top-link { display: none }
}
@media(max-width: 620px) {
  body .at-header-inner { grid-template-columns: minmax(44px,1fr) auto minmax(max-content,1fr) }
}

.at-reader-link {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 35px; padding: 5px clamp(9px, 1.5vw, 20px); border: 1px solid currentColor;
  border-radius: 8px; color: inherit; font-size: .78rem; font-weight: 700;
}
.at-header-actions .at-theme-toggle { border-color: currentColor }
.at-login-dialog {
  box-sizing: border-box; width: min(360px, calc(100% - 32px)); max-height: calc(100% - 32px);
  padding: 0; border: 1px solid #dfe3eb; border-radius: 24px;
  background: #fff; color: #171d2a; box-shadow: 0 20px 64px #14213329;
  font: 400 1rem/1.5 Inter, system-ui, sans-serif;
}
.at-login-dialog::backdrop {
  background: #f5f6fa70;
  -webkit-backdrop-filter: blur(9px);
  backdrop-filter: blur(9px);
}
.at-login-card { position: relative; padding: 44px 28px 30px; text-align: center }
.at-login-card img { display: inline-block }
.at-login-card h2 { font-size: clamp(1.25rem, 5vw, 1.5rem); line-height: 1.2; margin: 22px 0 8px }
.at-login-card p { color: #526078; font-size: .84rem; margin: 0 0 22px }
.at-login-card .at-login-status { margin: 12px 0 0 }
.at-login-status:empty { display: none }
.at-login-close {
  position: absolute; top: 10px; inset-inline-end: 12px; width: 34px; height: 34px;
  border: 0; border-radius: 50%; background: transparent; color: inherit; font: 1.4rem/1 Inter, sans-serif; cursor: pointer;
}
.at-login-card .at-login-google {
  display: block; border-radius: 9px; padding: 11px 12px;
  background: #171d2a; color: #fff; text-decoration: none; font-weight: 650; font-size: .88rem;
}
.at-login-card .at-login-google[hidden] { display: none }
[data-theme="dark"] .at-login-dialog { background: #202b3d; border-color: #3c4961; color: #edf2f9 }
[data-theme="dark"] .at-login-dialog::backdrop { background: #11182780 }
[data-theme="dark"] .at-login-card p { color: #becbde }
[data-theme="dark"] .at-login-card img { filter: invert(1) }
[data-theme="dark"] .at-login-card .at-login-google { background: #edf2f9; color: #171d2a }

.at-header-actions [hidden], .at-login-card [hidden] { display:none }
.at-account-menu { position:relative }
.at-account-menu summary { display:flex; align-items:center; gap:8px; cursor:pointer; list-style:none; padding-block:4px }
.at-account-menu summary::-webkit-details-marker { display:none }
.at-account-display { max-width:clamp(64px,15vw,180px); white-space:nowrap; text-overflow:ellipsis; overflow:hidden; font-weight:750 }
.at-account-avatar { display:grid; place-items:center; width:34px; height:34px; border-radius:50%; color:#fff; background:#8050e5; font-weight:750; font-size:.95rem }
.at-account-dropdown { position:absolute; inset-inline-end:0; top:calc(100% + 6px); width:min(205px,85vw); padding:7px; border:1px solid #dfe3eb; border-radius:10px; box-shadow:0 10px 24px #14213325; background:#fff }
.at-account-dropdown a,.at-account-dropdown button,.at-account-dropdown strong { display:block; padding:9px; overflow-wrap:anywhere }
.at-account-dropdown button { width:100%; text-align:start; border:0; cursor:pointer; background:transparent; color:inherit; font:inherit }
.at-account-dropdown strong { border-bottom:1px solid #dfe3eb }
.at-account-dropdown p:empty { display:none }
[data-theme="dark"] .at-account-dropdown { background:#202b3d; border-color:#3c4961 }
.at-visually-hidden { position:absolute; width:1px; height:1px; clip-path:inset(50%); overflow:hidden; white-space:nowrap }
.at-login-dialog { width:min(490px,calc(100% - 32px)) }
.at-login-card { padding:clamp(42px,8vw,60px) clamp(20px,6vw,42px) clamp(30px,6vw,44px) }
.at-login-card .at-login-google { display:flex; align-items:center; justify-content:center; gap:12px; background:transparent; color:inherit; border:1px solid #4d83ec; min-height:48px }
.at-login-divider { display:flex; align-items:center; gap:14px; margin:17px 0; font-size:.8rem; letter-spacing:.12em }
.at-login-divider::before,.at-login-divider::after { content:""; flex:1; height:1px; background:#dfe3eb }
.at-login-email { display:block; width:100%; min-height:48px; border:0; border-radius:9px; color:#fff; background:#4547dc; font:650 .88rem Inter,sans-serif; cursor:pointer }
.at-login-form { margin-top:16px; text-align:start }
.at-login-form label { font-size:.85rem }
.at-login-form input { display:block; box-sizing:border-box; width:100%; margin:5px 0 9px; padding:10px; border:1px solid #9ca5bb; border-radius:7px; background:transparent; color:inherit }
.at-login-back { margin-top:8px; padding:0; border:0; background:transparent; color:inherit; cursor:pointer; text-decoration:underline }

.at-theme-toggle {
  position: fixed; inset-inline-end: max(16px,env(safe-area-inset-right));
  bottom: max(16px,env(safe-area-inset-bottom)); z-index: 103;
  width: 42px; height: 42px; color: var(--ink,#171d2a); background: var(--page-background);
  box-shadow: 0 3px 16px #14213328;
}
.at-login-dialog { width:min(520px,calc(100% - 28px)); border-radius:12px }
.at-login-card { padding:clamp(36px,6vw,50px) clamp(20px,7vw,55px) 30px }
.at-login-card h2 { margin:0 0 10px; color:inherit; font-size:clamp(1.85rem,6vw,2.5rem) }
.at-login-form { margin-top:0 }
.at-login-form input { margin:0 0 12px; min-height:47px; padding:10px 13px; font-size:1rem }
.at-password-field { position:relative }
.at-password-field input { padding-inline-end:44px }
.at-password-field button { position:absolute; inset-inline-end:8px; top:5px; width:36px; height:36px; border:0; background:transparent; color:inherit; cursor:pointer }
.at-login-options { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:5px 12px; margin-bottom:14px }
.at-login-options input { display:inline-block; min-height:0; width:auto; margin:0 3px 0 0 }
.at-login-options button { margin:0; font-size:.85rem }
.at-login-email { background:#1e68d7 }
.at-login-card .at-login-register { text-align:center; margin:13px 0 0 }
.at-login-register button { color:var(--accent,#1e68d7); font-weight:700 }
.at-login-social { display:flex; gap:10px; flex-wrap:wrap }
.at-login-card .at-login-social a { flex:1 1 110px; border:0; background:#f1f3f6; color:#405067 }
[data-theme="dark"] .at-login-card .at-login-social a { background:#354158; color:#edf2f9 }

.at-footer { color:#161b20; background:#ffffff00; border-top:1px solid #dce1e9; padding:20px 0 }
.at-footer > div { flex-wrap:nowrap; gap:8px }
.at-footer nav { flex-wrap:nowrap; align-items:center; gap:clamp(6px,1.5vw,15px) }
.at-footer small { color:inherit; white-space:nowrap; font-size:clamp(.62rem,2.5vw,.78rem) }
.at-footer nav a { display:inline-flex; align-items:center; gap:4px; white-space:nowrap }
.at-footer nav svg { width:16px; height:16px }
.at-footer a:hover { color:#1E68D7 }
.at-support { font-weight:750; letter-spacing:.04em; font-size:clamp(.6rem,2.4vw,.75rem) }
[data-theme="dark"] .at-footer { color:var(--ink); border-color:var(--line) }
.at-theme-toggle { bottom:max(58px,calc(env(safe-area-inset-bottom) + 48px)) }
.card-bookmark { display:inline-grid; place-items:center; flex:none; width:28px; height:28px; padding:4px; border:0; background:transparent; color:var(--muted,#526078); cursor:pointer }
.card-bookmark svg { width:17px; height:17px }
.card-bookmark.is-saved { color:var(--accent,#1e68d7) }
.card-bookmark.is-saved svg { fill:currentColor }
.card-date-bookmark,.front-date-bookmark { display:inline-flex; align-items:center; gap:5px }

.book-pricing { display:inline-flex; flex-wrap:wrap; align-items:baseline; gap:5px 9px; margin-top:5px; font:650 .83rem/1.4 Inter,system-ui,sans-serif }
.book-pricing .book-price { color:#1E68D7; margin:0; font:inherit }
.book-price-regular { color:#647084; font-weight:500 }
[data-theme="dark"] .book-price-regular { color:#aeb9c9 }
.book-access, [data-theme="dark"] .book-access {
  display:inline-block; width:fit-content; margin-top:5px; padding:4px 11px;
  border:0; border-radius:999px; background:#e2f1e7; color:#225d3c;
  font:750 .82rem/1.3 Inter,system-ui,sans-serif;
}

.front-books { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:clamp(13px,2.5vw,27px) }
.front-books article { min-width:0; overflow-wrap:anywhere }
.front-book { display:block }
.front-books h3 { margin:12px 0 3px; font-size:.94rem; line-height:1.16; letter-spacing:-.025em }
.front-books p { margin:0; font-size:.78rem }
.front-cover { aspect-ratio:2/3; overflow:hidden; border-radius:3px 9px 9px 3px; box-shadow:3px 6px 12px #1114; background:#e9edf2 }
.front-cover img { display:block; width:100%; height:100%; object-fit:contain }
[data-theme="dark"] .front-cover { background:#29374c }
@media(max-width:600px) { .front-books { grid-template-columns:repeat(2,minmax(0,1fr)); row-gap:24px } }

@media(min-width:821px) { .at-menu-links .at-mobile-link { display:none } }
@media(max-width:820px) {
  html:has(.at-menu[open]) { overflow:hidden }
  .at-header:has(.at-menu[open]) { backdrop-filter:none; -webkit-backdrop-filter:none; z-index:110 }
  .at-menu[open] summary { position:relative; z-index:2 }
  .at-menu[open] summary span { border:0; width:18px; height:18px; background:
    linear-gradient(45deg,transparent 46%,currentColor 46% 54%,transparent 54%),
    linear-gradient(-45deg,transparent 46%,currentColor 46% 54%,transparent 54%) }
  .at-menu .at-menu-links {
    position:fixed; inset:0; height:100dvh; z-index:1; overflow:auto;
    display:grid; align-content:safe center; justify-items:center; gap:2px;
    padding:66px 20px 32px; border:0; border-radius:0; box-shadow:none;
    background:rgb(245 246 250 / 94%); backdrop-filter:blur(16px); -webkit-backdrop-filter:blur(16px);
    font-size:1.6rem; text-align:center;
  }
  .at-menu:not([open]) .at-menu-links { display:none }
  [data-theme="dark"] .at-menu .at-menu-links { background:rgb(20 28 42 / 94%) }
}

@font-face {
  font-family: "Antinomi Lexend";
  src: url("lexend.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}
:root { --editorial-meta-font:"Antinomi Lexend", Inter, system-ui, sans-serif }
.front-category, .front-byline, .front-brief time, .front-tags,
.front-hero-spotlight-meta, .article-header .eyebrow, .issue-entry .eyebrow,
.article-reading-meta, .article-related-meta, .card-date-bookmark,
.reader-saved-meta, .tag-list, .article-bookmark, .article-share summary {
  font-family:var(--editorial-meta-font);
}

.front-category, .front-byline, .front-brief time, .front-tags,
.front-hero-spotlight-meta, .article-header .eyebrow, .issue-entry .eyebrow,
.article-reading-meta, .article-related-meta, .card-date-bookmark, .reader-saved-meta,
.article-bookmark, .article-share summary { font-weight:400 }
.front-byline .front-date-bookmark { font-weight:400 }
