:root {
  --paper: #fbfaf7;
  --white: #fff;
  --ink: #191919;
  --muted: #65615a;
  --accent: #9e3425;
  --line: #d9d6ce;
  --wash: #f1efea;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-size: 15px;
  line-height: 1.65;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button, a, input, select { touch-action: manipulation; }
button { cursor: pointer; }
button:disabled { opacity: .55; cursor: wait; }
a:hover { color: var(--accent); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, [tabindex="-1"]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
[hidden] { display: none !important; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { text-wrap: pretty; }
h1, h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; line-height: 1.15; }
h1 { font-size: clamp(38px, 5vw, 60px); letter-spacing: -1.8px; margin-bottom: 22px; }
h2 { font-size: 29px; letter-spacing: -.6px; margin-bottom: 16px; }
h3 { font-size: 19px; line-height: 1.35; margin-bottom: 12px; }
p { margin-bottom: 20px; }
header, main, footer { max-width: 1180px; margin-inline: auto; }
header { min-height: 92px; margin-inline: max(32px, calc((100vw - 1180px) / 2)); border-bottom: 2px solid var(--ink); display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { font-family: Georgia, "Times New Roman", serif; font-size: 31px; font-weight: 700; letter-spacing: -1.4px; line-height: 1.1; white-space: nowrap; }
.brand:hover { color: var(--ink); }
header nav, .header-actions { display: flex; align-items: center; gap: 24px; }
header nav a, #cart-link { font-size: 13px; padding-block: 12px; }
header nav a[aria-current="page"] { color: var(--accent); text-decoration: underline; text-underline-offset: 7px; }
.header-actions { gap: 19px; }
#cart-count { margin-left: 3px; color: var(--muted); font-variant-numeric: tabular-nums; }
#cart-count::before { content: '('; }
#cart-count::after { content: ')'; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 18px; min-height: 44px; border: 1px solid var(--ink); border-radius: 2px; background: transparent; color: var(--ink); font-size: 13px; font-weight: 600; line-height: 1.5; text-align: center; }
.button:hover { background: var(--wash); color: var(--ink); }
.button.dark { background: var(--ink); color: var(--white); }
.button.dark:hover { background: var(--accent); border-color: var(--accent); }
.button.small { padding: 8px 15px; }
.full { width: 100%; }
main { min-height: 65vh; }
.section { padding: 46px 0 60px; }
.eyebrow, .category { display: block; color: var(--accent); font-size: 11px; font-weight: 650; letter-spacing: 1.1px; text-transform: uppercase; line-height: 1.6; }
.eyebrow { margin-bottom: 14px; }
.category { margin-bottom: 13px; }
.category span { color: var(--muted); letter-spacing: .3px; }
.page-title { max-width: 850px; }
.intro { max-width: 720px; font-size: 17px; color: var(--muted); margin-bottom: 26px; }
.muted { color: var(--muted); }
.notice { border-left: 2px solid var(--accent); background: var(--wash); padding: 12px 16px; font-size: 13px; line-height: 1.7; margin-bottom: 30px; }
.publication-heading { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 26px; }
.publication-heading h1 { font-size: clamp(36px, 4.2vw, 54px); margin-bottom: 0; }
.publication-heading p { font-size: 13px; line-height: 1.8; color: var(--muted); margin-bottom: 0; }
.front-page { display: grid; grid-template-columns: 1.8fr 1fr; gap: 50px; border-top: 1px solid var(--ink); padding-top: 28px; margin-bottom: 50px; }
.story-card { min-width: 0; display: flex; flex-direction: column; border-top: 1px solid var(--line); padding-top: 23px; }
.story-card h3 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; font-size: 25px; line-height: 1.3; letter-spacing: -.25px; }
.story-card h3 a:hover, .story-card h2 a:hover, .contents-item a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.story-card > p { color: var(--muted); font-size: 14px; line-height: 1.8; }
.lead-story { border-top: 0; padding-top: 0; }
.lead-story h2 { font-size: 42px; line-height: 1.17; margin-bottom: 22px; letter-spacing: -.8px; }
.lead-story > p { font-size: 17px; color: var(--ink); line-height: 1.85; }
.story-meta { margin-top: auto; border-top: 1px solid var(--line); padding-top: 8px; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 11px; color: var(--muted); }
.save { border: 0; background: none; padding: 9px 0 9px 10px; min-height: 44px; font-size: 12px; color: var(--ink); }
.save[aria-pressed="true"] { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.contents { border-left: 1px solid var(--line); padding-left: 30px; min-width: 0; }
.contents > h2 { font-family: inherit; font-size: 13px; font-weight: 650; letter-spacing: 0; padding-bottom: 15px; border-bottom: 1px solid var(--line); }
.contents-item { margin-bottom: 20px; }
.contents-item .category { font-size: 10px; margin-bottom: 7px; }
.contents-item h3 { font-family: Georgia, "Times New Roman", serif; font-size: 20px; font-weight: 400; line-height: 1.35; margin-bottom: 5px; }
.contents-item small { color: var(--muted); font-size: 11px; }
.story-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 30px; }
.section-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; margin-bottom: 23px; }
.section-heading h2 { margin-bottom: 0; }
.text-link { display: inline-block; font-size: 13px; font-weight: 600; color: var(--accent); text-decoration: underline; text-underline-offset: 4px; padding-block: 5px; }
.actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.subscription-note, .membership-summary { border-block: 1px solid var(--ink); display: flex; align-items: center; justify-content: space-between; gap: 50px; padding: 30px 0; margin-block: 45px; }
.subscription-note > :first-child, .membership-summary > :first-child { max-width: 720px; }
.subscription-note > :last-child { flex-shrink: 0; }
.subscription-note p, .membership-summary p { margin-bottom: 0; }
.subscription-note .muted { font-size: 12px; margin-top: 12px; }
.membership-summary { margin-top: 30px; }
.membership-summary .button { flex-shrink: 0; }
.search { max-width: 440px; }
.filters { display: flex; flex-wrap: wrap; gap: 5px 8px; border-block: 1px solid var(--line); padding-block: 12px; margin-bottom: 14px; }
.filter { min-height: 40px; border: 1px solid transparent; border-radius: 2px; padding: 7px 11px; background: transparent; font-size: 12px; color: var(--muted); }
.filter:hover { color: var(--ink); border-color: var(--line); }
.filter.active { background: var(--ink); color: var(--white); }
.result-count { font-size: 12px; color: var(--muted); margin-bottom: 20px; }
.plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; margin-bottom: 32px; }
.plan { border-top: 2px solid var(--ink); padding-top: 23px; display: flex; flex-direction: column; align-items: start; min-width: 0; }
.plan h2 { font-size: 28px; margin-bottom: 8px; }
.price { font-family: Georgia, "Times New Roman", serif; font-size: 38px; letter-spacing: -1px; line-height: 1.3; margin: 10px 0 22px; }
.price small { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; display: block; font-size: 12px; letter-spacing: 0; color: var(--muted); margin-top: 6px; }
.plan > p:not(.price) { color: var(--muted); font-size: 14px; }
.plan ul { padding-left: 18px; margin: 0 0 28px; font-size: 13px; line-height: 1.8; }
.plan li { padding-block: 4px; }
.plan .actions, .plan > .button { margin-top: auto; }
.two-col { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; align-items: start; }
.two-col > * { min-width: 0; }
.two-col > div > h2 { margin-top: 30px; }
.two-col > .panel > h2:first-child { margin-top: 0; }
.panel { border: 1px solid var(--line); padding: 27px; }
.panel h2, fieldset legend { font-family: inherit; font-size: 18px; font-weight: 600; letter-spacing: 0; line-height: 1.4; }
.panel h3 { font-size: 18px; }
.panel .muted { font-size: 13px; }
.panel > .full + p { margin-top: 16px; margin-bottom: 0; }
.summary-line { display: flex; justify-content: space-between; gap: 20px; padding-block: 13px; border-bottom: 1px solid var(--line); font-size: 14px; }
.summary-line > :last-child { text-align: right; }
.summary-line.total { border-bottom: 0; font-size: 21px; margin-bottom: 18px; }
.empty { border-block: 1px solid var(--line); padding: 34px 0; }
.empty h2 { font-size: 28px; }
.empty p { max-width: 660px; }
.empty > :last-child { margin-bottom: 0; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 35px; margin-block: 35px; }
.steps article { border-top: 1px solid var(--ink); padding-top: 24px; }
.steps h2 { font-size: 26px; }
.steps p { font-size: 14px; color: var(--muted); }
label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 20px; }
input, select { display: block; width: 100%; min-width: 0; min-height: 44px; padding: 11px 12px; border: 1px solid #a8a49c; border-radius: 2px; background: var(--white); color: var(--ink); margin-top: 7px; }
input[type="checkbox"], input[type="radio"] { flex: 0 0 auto; width: 17px; height: 17px; min-height: 0; padding: 0; margin: 4px 7px 0 0; accent-color: var(--accent); }
.check, .option { display: flex; align-items: start; gap: 5px; font-weight: 400; line-height: 1.7; }
.check a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.option { border: 1px solid var(--line); padding: 15px; }
.option small { display: block; color: var(--muted); font-size: 12px; margin-top: 6px; line-height: 1.7; }
fieldset { border: 0; padding: 0; margin: 0 0 24px; min-width: 0; }
fieldset legend { margin-bottom: 18px; padding: 0; }
.error { color: var(--accent); font-size: 13px; overflow-wrap: anywhere; }
.error:empty { margin: 0; }
.tabs { display: flex; align-items: center; gap: 10px 22px; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin-bottom: 36px; padding-bottom: 10px; }
.tabs a { font-size: 13px; padding-block: 10px; min-height: 44px; }
.tabs .active { color: var(--accent); text-decoration: underline; text-underline-offset: 6px; }
.tabs .text-button { margin-left: auto; }
.status { display: inline-block; font-size: 10px; font-weight: 650; text-transform: uppercase; letter-spacing: .8px; border: 1px solid var(--line); padding: 2px 7px; margin-bottom: 9px; }
.status.paid { color: var(--ink); border-color: var(--ink); }
.status.failed, .status.cancelled { color: var(--accent); border-color: var(--accent); }
.order { display: flex; justify-content: space-between; align-items: center; gap: 22px; border-top: 1px solid var(--line); padding: 23px 0; }
.order > div { min-width: 0; }
.order h3 { margin-bottom: 6px; }
.order p { font-size: 12px; margin-bottom: 0; color: var(--muted); overflow-wrap: anywhere; }
.metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; border-block: 1px solid var(--ink); padding-block: 25px; margin-bottom: 40px; }
.metrics strong { display: block; font-family: Georgia, "Times New Roman", serif; font-size: 32px; font-weight: 400; letter-spacing: -.5px; }
.metrics span { font-size: 12px; color: var(--muted); }
.admin-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 25px; margin-bottom: 40px; }
.topic-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
.topic-grid label { padding-block: 12px; border-bottom: 1px solid var(--line); margin: 0; min-height: 48px; }
.detail { max-width: 760px; margin-inline: auto; }
.detail h1 { font-size: clamp(34px, 4vw, 50px); line-height: 1.2; letter-spacing: -1px; }
.article-byline { font-size: 12px; color: var(--muted); padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.article-body { font-family: Georgia, "Times New Roman", serif; font-size: 21px; line-height: 1.9; margin-block: 30px; }
.detail .actions { border-top: 1px solid var(--line); padding-top: 25px; }
.edition { margin-block: 38px; }
.sample-label { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .6px; }
.text-button { border: 0; background: none; color: var(--accent); padding: 10px 0; min-height: 44px; font-size: 13px; text-align: left; text-decoration: underline; text-underline-offset: 4px; }
.danger { color: var(--accent); }
.inline-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.back { display: inline-block; font-size: 13px; color: var(--muted); padding-block: 5px; margin-bottom: 26px; }
.policy { max-width: 780px; }
.policy h2 { font-family: inherit; font-size: 19px; font-weight: 600; letter-spacing: 0; margin-top: 34px; }
.policy p { color: var(--muted); line-height: 1.85; }
dialog { width: 440px; max-width: calc(100% - 32px); max-height: calc(100% - 32px); border: 1px solid var(--ink); border-radius: 2px; padding: 32px; background: var(--paper); color: var(--ink); }
dialog::backdrop { background: #19191988; }
dialog h2 { font-size: 34px; }
dialog .muted { font-size: 13px; }
.close { position: absolute; top: 6px; right: 8px; width: 44px; height: 44px; border: 0; background: transparent; color: var(--muted); font-size: 27px; }
#auth-dialog .eyebrow { margin-right: 28px; }
#auth-toggle { margin-top: 8px; }
.password-hint { display: block; margin-top: 5px; font-weight: 400; font-size: 12px; color: var(--muted); }
#toast { position: fixed; z-index: 10; left: 50%; bottom: 24px; transform: translateX(-50%); max-width: min(520px, calc(100% - 32px)); background: var(--ink); color: var(--white); padding: 13px 20px; font-size: 13px; display: none; }
#toast.visible { display: block; }
footer { border-top: 2px solid var(--ink); padding-block: 26px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
footer .brand { font-size: 24px; }
footer p, footer div { font-size: 11px; color: var(--muted); margin: 0; }
footer div { display: flex; flex-wrap: wrap; gap: 12px 20px; }
footer a:not(.brand) { text-decoration: underline; text-underline-offset: 3px; }
.skip { position: fixed; left: 16px; top: -100px; z-index: 20; padding: 10px 16px; background: var(--white); border: 1px solid var(--ink); }
.skip:focus { top: 10px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (max-width: 1244px) {
  main, footer { margin-inline: 32px; }
}
@media (max-width: 920px) {
  header { flex-wrap: wrap; gap: 12px 24px; padding-top: 20px; }
  header nav { order: 3; width: 100%; justify-content: flex-start; gap: 30px; border-top: 1px solid var(--line); }
  .front-page { gap: 30px; grid-template-columns: 1.5fr 1fr; }
  .lead-story h2 { font-size: 35px; }
  .contents { padding-left: 22px; }
  .story-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 35px; }
  .two-col { grid-template-columns: 1.25fr 1fr; gap: 25px; }
  .panel { padding: 22px; }
  .topic-grid { grid-template-columns: 1fr; }
  .publication-heading { align-items: start; flex-direction: column; gap: 18px; }
  .publication-heading p br { display: none; }
  .subscription-note { gap: 30px; }
  .steps { gap: 24px; }
  .steps h2 { font-size: 23px; }
  footer { flex-wrap: wrap; }
}
@media (max-width: 640px) {
  :root { font-size: 14px; }
  header { margin-inline: 20px; gap: 14px 12px; padding-top: 18px; }
  .brand { font-size: 27px; }
  .header-actions { gap: 14px; }
  #account-button { padding-inline: 13px; }
  header nav { gap: 0; justify-content: space-between; }
  header nav a { font-size: 12px; min-height: 46px; }
  main, footer { margin-inline: 20px; }
  .section { padding-block: 30px 42px; }
  .publication-heading { gap: 15px; margin-bottom: 22px; }
  .publication-heading h1 { font-size: 37px; letter-spacing: -1.1px; }
  .publication-heading p { font-size: 12px; }
  h1 { font-size: 38px; letter-spacing: -1px; }
  h2 { font-size: 27px; }
  .eyebrow { font-size: 10px; margin-bottom: 12px; }
  .notice { font-size: 12px; padding: 11px 13px; margin-bottom: 25px; }
  .front-page { grid-template-columns: 1fr; gap: 30px; padding-top: 23px; margin-bottom: 35px; }
  .lead-story h2 { font-size: 32px; line-height: 1.22; }
  .lead-story > p { font-size: 16px; line-height: 1.85; }
  .contents { border-left: 0; border-top: 1px solid var(--ink); padding: 22px 0 0; }
  .contents > h2 { border-bottom: 0; padding-bottom: 0; margin-bottom: 18px; }
  .contents-item { border-bottom: 1px solid var(--line); padding-bottom: 16px; margin-bottom: 16px; }
  .contents-item h3 { font-size: 21px; }
  .story-grid, .plan-grid, .two-col, .steps, .admin-grid { grid-template-columns: 1fr; }
  .story-grid { gap: 28px; }
  .story-card h3 { font-size: 25px; }
  .story-card > p { font-size: 14px; }
  .section-heading { flex-wrap: wrap; gap: 8px 18px; margin-bottom: 18px; }
  .section-heading h2 { font-size: 26px; }
  .subscription-note, .membership-summary { flex-direction: column; align-items: start; gap: 23px; padding-block: 25px; margin-block: 32px; }
  .subscription-note .muted br { display: none; }
  .intro { font-size: 15px; }
  .filters { gap: 4px; padding-block: 10px; }
  .filter { padding-inline: 9px; min-height: 44px; }
  .plan-grid { gap: 32px; }
  .plan { padding-top: 22px; }
  .plan h2 { font-size: 29px; }
  .price { font-size: 38px; }
  .two-col { gap: 24px; }
  .panel { padding: 21px; }
  .check { font-size: 13px; }
  .topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; }
  .topic-grid label { font-size: 12px; }
  .tabs { gap: 0 21px; margin-bottom: 27px; }
  .tabs a, .tabs .text-button { font-size: 12px; }
  .tabs .text-button { margin-left: 0; }
  .order { flex-direction: column; align-items: start; gap: 14px; }
  .order .actions { gap: 8px 16px; }
  .metrics { gap: 22px; grid-template-columns: 1fr; }
  .metrics > div + div { border-top: 1px solid var(--line); padding-top: 20px; }
  .metrics strong { font-size: 30px; }
  .detail h1 { font-size: 34px; }
  .article-body { font-size: 19px; line-height: 1.9; }
  .detail .actions { align-items: stretch; flex-direction: column; }
  .steps { gap: 20px; }
  .steps h2 { font-size: 27px; }
  dialog { padding: 28px 24px; }
  footer { gap: 16px; padding-block: 24px; }
  footer p { width: 100%; }
  footer div { display: flex; flex-direction: column; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
