:root {
  color-scheme: light;
  --cream: #faf7f0;
  --paper: #fffdf8;
  --forest: #234d3c;
  --green: #173b2d;
  --sage: #a8b5a2;
  --gold: #c6a15b;
  --text: #292929;
  --muted: #5f655b;
  --rule: #e6dfd1;
  --shadow: 0 12px 32px #29292909;
  --serif: Georgia, 'Times New Roman', serif;
  font-family: system-ui, -apple-system, sans-serif;
  background: var(--cream);
  color: var(--text);
}
* { box-sizing: border-box; }
html { min-height: 100%; }
body { margin: 0; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.08; }
p { line-height: 1.58; }
a { color: var(--forest); }
a, button { -webkit-tap-highlight-color: transparent; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .6; }
:focus-visible { outline: 3px solid #946a28; outline-offset: 4px; }
.skip { position: fixed; z-index: 3; top: 12px; left: 12px; padding: 10px 16px; background: var(--paper); transform: translateY(-200%); }
.skip:focus { transform: translateY(0); }
svg { width: 22px; height: 22px; flex: 0 0 22px; }
.layout { min-height: 100svh; }
.main { max-width: 1200px; margin-inline: auto; padding: 30px 22px 105px; outline: none; }
.signed-in .main { min-width: 0; }
.brand { display: flex; gap: 11px; align-items: center; }
.brand img { flex: none; }
.brand strong { font: 500 26px/.99 var(--serif); display: block; letter-spacing: -.035em; }
.brand span { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .105em; text-transform: uppercase; }
.sidebar { position: fixed; bottom: 0; inset-inline: 0; background: var(--paper); z-index: 2; padding: 5px 8px max(7px, env(safe-area-inset-bottom)); border-top: 1px solid var(--rule); }
.sidebar > .brand, .sidebar-footer { display: none; }
.sidebar nav { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.sidebar nav a { min-height: 53px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 4px; color: var(--muted); text-decoration: none; font-size: 10px; font-weight: 620; border-radius: 10px; }
.sidebar nav a[aria-current], .sidebar nav a:hover { background: #edf0e7; color: var(--forest); }
.page-head { margin-bottom: 26px; }
.page-head h1 { font-size: clamp(42px, 8vw, 67px); letter-spacing: -.055em; overflow-wrap: anywhere; }
.page-head p { color: var(--muted); margin-top: 10px; }
.hero { background: var(--forest); color: var(--cream); padding: clamp(28px, 5vw, 64px); border-radius: 26px; position: relative; overflow: hidden; }
.hero > div:first-child { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(40px, 7vw, 76px); letter-spacing: -.065em; margin: 14px 0 9px; max-width: 11ch; }
.hero p { max-width: 32ch; color: #f0eee4; }
.hero a { margin-top: 22px; }
.eyebrow { color: var(--muted); font-size: 11px; font-weight: 750; letter-spacing: .10em; text-transform: uppercase; }
.hero .eyebrow { color: #ead5a4; }
.plate-art { border: 1px solid #d8bd82; color: #e8cc91; border-radius: 50%; width: 256px; aspect-ratio: 1; display: grid; place-items: center; pointer-events: none; }
.hero .plate-art { position: absolute; right: -104px; bottom: -119px; opacity: .48; }
.plate-art div { position: absolute; border: 1px solid currentColor; border-radius: 50%; width: 80%; height: 80%; }
.plate-art span { font-size: 43px; line-height: 1; }
.button { border: 1px solid transparent; border-radius: 10px; display: inline-flex; min-height: 44px; justify-content: center; align-items: center; gap: 9px; padding: 10px 16px; font-size: 14px; font-weight: 700; text-decoration: none; text-align: center; }
.button svg { width: 18px; height: 18px; flex-basis: 18px; }
.primary { background: var(--forest); color: #fff; }
.primary:hover { background: var(--green); }
.secondary { background: var(--paper); border-color: var(--rule); color: var(--forest); }
.secondary:hover { border-color: var(--forest); }
.light { background: var(--cream); color: var(--forest); }
.light:hover { background: #f0e6cf; }
.section-head { display: flex; align-items: baseline; gap: 12px; margin: 35px 0 14px; }
.section-head h2 { font-size: clamp(25px, 5vw, 36px); letter-spacing: -.035em; }
.section-head > span { color: var(--muted); font-size: 13px; }
.empty { display: grid; justify-items: center; gap: 12px; text-align: center; padding: 31px 18px; background: var(--paper); border: 1px dashed #d4cabb; border-radius: 19px; }
.empty h2 { font-size: 26px; }
.empty p { color: var(--muted); font-size: 14px; max-width: 36ch; }
.empty .button { margin-top: 2px; }
.empty-mark, .card-mark { display: grid; place-items: center; color: var(--forest); background: #ebeee5; border-radius: 12px; width: 53px; height: 53px; }
.card-grid { display: grid; gap: 13px; }
.restaurant-card, .panel, .stat, .visit, .form-card, .detail-summary { background: var(--paper); border: 1px solid var(--rule); box-shadow: var(--shadow); border-radius: 17px; }
.card-link { display: grid; grid-template-columns: 53px minmax(0, 1fr) 22px; align-items: center; gap: 13px; padding: 16px; text-decoration: none; }
.card-link:hover .card-copy h2 { text-decoration: underline; }
.card-link .photo { width: 53px; height: 53px; }
.card-copy h2 { font-size: 25px; overflow-wrap: anywhere; margin: 4px 0 0; }
.card-copy p { color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.card-ratings, .detail-summary { display: grid; grid-template-columns: 2fr 1fr; }
.card-ratings { border-top: 1px solid var(--rule); }
.score-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); min-width: 0; }
.score-pair > div, .combined { min-width: 0; display: flex; flex-direction: column; align-items: center; padding: 12px 5px; gap: 4px; }
.score-pair span, .combined span, .stat span { font-size: 12px; font-weight: 650; color: var(--muted); }
.score-pair strong, .combined strong, .stat strong { font: 500 27px/1 var(--serif); color: var(--forest); }
.score-pair div + div, .combined { border-left: 1px solid var(--rule); }
.combined { background: #f8f0df; border-radius: 0 0 16px; }
.detail-summary .combined { border-radius: 0 16px 16px 0; }
.detail-summary { max-width: 590px; margin-bottom: 18px; }
.detail-summary strong { font-size: 33px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 18px; }
.back { margin-bottom: 14px; display: inline-block; font-weight: 690; padding: 8px 0; }
.visit { padding: 18px; max-width: 710px; margin-bottom: 12px; }
.visit-heading h3 { font-size: 25px; }
.visit .score-pair { background: #edf0e7; border-radius: 10px; margin: 13px 0; max-width: 320px; }
.notes { white-space: pre-wrap; overflow-wrap: anywhere; }
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-top: 14px; }
.photo { background: #ebeee5; color: var(--forest); display: grid; place-items: center; border-radius: 10px; aspect-ratio: 1; overflow: hidden; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.form-card, .panel { max-width: 720px; padding: clamp(17px, 4vw, 30px); }
.form-card, .login form { display: grid; gap: 15px; }
.form-card > button { justify-self: start; }
label, legend { font-size: 14px; color: var(--text); font-weight: 700; }
label { display: grid; gap: 7px; }
label span, legend span, .field-help, .muted { color: var(--muted); font-weight: 500; font-size: 13px; }
label span { display: inline; }
input, textarea, select { background: #fff; border: 1px solid #d2cbbe; border-radius: 9px; color: var(--text); padding: 10px 12px; min-height: 46px; min-width: 0; width: 100%; }
input[type=date] { appearance: none; }
textarea { resize: vertical; }
fieldset { border: none; padding: 0; margin: 0; min-width: 0; }
legend { padding: 0; margin-bottom: 4px; }
fieldset .field-help { margin-bottom: 9px; }
.two-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
#new-restaurant { grid-template-columns: 1fr; }
.form-error { color: #8e292a; font-size: 14px; overflow-wrap: anywhere; }
.form-error:empty { display: none; }
.stat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; max-width: 720px; }
.stat { display: grid; gap: 15px; padding: clamp(14px, 4vw, 26px); }
.stat strong { font-size: 43px; }
.panel { margin: 15px 0; }
.panel h2 { font-size: 27px; }
.panel p { margin: 8px 0 13px; color: var(--muted); }
.panel .toolbar { margin-bottom: 0; }
.panel summary { min-height: 28px; font-weight: 700; cursor: pointer; }
.password-form { display: grid; max-width: 420px; gap: 14px; padding-top: 12px; }
.password-form button { justify-self: start; }
.panel .score-pair { background: #edf0e7; border-radius: 10px; }
.toast { z-index: 5; position: fixed; left: 50%; bottom: calc(77px + env(safe-area-inset-bottom)); transform: translateX(-50%); max-width: calc(100% - 26px); width: max-content; background: var(--forest); padding: 11px 17px; border-radius: 11px; color: #fff; box-shadow: 0 8px 24px #173b2d38; }
.loading { min-height: 35vh; display: grid; place-items: center; color: var(--forest); }
.login { max-width: 975px; margin: min(4vh, 38px) auto 0; border: 1px solid var(--rule); border-radius: 21px; overflow: hidden; background: var(--paper); box-shadow: var(--shadow); }
.login-intro { color: var(--cream); background: var(--forest); position: relative; overflow: hidden; padding: clamp(25px, 6vw, 54px); }
.login-intro .brand span { color: #eadaad; }
.login-intro h1 { position: relative; font-size: clamp(40px, 7vw, 67px); margin: 27px 0 14px; letter-spacing: -.05em; }
.login-intro p { position: relative; max-width: 25ch; color: #f0eee4; }
.login-intro .plate-art { position: absolute; right: -148px; bottom: -95px; opacity: .4; }
.login-panel { padding: clamp(24px, 6vw, 53px); }
.login-panel h2 { font-size: 37px; letter-spacing: -.04em; }
.login-panel > p { color: var(--muted); margin: 8px 0 22px; }
.login form .button { margin-top: 2px; }
.docs { max-width: 790px; }
.docs h2 { margin-top: 26px; }
.docs li { margin: 8px 0; line-height: 1.55; }
@media (min-width: 640px) {
  .hero .plate-art { right: 5%; bottom: -61px; opacity: .72; }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .login { display: grid; grid-template-columns: 1.12fr 1fr; margin-top: min(10vh, 100px); }
  .login-panel { align-self: center; }
  #new-restaurant { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 930px) {
  .signed-in .layout { display: grid; grid-template-columns: 235px minmax(0, 1fr); max-width: 1550px; margin-inline: auto; }
  .signed-in .main { width: 100%; padding: 42px clamp(30px, 4.4vw, 65px) 60px; }
  .sidebar { position: sticky; top: 0; height: 100vh; padding: 29px 16px; border-top: 0; border-right: 1px solid var(--rule); }
  .sidebar > .brand { display: flex; margin: 3px 4px 44px; }
  .sidebar nav { display: grid; grid-template-columns: 1fr; gap: 6px; }
  .sidebar nav a { flex-direction: row; justify-content: flex-start; gap: 13px; padding-inline: 13px; font-size: 14px; }
  .sidebar-footer { display: block; position: absolute; bottom: 25px; left: 22px; color: var(--muted); font-size: 13px; }
  .toast { bottom: 28px; }
}
