:root {
  color-scheme: dark;
  --background: #080808;
  --ink: #f2efe8;
  --muted: #b5b1aa;
  --line: #45433f;
  --serif: Didot, "Bodoni MT", "Times New Roman", serif;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--background); color: var(--ink); line-height: 1.5; }
[hidden] { display: none !important; }
a { color: inherit; text-underline-offset: .3em; }
button { color: inherit; font: inherit; }
a, button, summary, label { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 5px; }
::selection { background: var(--ink); color: var(--background); }
.skip-link { position: absolute; z-index: 10; top: 12px; left: 12px; padding: 12px 20px; transform: translateY(-200%); background: var(--ink); color: var(--background); }
.skip-link:focus { transform: translateY(0); }
.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; }
.site-shell {
  --title-size: clamp(1.75rem, 8vw, 2.875rem);
  --safe-top: max(8px, env(safe-area-inset-top, 0px));
  --safe-bottom: max(16px, env(safe-area-inset-bottom, 0px));
  --gutter: clamp(20px, 6.15vw, 36px);
  width: min(100%, 600px);
  height: 100svh;
  min-height: 100svh;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
}
.site-header { position: relative; z-index: 3; display: flex; flex: 0 0 auto; align-items: center; justify-content: space-between; gap: 16px; padding: var(--safe-top) var(--gutter) 0; min-height: calc(44px + var(--safe-top)); }
.creator-name { font-size: .6875rem; font-weight: 400; letter-spacing: .15em; text-transform: uppercase; white-space: nowrap; }
summary { list-style: none; cursor: pointer; }
summary::-webkit-details-marker { display: none; }
.member-menu > summary { display: flex; align-items: center; min-height: 44px; font-size: .75rem; white-space: nowrap; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .35em; }
.member-options { position: absolute; top: 100%; right: var(--gutter); width: min(320px, 87.7%); padding: 16px; border: 1px solid var(--line); background: #111110; box-shadow: 0 12px 32px #0009; text-align: left; }
.member-options p { margin: 0 0 6px; font-size: .8125rem; color: var(--muted); }
.member-options a { display: flex; align-items: center; min-height: 44px; padding-block: 8px; font-size: .875rem; }
.entry { display: flex; flex: 1 1 0; min-height: 0; flex-direction: column; }
/* Keep photograph scale tied to width; only crop the surrounding negative space.
   Source row 390 stays centered, showing rows 180–600 through 110–670.
   The complete card remains visible even in the shortest frame. */
.entry-visual { position: relative; flex: 1 1 0; width: 100%; min-height: calc(min(100vw, 600px) * 420 / 768); max-height: calc(min(100vw, 600px) * 560 / 768); overflow: hidden; }
.entry-visual img { position: absolute; top: 50%; left: 50%; display: block; width: 100%; height: auto; max-width: none; transform: translate(-50%, -25.390625%); }
.entry-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, var(--background), transparent 8%, transparent 88%, var(--background)); pointer-events: none; }
.entry-body { flex: 0 0 auto; padding: 8px var(--gutter) var(--safe-bottom); text-align: center; }
h1 { margin: 0; font-family: var(--serif); font-size: var(--title-size); font-weight: 400; letter-spacing: -.035em; line-height: 1.12; text-wrap: balance; }
.purchase { margin-top: 10px; }
.period-options { display: flex; justify-content: center; gap: 28px; min-width: 0; margin: 0; padding: 0; border: 0; }
.period-option { position: relative; display: flex; align-items: stretch; min-height: 44px; cursor: pointer; color: var(--muted); font-size: .9375rem; }
.period-option input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.period-option > span { position: relative; display: flex; align-items: center; padding: 8px 4px 10px; }
.period-option input:checked + span { color: var(--ink); }
.period-option input:checked + span::after { content: ""; position: absolute; bottom: 5px; left: 4px; right: 4px; height: 1px; background: currentColor; }
.period-option input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 3px; }
.membership-price { margin: 10px 0 0; line-height: 2.375rem; }
.purchase > .membership-price { margin-top: 6px; }
.membership-price > span { display: inline-block; white-space: nowrap; }
.price-amount { font-size: 1.6875rem; font-weight: 400; letter-spacing: -.025em; }
.membership-price small { margin-left: 3px; font-size: .9375rem; color: var(--muted); white-space: nowrap; }
.benefits-trigger { display: flex; align-items: center; justify-content: center; min-height: 44px; margin: 0 auto; padding: 8px 4px; border: 0; border-radius: 0; background: transparent; color: var(--muted); font-size: .9375rem; line-height: 1.5; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .35em; cursor: pointer; }
.entry-button { display: flex; align-items: center; justify-content: center; min-height: 52px; margin-top: 10px; padding: 12px 16px; border: 1px solid var(--ink); border-radius: 2px; text-decoration: none; text-align: center; line-height: 1.4; font-size: 1rem; font-weight: 500; transition: background .18s, border-color .18s; }
.purchase > .entry-button { margin-top: 6px; }
.entry-button-primary { background: var(--ink); color: var(--background); }
.entry-button[aria-disabled="true"] { opacity: .65; cursor: not-allowed; }
.billing-note { margin: 10px 0 0; font-size: .75rem; line-height: 1.5; color: var(--muted); text-align: center; }
.purchase > .billing-note { margin-top: 8px; }
.checkout-note { margin: 12px 0 0; font-size: .8125rem; color: var(--muted); line-height: 1.5; overflow-wrap: anywhere; }
.checkout-note:empty { display: none; }
/* Approved 07 entrance: two quiet choices, with the membership first.
   A minimum viewport height keeps normal iPhone content centered while
   allowing natural scrolling for short screens or enlarged text. */
.welcome-shell { height: auto; }
.welcome { display: flex; flex: 1 0 auto; min-height: 100svh; flex-direction: column; justify-content: center; gap: clamp(48px, 8svh, 68px); padding: max(24px, env(safe-area-inset-top, 0px)) var(--gutter) max(24px, env(safe-area-inset-bottom, 0px)); text-align: center; }
.welcome-description { margin: 8px 0 24px; color: var(--muted); font-size: 1rem; line-height: 1.5; }
.welcome .entry-button { gap: 12px; width: 100%; margin: 0; }
.welcome-community h2 { margin: 0; font-size: 1.125rem; line-height: 1.35; font-weight: 400; }
.welcome-access { margin: 6px 0 16px; color: var(--muted); font-size: .875rem; line-height: 1.5; }
.entry-button-secondary { border-color: #78756f; background: transparent; color: var(--ink); font-weight: 400; }
.button-arrow { font-size: 1.25rem; line-height: 1; font-weight: 300; }
.benefits-open, .benefits-open body { overflow: hidden; }
.benefits-dialog { position: fixed; inset: auto 0 0; width: min(100%, 600px); max-width: none; max-height: calc(100svh - max(12px, env(safe-area-inset-top, 0px))); max-height: calc(100dvh - max(12px, env(safe-area-inset-top, 0px))); margin: 0 auto; padding: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; border: 1px solid var(--line); border-bottom: 0; border-radius: 22px 22px 0 0; background: #101010; color: var(--ink); -webkit-overflow-scrolling: touch; }
.benefits-dialog::backdrop { background: rgb(0 0 0 / 35%); }
.benefits-sheet { position: relative; padding: 38px clamp(24px, 6.5vw, 36px) max(16px, env(safe-area-inset-bottom, 0px)); }
.sheet-handle { position: absolute; top: 12px; left: 50%; width: 38px; height: 4px; transform: translateX(-50%); border-radius: 3px; background: #494846; }
.sheet-close { position: absolute; top: 16px; right: 14px; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.sheet-close:focus { outline: none; }
.sheet-close:focus-visible { outline: 1px solid var(--muted); outline-offset: 0; border-radius: 50%; }
.benefits-sheet h2 { margin: 0 36px 20px 0; font-family: var(--serif); font-size: clamp(1.75rem, 8vw, 2.125rem); font-weight: 400; letter-spacing: -.025em; line-height: 1.02; }
/* Initial modal focus belongs to this readable heading, not the close control. */
.benefits-sheet h2:focus { outline: none; }
.benefits-list { margin: 0; padding: 0; list-style: none; }
.benefits-list li { margin: 0; padding: 0; font-size: 1rem; line-height: 1.25; }
.benefits-list li + li { margin-top: 18px; }
.dialog-price { margin-top: 18px; text-align: center; }
.benefits-sheet .entry-button { margin-top: 10px; }
.benefits-sheet .billing-note { margin-top: 8px; }
@media (min-width: 600px) {
  .site-shell { --safe-top: 22px; }
  .creator-name { font-size: .8125rem; }
  .member-menu > summary { font-size: .875rem; }
}
@media (max-width: 350px) {
  .site-header { gap: 12px; }
  .creator-name { font-size: .625rem; letter-spacing: .1em; }
  .member-menu > summary { font-size: .6875rem; }
  .period-options { gap: 22px; }
  .benefits-sheet { padding-inline: 22px; }
  .benefits-sheet h2 { margin-right: 28px; font-size: 1.75rem; }
  .benefits-list li { font-size: 1rem; }
}
@media (hover: hover) {
  .entry-button-primary:hover { background: #dedbd4; border-color: #dedbd4; }
  .entry-button-secondary:hover { background: #141413; border-color: var(--muted); }
  summary:hover, .benefits-trigger:hover { color: var(--ink); }
}
@media (prefers-reduced-motion: reduce) { .entry-button { transition: none; } }

/* Approved concept 41: Eje de obsidiana, with a clear two-line price. */
.benefits-dialog.obsidian-benefits { --benefits-bg: #10100f; --benefits-ink: #f2eee5; --benefits-muted: #b5b1a7; position: fixed; inset: auto 0 0; width: min(100%, 420px); max-width: none; max-height: calc(100svh - max(12px, env(safe-area-inset-top, 0px))); max-height: calc(100dvh - max(12px, env(safe-area-inset-top, 0px))); margin: 0 auto; padding: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; border: 0; border-radius: 0; background: var(--benefits-bg); color: var(--benefits-ink); font-family: Arial, Helvetica, sans-serif; -webkit-overflow-scrolling: touch; }
.benefits-dialog.obsidian-benefits::backdrop { background: rgb(0 0 0 / 45%); }
.obsidian-benefits .benefits-sheet { position: relative; display: flex; flex-direction: column; min-height: 590px; padding: 28px 28px max(28px, env(safe-area-inset-bottom, 0px)); box-shadow: none; }
.obsidian-benefits .benefits-brand { font-size: .6875rem; font-weight: 400; letter-spacing: .22em; line-height: 1.5; }
.obsidian-benefits .sheet-close { position: absolute; top: 13px; right: 14px; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; color: var(--benefits-muted); cursor: pointer; }
.obsidian-benefits .benefits-sheet h2 { max-width: 300px; margin: 22px 0 12px; font-family: Georgia, "Times New Roman", serif; font-size: 2.375rem; font-style: normal; font-weight: 400; letter-spacing: -.035em; line-height: 1.05; }
.obsidian-benefits .benefits-label { margin: 8px 0 0; font-size: .6875rem; font-weight: 400; line-height: 1.5; letter-spacing: .16em; text-transform: uppercase; color: var(--benefits-muted); }
.obsidian-benefits .benefits-list { display: grid; gap: 31px; margin: 26px 0 24px 8px; padding: 0 0 0 28px; border-left: 1px solid #77786e; list-style: none; }
.obsidian-benefits .benefits-list li { position: relative; margin: 0; padding: 0; border: 0; font-size: 1rem; line-height: 1.45; }
.obsidian-benefits .benefits-list li + li { margin-top: 0; }
.obsidian-benefits .benefits-list li::before { content: ""; position: absolute; left: -32px; top: 9px; width: 7px; height: 7px; background: #b9b6a4; }
.obsidian-benefits .benefits-footer { margin-top: auto; padding-top: 8px; }
.obsidian-benefits .dialog-price { margin: 10px 0 22px; text-align: center; line-height: 1.15; }
.obsidian-benefits .dialog-price > span { display: inline-flex; flex-direction: column; align-items: center; gap: 6px; max-width: 100%; white-space: normal; }
.obsidian-benefits .dialog-price .price-amount { display: block; font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: clamp(2.25rem, 10vw, 2.5rem); font-weight: 400; font-variant-numeric: lining-nums tabular-nums; letter-spacing: -.035em; white-space: nowrap; color: var(--benefits-ink); }
.obsidian-benefits .dialog-price small { display: block; margin: 0; font-family: Arial, Helvetica, sans-serif; font-size: .875rem; line-height: 1.4; letter-spacing: .02em; color: var(--benefits-muted); white-space: nowrap; }
.obsidian-benefits .benefits-sheet .entry-button { min-height: 50px; margin: 0; padding: 14px 16px; border-color: var(--benefits-ink); border-radius: 0; background: var(--benefits-ink); color: var(--benefits-bg); font-size: 1rem; font-weight: 500; line-height: 1.3; }
.obsidian-benefits .benefits-sheet .billing-note { margin-top: 13px; color: var(--benefits-muted); font-size: .75rem; }
@media (max-width: 350px) {
  .obsidian-benefits .benefits-sheet { padding-inline: 24px; }
  .obsidian-benefits .benefits-sheet h2 { margin-right: 0; font-size: 2.125rem; }
  .obsidian-benefits .benefits-list { padding-left: 24px; gap: 25px; }
  .obsidian-benefits .benefits-list li::before { left: -28px; }
}
