/* The homepage is a working reading table; the card stack and four reading paths
   stay within the first viewport, including small phones. */
@media screen {
  body:has(.reading-table) .site-header{padding-block:16px}
  body:has(.reading-table) .deck-style-switch{margin-top:0;padding-block:8px}
  .reading-table{max-width:1160px;margin:0 auto;padding:24px 24px 20px;scroll-margin-top:0}
  .table-intro{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:18px}
  .table-kicker{display:block;color:var(--lune-brass);font:12px/1.7 var(--sans);letter-spacing:.12em}
  .table-intro h1{margin:6px 0 0;font-size:clamp(30px,3.5vw,44px);line-height:1.45;font-weight:400;letter-spacing:.04em}
  .table-intro p{margin:0;font-size:15px;line-height:1.8;color:var(--lune-muted)}
  .table-workspace{display:grid;grid-template-columns:minmax(0,.94fr) minmax(0,1.06fr);gap:32px;align-items:stretch;border-block:1px solid var(--border);padding-block:16px}
  .table-daily{position:relative;display:flex;align-items:center;gap:24px;width:100%;min-width:0;padding:20px 22px 20px 28px;border:1px solid #bfa77950;border-radius:48% 48% 8px 8px / 12% 12% 8px 8px;background:radial-gradient(ellipse at 45% 30%,#3a4d36 0%,#263c2d 48%,#1c2d23 85%);color:var(--lune-ivory);text-align:left;cursor:pointer;isolation:isolate}
  .table-daily:before{content:'';position:absolute;inset:10px;border:1px solid #d4bb8330;border-radius:inherit;pointer-events:none}
  .table-daily-art{position:relative;display:block;flex:0 0 126px;height:212px}
  .table-deck-face{position:absolute;inset:9px 0 0;display:block;width:126px;height:202px;transform:rotate(-5deg);filter:drop-shadow(0 9px 10px #0b151b80);transition:transform .25s}
  .table-deck-face svg{width:100%;height:100%;display:block}
  .table-deck-shadow{position:absolute;display:block;inset:10px 1px 3px;border:1px solid #9e8c64;border-radius:8px;background:#1b2c22;transform:rotate(7deg)}
  .table-deck-shadow.second{transform:rotate(15deg);z-index:-1}
  .table-deck-spark{position:absolute;right:-18px;top:-8px;color:var(--lune-brass);font-size:38px;line-height:1}
  .table-daily-copy{position:relative;display:flex;flex-direction:column;gap:10px;min-width:0;z-index:1}
  .table-date{font-size:12px;color:var(--lune-brass);letter-spacing:.12em}
  .table-daily-copy strong{font:400 26px/1.5 var(--serif);color:var(--lune-ivory)}
  .table-daily-copy strong>span{display:inline-block;color:var(--lune-brass);font-size:21px}
  .table-daily-help{font-size:15px;line-height:1.75;color:var(--lune-copy)}
  .table-daily-copy small{font-size:12px;line-height:1.7;color:var(--lune-muted)}
  .table-daily:hover .table-deck-face{transform:translateY(-6px) rotate(-1deg)}
  .table-daily:hover{border-color:var(--lune-brass)}
  .table-modes{min-width:0}
  .table-modes-heading{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin-bottom:8px}
  .table-modes-heading h2{margin:0;font:400 19px/1.6 var(--serif)}
  .table-modes-heading>span{font-size:11px;line-height:1.7;color:var(--lune-muted)}
  .table-mode{display:grid;grid-template-columns:28px minmax(0,1fr) auto 16px;gap:12px;align-items:center;width:100%;min-height:69px;margin:0;padding:9px 0;background:transparent;color:var(--lune-copy);border:0;border-bottom:1px solid var(--border);text-align:left;cursor:pointer;transition:background .15s}
  .table-mode:last-child{border-bottom:0}
  .table-mode-mark{font:24px/1.4 var(--serif);color:var(--lune-brass);text-align:center}
  .table-mode-copy{display:flex;flex-direction:column;gap:2px;min-width:0}
  .table-mode-copy strong{font:400 19px/1.45 var(--serif);color:var(--lune-ivory)}
  .table-mode-copy small{font-size:12px;line-height:1.65;color:var(--lune-muted)}
  .table-mode-meta{font-size:13px;line-height:1.7;text-align:right;color:var(--lune-brass)}
  .table-mode-meta>span{display:block;font-size:10px;color:var(--lune-muted)}
  .table-mode-arrow{font-size:18px;color:var(--lune-brass);transition:transform .2s}
  .table-mode:hover{background:#d4bb830a}
  .table-mode:hover .table-mode-arrow{transform:translate(2px,-2px)}
  .table-resume{width:100%;display:flex;align-items:center;gap:12px;padding:12px 0;background:transparent;border:0;border-bottom:1px solid var(--border);text-align:left;color:var(--lune-brass);cursor:pointer}
  .table-resume>span:first-child{font-size:25px}
  .table-resume>span:nth-child(2){display:flex;align-items:baseline;flex:1;flex-wrap:wrap;gap:5px 16px;min-width:0}
  .table-resume strong{font-size:14px;font-weight:400}
  .table-resume small{font-size:12px;color:var(--lune-muted)}
  .table-resume:hover strong{text-decoration:underline;text-underline-offset:4px}
  .table-footnote{display:flex;gap:8px;align-items:baseline;margin:12px 0 0;font-size:12px;line-height:1.8;color:var(--lune-muted)}
  .table-footnote>span{color:var(--lune-brass)}
  .table-shelf{max-width:1160px;margin:24px auto 0;padding:24px 24px 40px;border-top:1px solid var(--border)}
  .table-shelf-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:22px}
  .table-shelf-heading h2{margin:5px 0 0;font:400 27px/1.5 var(--serif)}
  .table-shelf-heading>a{display:inline-flex;align-items:center;gap:16px;min-height:44px;color:var(--lune-brass);font-size:14px}
  .table-shelf-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
  .table-shelf-card{display:flex;align-items:center;gap:24px;min-width:0;background:transparent;color:var(--lune-copy);border:0;text-align:left;padding:0;cursor:pointer}
  .table-shelf-art{display:block;width:92px;height:147px;flex-shrink:0;transition:transform .2s}
  .table-shelf-card:hover .table-shelf-art{transform:rotate(-3deg) translateY(-3px)}
  .table-shelf-card>span:last-child{display:flex;flex-direction:column;gap:8px;min-width:0}
  .table-shelf-card strong{font:400 22px/1.6 var(--serif);color:var(--lune-ivory)}
  .table-shelf-card small{font-size:13px;line-height:1.7;color:var(--lune-muted)}
  .table-shelf-link{font-size:12px;color:var(--lune-brass)}
  .table-about{margin-top:30px;border-top:1px solid var(--border)}
  .table-about>summary{display:flex;align-items:center;justify-content:space-between;min-height:56px;font-size:14px;color:var(--lune-copy);cursor:pointer;list-style:none}
  .table-about>summary::-webkit-details-marker{display:none}
  .table-about>summary>span{color:var(--lune-brass);font-size:20px;transition:transform .2s}
  .table-about[open]>summary>span{transform:rotate(45deg)}
  .table-about p{font-size:15px;line-height:1.9;max-width:56em;margin:0 0 18px;color:var(--lune-muted)}
  .reading-table button:focus-visible,.table-shelf :focus-visible{outline:2px solid var(--lune-brass);outline-offset:4px}
}
@media screen and (max-width:900px){
  .table-workspace{gap:22px;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr)}
  .table-daily{gap:14px;padding-inline:22px}
  .table-daily-art{flex-basis:95px;height:174px}
  .table-deck-face{width:95px;height:156px}
  .table-deck-shadow{inset:10px 0 8px}
  .table-daily-copy strong{font-size:23px}
  .table-modes-heading{align-items:flex-start;flex-direction:column;gap:0}
  .table-mode{min-height:66px;gap:8px;grid-template-columns:22px minmax(0,1fr) auto 12px}
  .table-mode-copy strong{font-size:18px}
  .table-shelf-card{gap:14px}
  .table-shelf-art{width:72px;height:115px}
}
@media screen and (max-width:680px){
  body:has(.reading-table) .site-header{padding-block:12px}
  body:has(.reading-table) .deck-style-switch{padding-block:6px}
  .site-header{padding:12px 20px;gap:14px;flex-wrap:nowrap;min-height:68px}
  .site-header .brand{gap:8px;order:0;flex-shrink:0}
  .brand-symbol{font-size:25px}
  .brand-word{font-size:23px;letter-spacing:.12em}
  .brand-word small{font-size:9px;margin-top:3px;letter-spacing:.3em}
  .site-header nav{order:1;flex-basis:auto;margin-left:auto;gap:18px;padding-top:0;border:0;justify-content:flex-end}
  .site-header nav a,.site-header nav a:first-child{font-size:13px;line-height:1.5;min-height:44px}
  .site-header nav a:first-child{display:none}
  .site-header .header-draw{display:none}
  .deck-style-switch{margin:0;padding:6px 20px;gap:10px;flex-wrap:nowrap;max-width:none}
  .deck-style-label{font-size:11px;flex-shrink:0}
  .deck-style-switch>div{flex:1;gap:5px}
  .deck-style-switch button{padding:6px 12px;font-size:12px;min-height:38px}
  .deck-style-note{display:none}
  .reading-table{padding:19px 20px 12px}
  .table-intro{display:block;margin-bottom:14px}
  .table-kicker{font-size:10px;letter-spacing:.1em}
  .table-intro h1{font-size:28px;line-height:1.5;margin:2px 0 4px;letter-spacing:.025em}
  .table-intro p{font-size:13px;line-height:1.7}
  .table-desktop-break{display:none}
  .table-workspace{grid-template-columns:minmax(0,1fr);gap:18px;padding:14px 0 0}
  .table-daily{min-height:112px;gap:20px;padding:10px 18px 10px 24px;border-radius:4px 42px 4px 4px}
  .table-daily:before{inset:6px}
  .table-daily-art{flex-basis:62px;height:97px}
  .table-deck-face{inset:0;width:62px;height:99px}
  .table-deck-shadow{inset:0 0 1px;border-radius:4px}
  .table-deck-spark{font-size:23px;top:-5px;right:-14px}
  .table-daily-copy{gap:2px}
  .table-date{font-size:10px;letter-spacing:.09em}
  .table-daily-copy strong{font-size:22px;line-height:1.5}
  .table-daily-help{font-size:12px;line-height:1.7}
  .table-daily-copy small{font-size:10px;line-height:1.7}
  .table-modes-heading{display:flex;flex-direction:row;align-items:baseline;margin-bottom:2px;gap:8px}
  .table-modes-heading h2{font-size:15px;line-height:1.7}
  .table-modes-heading>span{font-size:9px;line-height:1.7}
  .table-mode{min-height:61px;padding:7px 0;gap:10px;grid-template-columns:23px minmax(0,1fr) auto 12px}
  .table-mode-copy{gap:1px}
  .table-mode-copy strong{font-size:18px;line-height:1.45}
  .table-mode-copy small{font-size:11px;line-height:1.7}
  .table-mode-meta{font-size:12px}
  .table-mode-meta>span{font-size:9px}
  .table-mode-mark{font-size:22px}
  .table-resume{padding:10px 0;gap:10px;min-height:49px}
  .table-resume>span:nth-child(2){gap:2px 10px}
  .table-resume strong{font-size:12px}
  .table-resume small{font-size:10px}
  .table-footnote{font-size:10px;line-height:1.7;margin-top:9px}
  .table-shelf{margin-top:14px;padding:23px 20px 26px}
  .table-shelf-heading{align-items:center;margin-bottom:18px;gap:12px}
  .table-shelf-heading h2{font-size:22px}
  .table-shelf-heading>a{font-size:11px;gap:6px;max-width:92px}
  .table-shelf-cards{gap:14px}
  .table-shelf-card{display:flex;flex-direction:column;align-items:flex-start;gap:9px}
  .table-shelf-art{width:min(100%,100px);height:auto;aspect-ratio:5/8}
  .table-shelf-card>span:last-child{gap:4px}
  .table-shelf-card strong{font-size:18px}
  .table-shelf-card small{font-size:10px}
  .table-shelf-link{font-size:10px}
  .table-about{margin-top:22px}
  .table-about>summary{font-size:13px}
  .table-about p{font-size:14px}
}
@media screen and (max-width:360px){
  .site-header{padding-inline:16px;gap:10px}
  .site-header nav{gap:12px}
  .site-header nav a{font-size:12px}
  .brand-word{font-size:21px}
  .brand-symbol{font-size:23px}
  .deck-style-switch{padding-inline:16px;gap:8px}
  .deck-style-switch button{padding-inline:9px}
  .reading-table{padding:16px 16px 10px}
  .table-intro h1{font-size:25px}
  .table-intro p{font-size:12px}
  .table-daily{gap:17px;padding-inline:21px 12px}
  .table-daily-copy strong{font-size:20px}
  .table-daily-help{font-size:11px}
  .table-modes-heading>span{font-size:8px}
  .table-mode{gap:8px;min-height:59px}
  .table-mode-copy strong{font-size:17px}
  .table-mode-copy small{font-size:10px}
  .table-shelf{padding-inline:16px}
}
@media(prefers-reduced-motion:reduce){.table-deck-face,.table-mode-arrow,.table-shelf-art,.table-about>summary>span{transition:none}}
