/* Days Left style (TEN-65), adapted from the graveyard's. Fonts are served by web itself (OFL, static/fonts/). */
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 500; font-display: swap;
             src: url(fonts/cormorant-garamond-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 600; font-display: swap;
             src: url(fonts/cormorant-garamond-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 500; font-display: swap;
             src: url(fonts/cormorant-garamond-latin-500-italic.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap;
             src: url(fonts/ibm-plex-sans-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap;
             src: url(fonts/ibm-plex-sans-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap;
             src: url(fonts/ibm-plex-sans-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap;
             src: url(fonts/ibm-plex-mono-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap;
             src: url(fonts/ibm-plex-mono-latin-500-normal.woff2) format("woff2"); }
:root { --bg: #0F0E0D; --panel: #161412; --line: #2B2825; --line-soft: #23201D; --stone-line: #34302C;
        --text: #EEEAE4; --text-2: #D9D3CA; --muted: #A29B91; --faint: #8A847B;
        --accent: #FF5B3A; --accent-soft: #FF7A5C; --income: #E9B44C;
        --serif: "Cormorant Garamond", Georgia, serif; --sans: "IBM Plex Sans", "Helvetica Neue", sans-serif;
        --mono: "IBM Plex Mono", ui-monospace, monospace; }
* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; padding-bottom: 64px; background: var(--bg); color: var(--text); font: 16px/1.55 var(--sans); }
header, main, footer { max-width: 1120px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
a { color: var(--text); }
a:hover { color: var(--accent-soft); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0 24px;
         padding-top: 20px; }
header > a { font-family: var(--mono); font-size: 14px; font-weight: 500; letter-spacing: .32em;
             text-transform: uppercase; text-decoration: none; display: inline-flex; align-items: center;
             min-height: 44px; }
nav { display: flex; flex-wrap: wrap; column-gap: 20px; font-size: 14px; }
nav a { text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
main { padding-top: 32px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.1; overflow-wrap: anywhere; }
h1 { font-size: clamp(40px, 7vw, 72px); margin: 0 0 24px; }
h2 { font-size: clamp(30px, 5vw, 40px); margin: 48px 0 20px; }
h3 { font-size: 26px; margin: 32px 0 12px; }
p, ul, dl { margin: 0 0 16px; }
main > p, main > ul, section > p, section > ul { max-width: 46rem; }
li { margin-bottom: 8px; }
code { font-family: var(--mono); font-size: .9em; overflow-wrap: anywhere; }
img { max-width: 100%; height: auto; background: #fff; }
section { margin-top: 72px; }
section > h2:first-child { margin-top: 0; }
.mono { font-family: var(--mono); }
.note, .empty { color: var(--muted); }
.dying-bar { background: var(--accent); color: #140A07; font-weight: 600; font-size: 17px; overflow-wrap: anywhere;
             padding: 16px max(24px, calc((100% - 1072px) / 2)); }
.dying-bar span { font-family: var(--mono); }
.hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr)); gap: 48px;
        align-items: end; margin-top: 24px; }
.hero > section { margin-top: 0; }
.status h1 { display: flex; align-items: center; gap: 10px; margin: 0 0 20px; font-family: var(--mono);
             font-size: 13px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
             color: var(--accent); }
.status h1::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: currentColor;
                     animation: pulse 1.6s ease-in-out infinite; }
.phase-dead h1, .phase-unborn h1 { color: var(--faint); }
.phase-dead h1::before, .phase-unborn h1::before { animation: none; }
@keyframes pulse { 0% { opacity: 1; } 50% { opacity: .3; } 100% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .status h1::before { animation: none; } }
.status p { color: var(--muted); max-width: 30rem; }
.status .label { margin: 24px 0 8px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase;
                 color: var(--faint); }
.status .clock { margin: 0 0 16px; font-family: var(--mono); font-size: clamp(44px, 9vw, 88px); font-weight: 500;
                 line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--text);
                 overflow-wrap: anywhere; }
.status .clock small { font-size: .4em; letter-spacing: 0; color: var(--muted); }
.phase-dying .clock { color: var(--accent); }
.status .lead { font-family: var(--serif); font-size: clamp(28px, 5vw, 40px); line-height: 1.2; color: var(--text); }
dl { display: grid; grid-template-columns: minmax(0, max-content) minmax(0, 1fr); gap: 10px 24px; }
dt { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); padding-top: 3px; }
dd { margin: 0; overflow-wrap: anywhere; }
dl.numbers { grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 28px 24px; margin: 0; }
.numbers div { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.numbers .wide { grid-column: 1 / -1; }
.numbers dd { font-family: var(--mono); font-size: clamp(24px, 3vw, 32px); font-weight: 500; line-height: 1.1;
              font-variant-numeric: tabular-nums; }
.numbers dd.note, .numbers dd.wallet { font-size: 13px; font-weight: 400; line-height: 1.55; color: var(--muted); }
.numbers dd.wallet { font-size: 15px; }
.bar { display: block; width: 100%; height: 8px; }
.panel { border: 1px solid var(--line); background: var(--panel); padding: clamp(16px, 4vw, 28px); }
.panel h2 { font-size: 28px; margin-bottom: 8px; }
.legend { font-family: var(--mono); font-size: 13px; color: var(--income); }
.chart { display: block; width: 100%; height: auto; overflow: visible; }
.cols { display: flex; flex-wrap: wrap; gap: 56px; margin-top: 72px; }
.cols > section { flex: 1 1 300px; min-width: 0; margin-top: 0; }
.cols > section:first-child { flex: 999 1 520px; }
.cols > section + section { margin-bottom: 0; }
.feed { list-style: none; padding: 0; max-width: none; }
.feed li { margin: 0; padding: 16px 0; border-bottom: 1px solid var(--line-soft); overflow-wrap: anywhere; }
.feed li:first-child { padding-top: 0; }
.feed time, .src { font-family: var(--mono); font-size: 13px; color: var(--faint); }
.feed b { font-weight: 600; }
.feed code { font-size: 13px; color: var(--muted); }
.diary, .answer { margin: 6px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.feed li.latest { padding-bottom: 28px; }
.feed li.latest .diary { font-family: var(--serif); font-style: italic; font-size: clamp(24px, 4vw, 30px);
                         line-height: 1.3; }
.shop { list-style: none; padding: 0; }
.shop li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 0; padding: 14px 0;
           border-bottom: 1px solid var(--line-soft); }
.shop li > span:first-child { flex: 1 1 12rem; min-width: 0; overflow-wrap: anywhere; }
.btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border: 1px solid #3A3632;
       text-decoration: none; }
.scroll { overflow-x: auto; border: 1px solid var(--line); margin-bottom: 16px; }
table { width: 100%; min-width: 760px; border-collapse: collapse; font-family: var(--mono); font-size: 14px; }
th, td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
thead th { color: var(--faint); font-weight: 500; border-bottom-color: var(--line); }
td:nth-child(2) { white-space: nowrap; }
td.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
td.pos { color: var(--income); }
td.ref { overflow-wrap: anywhere; min-width: 10rem; }
.pager a, section > p > a { display: inline-flex; align-items: center; min-height: 44px; margin-right: 24px; }
.warning { margin: 24px 0; padding: 16px 20px; border: 2px solid var(--accent); color: var(--accent-soft);
           font-size: 20px; font-weight: 600; }
.amount { font-size: clamp(28px, 6vw, 40px); font-weight: 500; color: var(--text); }
.error { color: var(--accent-soft); font-weight: 600; }
fieldset { min-width: 0; margin: 0 0 24px; padding: 16px 20px; border: 1px solid var(--line);
           background: var(--panel); }
legend { padding: 0 8px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.offers { list-style: none; padding: 0; }
.offers li { margin: 0; }
.offers label { display: flex; align-items: center; gap: 12px; min-height: 44px; overflow-wrap: anywhere; }
input, textarea, button { font: inherit; color: inherit; }
input[type=radio], input[type=checkbox] { flex: none; width: 20px; height: 20px; margin: 0;
                                          accent-color: var(--accent); }
label:has(input[type=checkbox]) { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; }
textarea { display: block; width: 100%; margin-top: 8px; padding: 12px; background: var(--panel);
           color: var(--text); border: 1px solid var(--stone-line); }
button { min-height: 48px; padding: 0 24px; border: 1px solid var(--accent); background: var(--accent);
         color: #140A07; font-weight: 600; cursor: pointer; }
button:hover { background: var(--accent-soft); }
input:focus-visible, textarea:focus-visible, button:focus-visible { outline: 2px solid var(--accent);
                                                                    outline-offset: 2px; }
footer { display: flex; flex-wrap: wrap; gap: 0 24px; margin-top: 96px; padding-top: 16px;
         border-top: 1px solid var(--line); font-family: var(--mono); font-size: 13px; }
footer a { color: var(--muted); display: inline-flex; align-items: center; min-height: 44px; }
@media (max-width: 40rem) {
  dl { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  dd { margin-bottom: 12px; }
  dl.numbers { gap: 24px; }
  .numbers dd { margin-bottom: 0; }
}
