* { box-sizing:border-box; }
:root {
  color-scheme: light;
  --paper:#f7f4ee;
  --white:#fffdfa;
  --ink:#202820;
  --muted:#576053;
  --green:#213c32;
  --green-light:#e4ebe1;
  --accent:#a6412e;
  --line:#d8dbce;
  --serif: Georgia, 'Times New Roman', serif;
  font: 16px/1.5 system-ui, sans-serif;
  color:var(--ink);
  background:var(--paper);
}
body { margin:0; min-height:100vh; }
button,input,select { font:inherit; }
button,a,input,select,summary { -webkit-tap-highlight-color:transparent; }
a { color:var(--green); text-underline-offset:.2em; }
button,a,summary { touch-action:manipulation; }
button { cursor:pointer; }
[hidden] { display:none!important; }
.skip { position:absolute; top:-100px; background:white; z-index:10; padding:12px; }
.skip:focus { top:0; }
:focus-visible { outline:3px solid #b05b37; outline-offset:4px; }
.top { border-bottom:1px solid var(--line); }
.top-inner { width:min(1120px, calc(100% - 40px)); margin:auto; display:flex; align-items:center; gap:14px; min-height:76px; }
.brand { display:inline-flex; gap:11px; align-items:center; font:700 30px/1 var(--serif); color:var(--green); text-decoration:none; margin-right:auto; }
.brand img { border-radius:12px; }
.layout { width:min(1120px, calc(100% - 40px)); margin:30px auto 0; min-height:64vh; }
.layout.inside { display:grid; grid-template-columns:184px minmax(0,1fr); gap:38px; }
.nav { display:flex; flex-direction:column; gap:6px; }
.nav a { display:block; color:var(--muted); border-radius:9px; padding:11px 12px; text-decoration:none; font-weight:650; white-space:nowrap; }
.nav a[aria-current] { background:var(--green-light); color:var(--green); }
.nav a:hover { background:var(--green-light); }
main { min-width:0; padding-bottom:30px; }
.site-footer { width:min(1120px, calc(100% - 40px)); margin:28px auto 20px; padding-top:15px; border-top:1px solid var(--line); font-family:var(--serif); color:var(--muted); }
h1,h2,h3 { margin:0; line-height:1.12; overflow-wrap:anywhere; }
h1,h2 { font-family:var(--serif); }
h1 { font-size:clamp(2rem, 5vw, 3.75rem); letter-spacing:-.044em; }
h2 { font-size:1.48rem; }
h3 { font-size:1.05rem; }
p { margin:.55rem 0 0; }
small,.muted { color:var(--muted); }
strong { font-weight:725; }
.intro { margin:7px 0 23px; }
.kicker { margin:0 0 11px; color:var(--accent); letter-spacing:.105em; font-size:.78rem; text-transform:uppercase; font-weight:800; }
.hero { background:var(--green); color:var(--white); border-radius:18px; position:relative; overflow:hidden; display:grid; grid-template-columns:minmax(0,1fr) 27%; gap:25px; align-items:center; padding:clamp(23px,5vw,50px); min-height:310px; }
.hero .kicker { color:#f7b398; }
.hero h1 { font-size:clamp(2.6rem, 7vw, 5rem); }
.hero p { color:#f1eee1; }
.hero .lead { max-width:29rem; margin:12px 0 19px; font-size:1.05rem; }
.receipt { display:grid; align-content:start; max-width:160px; justify-self:center; gap:8px; width:100%; padding:12px 13px 21px; background:#f8ebd1; color:#23382c; border-radius:4px 4px 3px 3px; box-shadow:7px 9px 0 #101d184c; transform:rotate(8deg); border-bottom:4px dashed #213c32; }
.receipt strong { font:700 clamp(11px,2vw,19px)/1 var(--serif); white-space:nowrap; }
.receipt i { display:block; height:2px; background:#8c8876; border-radius:2px; }
.receipt i:nth-child(2n) { width:72%; }
.receipt i:nth-child(4) { height:38px; background:linear-gradient(147deg,#ba5b39 0 36%,#e1bb83 37% 60%,#bbb799 61%); width:100%; }
.card { background:var(--white); border:1px solid var(--line); border-radius:15px; padding:clamp(17px,3vw,25px); margin:16px 0; }
.login { max-width:450px; margin:30px auto; }
.login h1 { font-size:2.55rem; }
.grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px 18px; }
.stack,.job { display:grid; gap:13px; }
.job progress { width:100%; height:.9rem; accent-color:var(--green); }
.row,.actions,.meta { display:flex; flex-wrap:wrap; gap:9px 12px; align-items:center; }
.row { justify-content:space-between; }
.actions { margin-top:14px; }
.meta { margin-top:10px; }
.meta span { border:1px solid var(--line); font-size:.92rem; border-radius:20px; padding:3px 10px; }
.hero .meta span { border-color:#75877b; }
.primary,.secondary,.quiet,.danger { display:inline-flex; align-items:center; justify-content:center; min-height:44px; padding:9px 15px; border:1px solid transparent; border-radius:8px; font-weight:700; text-decoration:none; line-height:1.2; }
.primary { color:white; background:var(--green); }
.hero .primary { color:#252618; background:#f6ddad; padding:13px 17px; }
.secondary { color:var(--green); background:var(--white); border-color:var(--line); }
.quiet { color:var(--green); background:transparent; }
.danger { color:#8e2d2c; background:transparent; }
.compact { padding:6px 9px; font-size:.9rem; }
button:hover,.primary:hover,.secondary:hover { filter:brightness(.95); }
button:disabled { opacity:.56; cursor:wait; }
.field { display:grid; gap:5px; font-weight:630; min-width:0; }
.field small { font-weight:400; }
input:not([type=checkbox]),select { display:block; color:var(--ink); width:100%; min-height:43px; padding:8px 10px; border:1px solid #9ba99b; border-radius:7px; background:white; }
input[type=checkbox] { width:19px; height:19px; margin:0; accent-color:var(--green); flex:0 0 auto; }
.check { display:flex; gap:8px; min-height:39px; align-items:center; }
fieldset { border:0; margin:0; padding:0; min-width:0; }
legend { font-weight:720; margin-bottom:7px; padding:0; }
.form-section { border-top:1px solid var(--line); margin-top:5px; padding-top:15px; }
.message { padding:10px 13px; border-radius:8px; color:#60271d; background:#fae8df; }
.message:empty { display:none; }
.loading { padding:24px; color:var(--muted); }
summary { cursor:pointer; padding:10px 0; color:var(--green); font-weight:720; }
details + details { border-top:1px solid var(--line); }
.items { padding:0; list-style:none; margin:8px 0 0; }
.items>li { border-top:1px solid var(--line); padding:13px 0; }
.items>li:first-child { border-top:0; }
.items>li:last-child { padding-bottom:0; }
.break { overflow-wrap:anywhere; }
.toast { position:fixed; bottom:18px; right:18px; max-width:min(440px, calc(100% - 36px)); background:#234437; color:white; box-shadow:0 8px 28px #15291a29; border-radius:10px; padding:12px 15px; z-index:5; }
.preview-background { margin-top:19px; padding:23px 12px; border:1px solid var(--line); border-radius:14px; background:#e4e8df; }
.paper-image { display:block; width:min(72.5%,290px); height:auto; margin:auto; background:#fff; box-shadow:0 4px 15px #1e382a22; }
.paper-image.wide { width:min(100%,400px); }
.preview-background details { margin-top:14px; }
.newsprint { background:white; color:#171717; margin:auto; width:min(100%,290px); padding:12px 16px 16px; font: 16px/1.3 var(--serif); box-shadow:0 4px 15px #1e382a22; overflow-wrap:anywhere; }
.newsprint.wide { width:min(100%,400px); }
.newsprint.modern { font-family: system-ui,sans-serif; }
.newsprint.modern h2 { font-family:inherit; }
.newsprint .mast { border-block:3px double #222; text-align:center; padding:12px 0; }
.newsprint.modern .mast { border-block:1px solid #777; }
.newsprint .mast h2 { font-size:2em; }
.newsprint article,.newsprint .weather { padding:11px 0; border-bottom:1px solid #a7a7a7; }
.newsprint .weather { border:0; }
.newsprint a { color:inherit; }
.newsprint img { max-width:100%; max-height:169px; width:auto; height:auto; margin:8px auto 2px; display:block; }
.newsprint figure { margin:0; }
.newsprint figcaption,.newsprint small { font-size:.78em; }
.newsprint h3 { font-size:1.16em; }
.newsprint .section { margin:0 0 4px; font-size:.72em; text-transform:uppercase; letter-spacing:.08em; }
.weather p { margin:.3rem 0; }
@media (max-width:760px) {
  .layout.inside { display:block; }
  .layout { margin:14px auto 0; }
  .nav { flex-direction:row; overflow:auto; margin-bottom:20px; scrollbar-width:thin; }
  .nav a { padding:10px; }
}
@media (max-width:470px) {
  .layout,.top-inner,.site-footer { width:calc(100% - 26px); }
  .top-inner { min-height:66px; gap:2px; }
  .brand { font-size:1.4rem; gap:6px; }
  .brand img { width:35px; height:35px; }
  .compact { padding:6px; }
  .grid { grid-template-columns:1fr; }
  .grid.choices { grid-template-columns:repeat(2,minmax(0,1fr)); gap:2px 7px; }
  .hero { grid-template-columns:minmax(0,1fr); gap:0; min-height:0; }
  .receipt { display:none; }
}
@media (prefers-reduced-motion:reduce) { *,*::before,*::after { scroll-behavior:auto!important; } }
