@import url('https://fonts.googleapis.com/css2?family=Archivo+Black&family=DM+Sans:wght@400;500;600;700&display=swap');

:root { --ink:#161512; --paper:#f5f1e8; --cream:#fffdf7; --yellow:#f5c62b; --red:#e8492f; --muted:#716d63; --line:#d8d1c3; --shadow:0 18px 50px rgba(22,21,18,.12); }
* { box-sizing:border-box; }
html { scroll-behavior:smooth; }
body { margin:0; background:var(--paper); color:var(--ink); font-family:"DM Sans",sans-serif; font-size:16px; }
a { color:inherit; text-decoration:none; }
button,input,textarea { font:inherit; }
.topbar { height:76px; padding:0 clamp(20px,5vw,72px); display:flex; justify-content:space-between; align-items:center; background:var(--ink); color:white; }
.brand { display:flex; align-items:center; gap:12px; font-family:"Archivo Black",sans-serif; letter-spacing:-.02em; }
.brand-mark { width:36px; height:36px; display:grid; place-items:center; background:var(--yellow); color:var(--ink); transform:rotate(-5deg); }
nav { display:flex; gap:28px; font-size:.9rem; font-weight:700; }
nav a { opacity:.55; padding:28px 0 24px; border-bottom:3px solid transparent; }
nav a:hover,nav a.active { opacity:1; border-color:var(--yellow); }
.hero { height:min(670px,76vh); min-height:520px; position:relative; overflow:hidden; background:#211b17; }
.hero>img { width:100%; height:100%; object-fit:cover; object-position:center; }
.hero-shade { position:absolute; inset:0; background:linear-gradient(90deg,rgba(9,8,7,.92) 0%,rgba(9,8,7,.58) 39%,rgba(9,8,7,.06) 72%),linear-gradient(0deg,rgba(9,8,7,.6),transparent 40%); }
.hero-copy { position:absolute; left:clamp(24px,7vw,110px); top:50%; transform:translateY(-54%); color:white; }
.eyebrow { margin:0 0 16px; color:var(--yellow); font-size:.78rem; font-weight:800; text-transform:uppercase; letter-spacing:.17em; }
.eyebrow.dark { color:var(--red); }
h1,h2,h3 { margin:0; font-family:"Archivo Black",sans-serif; line-height:.95; letter-spacing:-.045em; text-transform:uppercase; }
.hero h1 { font-size:clamp(3.2rem,7.4vw,7.8rem); }
.hero h1 em { color:var(--yellow); font-style:normal; }
.next-visit { position:absolute; right:clamp(24px,6vw,92px); bottom:0; width:min(400px,calc(100% - 48px)); padding:25px 30px 27px; background:var(--yellow); color:var(--ink); box-shadow:var(--shadow); }
.next-visit span { display:block; font-size:.72rem; font-weight:800; letter-spacing:.16em; margin-bottom:8px; }
.next-visit b { display:block; font-family:"Archivo Black"; font-size:1.45rem; text-transform:uppercase; }
.next-visit p { margin:5px 0 0; font-size:.9rem; }
.content-shell { max-width:1220px; margin:auto; padding:80px 30px 110px; }
.review-panel { display:grid; grid-template-columns:.75fr 1.25fr; gap:70px; padding:50px; background:var(--cream); border-top:7px solid var(--red); box-shadow:var(--shadow); margin-bottom:100px; }
.review-copy h2,.section-heading h2,.admin-intro h1 { font-size:clamp(2.3rem,4.5vw,4.6rem); }
.review-copy>p:last-child,.admin-intro>p:last-child { color:var(--muted); }
form { display:grid; gap:20px; }
label { display:grid; gap:8px; font-weight:700; font-size:.88rem; }
input,textarea { width:100%; border:1px solid var(--line); background:white; padding:13px 14px; color:var(--ink); border-radius:0; }
input:focus,textarea:focus { outline:3px solid rgba(245,198,43,.4); border-color:var(--ink); }
textarea { resize:vertical; }
.ratings { border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.rating-field { grid-template-columns:1fr 45px; align-items:center; padding:16px 0; }
.rating-field+ .rating-field { border-top:1px solid var(--line); }
.rating-field span { display:grid; }
.rating-field small { color:var(--muted); font-weight:400; }
.rating-field output { grid-column:2; grid-row:1; font-family:"Archivo Black"; font-size:1.7rem; text-align:right; }
.rating-field input { grid-column:1/-1; padding:0; accent-color:var(--red); }
.optional { color:var(--muted); font-weight:400; }
.button { border:0; padding:16px 20px; font-weight:800; cursor:pointer; display:flex; justify-content:space-between; align-items:center; }
.button.primary { background:var(--ink); color:white; }
.button.primary:hover { background:var(--red); }
.section-heading { display:flex; align-items:end; justify-content:space-between; border-bottom:4px solid var(--ink); padding-bottom:22px; }
.count-pill,.current-badge { background:var(--yellow); padding:7px 12px; font-size:.75rem; font-weight:800; text-transform:uppercase; }
.restaurant-card { display:grid; grid-template-columns:70px 1fr 130px; gap:25px; align-items:start; padding:32px 10px; border-bottom:1px solid var(--line); }
.restaurant-card.current { background:rgba(245,198,43,.09); }
.rank { font-family:"Archivo Black"; font-size:1.65rem; color:var(--red); }
.restaurant-title { display:flex; align-items:center; gap:12px; }
.restaurant-title h3 { font-size:1.5rem; }
.restaurant-title span { padding:4px 8px; background:var(--yellow); font-size:.68rem; font-weight:800; text-transform:uppercase; }
.restaurant-main>p { color:var(--muted); margin:7px 0 14px; }
.score-breakdown { display:flex; flex-wrap:wrap; gap:20px; font-size:.82rem; color:var(--muted); }
.score-breakdown b { color:var(--ink); margin-left:4px; }
.big-score { text-align:right; font-family:"Archivo Black"; font-size:2.8rem; }
.big-score small { font-family:"DM Sans"; font-size:.8rem; color:var(--muted); }
details { margin-top:18px; }
summary { cursor:pointer; font-size:.85rem; font-weight:800; }
.reviews { display:grid; gap:10px; margin-top:12px; }
.review { display:grid; gap:8px; }
.review-head { display:flex; justify-content:space-between; align-items:baseline; padding:0 4px; font-size:.85rem; }
.review-head span { color:var(--muted); font-weight:700; }
blockquote { margin:0; padding:16px 18px; border-left:3px solid var(--yellow); background:#fffefa; color:var(--ink); }
blockquote p { margin:0; line-height:1.55; }
.awaiting { font-style:italic; }
body>footer { background:var(--ink); color:white; padding:42px clamp(24px,6vw,90px); display:flex; justify-content:space-between; align-items:center; }
body>footer>span { font-family:"Archivo Black"; }
body>footer>p { margin:0; color:#aaa79f; }
.toast { position:fixed; right:24px; bottom:24px; background:var(--yellow); color:var(--ink); padding:15px 20px; font-weight:800; transform:translateY(130%); transition:.25s; z-index:10; box-shadow:var(--shadow); }
.toast.show { transform:translateY(0); }
.form-error { min-height:1.2em; margin:0; color:#b82b1b; font-weight:700; }
.loading,.empty { padding:40px; text-align:center; color:var(--muted); }
.admin-body { min-height:100vh; background:linear-gradient(135deg,var(--paper),#e9e2d4); }
.admin-main { max-width:1120px; margin:auto; padding:70px 30px 100px; }
.admin-intro { max-width:780px; margin-bottom:50px; }
.admin-intro>p:last-child { font-size:1.15rem; }
.admin-grid { display:grid; grid-template-columns:1fr 1fr; gap:24px; }
.admin-card { background:var(--cream); padding:36px; box-shadow:var(--shadow); border-top:6px solid var(--yellow); }
.admin-card.narrow { max-width:480px; }
.admin-card h2 { font-size:1.8rem; margin-bottom:28px; }
[hidden] { display:none !important; }
.admin-list { display:grid; }
.admin-row { display:flex; justify-content:space-between; gap:20px; align-items:center; padding:16px 0; border-bottom:1px solid var(--line); }
.admin-row .admin-place { display:grid; min-width:0; }
.admin-row span { color:var(--muted); font-size:.82rem; }
.admin-row .current-badge { color:var(--ink); }
.admin-actions { display:flex; align-items:center; justify-content:flex-end; gap:10px; }
.saving-badge { color:var(--muted); font-size:.75rem; font-weight:800; text-transform:uppercase; }
.select-button,.delete-button { width:30px; height:30px; padding:0; border:0; border-radius:50%; display:grid; place-items:center; font-weight:800; line-height:1; cursor:pointer; transition:transform .15s ease,filter .15s ease; }
.select-button { background:var(--yellow); color:var(--ink); }
.delete-button { background:var(--red); color:white; }
.select-button span,.delete-button span { color:inherit; font-size:1.2rem; line-height:1; }
.select-button:hover,.delete-button:hover { transform:scale(1.1); filter:brightness(.95); }
.select-button:focus-visible,.delete-button:focus-visible { outline:3px solid rgba(22,21,18,.25); outline-offset:2px; }

@media (max-width:1100px) {
  .admin-row { align-items:flex-start; }
  .admin-actions { flex-wrap:wrap; max-width:145px; }
}

@media (max-width:760px) {
  .topbar { height:66px; padding:0 18px; }
  nav { gap:15px; font-size:.8rem; }
  nav a { padding:23px 0 19px; }
  .brand { font-size:.86rem; gap:8px; }
  .brand-mark { width:31px; height:31px; }
  .hero { min-height:570px; height:72vh; }
  .hero>img { object-position:65% center; }
  .hero-shade { background:linear-gradient(90deg,rgba(9,8,7,.9),rgba(9,8,7,.25)),linear-gradient(0deg,rgba(9,8,7,.75),transparent); }
  .hero-copy { top:42%; }
  .next-visit { right:24px; left:24px; width:auto; }
  .content-shell { padding:50px 16px 80px; }
  .review-panel { grid-template-columns:1fr; gap:28px; padding:28px 22px; margin-bottom:70px; }
  .restaurant-card { grid-template-columns:42px 1fr 68px; gap:10px; padding:25px 4px; }
  .rank { font-size:1.25rem; }
  .restaurant-title { align-items:flex-start; flex-direction:column; gap:7px; }
  .restaurant-title h3 { font-size:1.15rem; }
  .big-score { font-size:1.7rem; }
  .score-breakdown { gap:9px; }
  .section-heading h2 { font-size:2.6rem; }
  .admin-grid { grid-template-columns:1fr; }
  .admin-main { padding:50px 16px; }
  .admin-card { padding:26px 20px; }
  body>footer { align-items:flex-start; flex-direction:column; gap:8px; }
}
