:root {
  --green:#822c3a; --green-dark:#611d2a; --gold:#926825; --border:#e5dbc6;
  --light:#fbf2dc; --muted:#695e54;
  color:#312b27; background:#f8f2e5;
}
body {min-height:100vh;background:url("assets/fortune/coin-paper.svg") 12px 7px/260px auto repeat,linear-gradient(115deg,#fbf7ee,#f7efdb 62%,#fcf8ed);}
.preview-bar,.topbar,.nav-wrap {padding-inline:max(28px,calc((100% - 1470px)/2));}
.preview-bar {background:#f1e8d5;border-color:#e0d1b0;color:#5f5341;}
.preview-bar b {color:#6d4c1f;border-color:#cbb890;}
.preview-bar select,.filter-controls select,.search input,.button.secondary {border-color:#ded2be;}
.topbar {height:80px;min-height:0;background:#fffdf7;}
.fortune-brand {display:inline-flex;align-items:center;gap:12px;line-height:1;width:max-content;max-width:100%;}
.fortune-brand img {width:44px;height:44px;}
.fortune-brand>span {display:grid;gap:4px;}
.fortune-brand small {font-size:.77rem;line-height:1.2;color:#69523b;font-weight:700;}
.fortune-brand strong {color:#612235;font:700 1.62rem/.98 Georgia,"Times New Roman",serif;letter-spacing:.07em;}
.profile-avatar {background:#f1dfce;color:#752a36;border:1px solid #e7cab0;}
.nav-wrap {background:#fffdf7;border-color:#e5d7bc;}
#navigation button.active {color:#792535;border-color:#962f3e;}
.scope-note {color:#70665b;}
main {padding-top:22px;}
.page-heading {isolation:isolate;overflow:hidden;position:relative;min-height:204px;display:flex;align-items:center;margin:0 0 21px;padding:24px 36px;
  background:linear-gradient(106deg,#461624 0%,#6d2531 46%,#8a3e39 77%,#682631);
  color:#fff7e5;border:1px solid #6b2830;border-radius:15px;box-shadow:0 5px 15px #73352013;}
.page-heading::before {content:"";position:absolute;pointer-events:none;z-index:-1;inset:8px;border:1px solid #ffd99848;border-radius:10px;}
.page-heading::after {content:"";position:absolute;pointer-events:none;z-index:-1;right:0;top:0;bottom:0;width:54%;background:url("assets/fortune/hero-engraving.svg") right center / auto 100% no-repeat;}
.heading-copy {max-width:65%;position:relative;z-index:1;}
.page-heading .eyebrow {color:#f5d795;display:flex;align-items:center;gap:.45em;line-height:1.3;font-size:.75rem;letter-spacing:.13em;}
.page-heading .eyebrow::before {content:"";width:24px;height:1px;margin-right:4px;background:#dfb870;}
.page-heading h1 {font:600 clamp(1.95rem,2.65vw,2.8rem)/1.16 Georgia,"Times New Roman",serif;letter-spacing:-.025em;color:#fff7e4;margin:9px 0 5px;}
.page-heading p {color:#f2e1da;font-size:.95rem;line-height:1.45;margin:0;}
.today {display:inline-flex;margin-top:14px;align-items:center;gap:8px;padding:6px 10px;background:#42152266;border:1px solid #d9b16d76;border-radius:6px;}
.today>span {width:auto;height:auto;border:0;background:none;color:#f7d391;}
.today svg {width:16px;height:16px;}
.today>div {flex-direction:row;align-items:baseline;gap:8px;}
.today small {color:#f0d3af;font-size:.65rem;letter-spacing:.08em;}
.today strong {color:#fff4d7;font-weight:700;font-size:.9rem;font-variant-numeric:tabular-nums;}
.fortune-art {z-index:0;pointer-events:none;position:absolute;right:clamp(28px,6.8%,94px);bottom:4px;top:6px;display:flex;align-items:flex-end;justify-content:center;width:40%;max-width:360px;}
.fortune-art img {display:block;width:auto;height:auto;max-height:100%;max-width:100%;object-fit:contain;filter:drop-shadow(0 4px 5px #390f1b4d);}
.sheet,.stat {border-color:#e1d6c0;background:#fff;box-shadow:0 3px 10px #66512309;}
.sheet-heading h2 {color:#492633;}
.section-icon {background:#fbefd8;border:1px solid #e8d7b2;color:#876025;}
.entry-status {color:#6e4b17;background:#fff6dc;border-color:#e7d1a3;font-size:.8125rem;font-weight:600;}
.entry-status.saved {color:#225c44;background:#edf7ef;border-color:#cde2d0;}
thead,td.num,th.num {background:#fbf7ed;color:#685940;}
.entry-table td,.entry-table th {border-right-color:#ede6d6;}
.entry-footer {background:#fffcf6;}
.entry-table input.date-input {color:#682b38;background:#fff9ed;}
.history-table .date {color:#67313d;}
.history-table tbody tr:hover,.button.secondary:hover {background:#fcf7ed;}
.entry-table .fixed-project {color:#665647;}
.project-badge:not(.seo):not(.kingdragon) {background:#f9f0e5;border-color:#e9d8bd;color:#70512d;}
.stat.featured {background:#fbf1d9;border-color:#e3cea3;}
.footer-links {display:flex;flex-wrap:wrap;gap:6px 18px;}
.footer-links a {color:#6c503d;text-decoration:underline;text-decoration-color:#cdb99e;text-underline-offset:4px;}
button:focus-visible,a:focus-visible {outline-color:#9b603b;}
input:focus,textarea:focus,select:focus {outline-color:#94534a;}
@media(max-width:1100px) {.preview-bar,.topbar,.nav-wrap{padding-inline:24px;}.page-heading{padding-inline:28px;}.fortune-art{right:5%;max-width:310px;}}
@media(max-width:700px) {
 .preview-bar,.topbar,.nav-wrap{padding-inline:16px;}.topbar{display:flex;height:70px;padding-block:0;gap:10px;}.fortune-brand{gap:8px;}.fortune-brand img{width:37px;height:37px;}.fortune-brand strong{font-size:1.22rem;}.fortune-brand small{font-size:.72rem;}
 main{padding:14px 12px 20px;}.page-heading{min-height:162px;padding:19px 17px;margin-bottom:14px;border-radius:12px;}.page-heading::before{inset:5px;border-radius:8px;}
 .heading-copy{max-width:65%;}.page-heading h1{font-size:clamp(1.48rem,5.7vw,1.95rem);margin:6px 0;}.page-heading .eyebrow{font-size:.60rem;letter-spacing:.06em;gap:3px;}.page-heading .eyebrow::before{width:10px;margin-right:2px;}.page-heading p{font-size:.82rem;line-height:1.4;max-width:33ch;}
 .today{margin-top:9px;padding:4px 7px;gap:5px;}.today>div{gap:5px;}.today small{font-size:.60rem;}.today strong{font-size:.8rem;}.today svg{width:14px;height:14px;}
 .fortune-art{width:34%;right:1.7%;top:0;bottom:0;align-items:center;}.page-heading::after{width:50%;background-size:auto 85%;background-position:48% center;}
 .entry-sheet .sheet-heading{flex-wrap:wrap;}.entry-sheet .entry-status{font-size:.76rem;white-space:normal;}.entry-table .fixed-project{background:#fffbf4;border-color:#e7ddce;}
 .bottom-note{flex-wrap:wrap;gap:6px 14px;}.footer-links{font-size:.78rem;gap:10px;}
}
@media(max-width:360px) {.topbar{padding-inline:12px;}.profile small{max-width:100px;}.fortune-brand strong{font-size:1.1rem;}.page-heading{padding-inline:13px;}.fortune-art{width:32%;}.page-heading .eyebrow::before{display:none;}}
