/* ate10.com's public feed. The app's look: paper and ink, General Sans, the Zodiak wordmark, score circles. */
@font-face { font-family: "General Sans"; src: url("../fonts/GeneralSans-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "General Sans"; src: url("../fonts/GeneralSans-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "General Sans"; src: url("../fonts/GeneralSans-Semibold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Zodiak"; src: url("../fonts/Zodiak-Bold.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --paper: #f7f7f7; --ink: #1c1c1c; --ink2: #666; --ink3: #999; --white: #fff; --soft: #ebebea; --line: rgba(28,28,28,.1);
  --score-ink: #26161c; --gap: 8px; --edge: 16px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; color-scheme: light; }   /* always light, as the app's look */
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 15px/1.45 "General Sans", -apple-system, "Segoe UI", sans-serif; }
a { color: inherit; }
img { display: block; }

/* The bar: the wordmark on the left, Apple's badge on the right. */
.bar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between;
  padding: calc(env(safe-area-inset-top) + 10px) var(--edge) 10px; background: color-mix(in srgb, var(--paper) 88%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(16px); backdrop-filter: saturate(1.4) blur(16px); border-bottom: 1px solid var(--line); }
/* The wordmark: the app's own shape (an SVG of the share card's lockup), "ate" 40.6px wide as the app's header draws it. */
.logo { display: block; color: #000; line-height: 0; }
.logo svg { display: block; width: 58.7px; height: 28.3px; }
.store img { height: 40px; width: auto; }

main { max-width: 1440px; margin: 0 auto; padding: 0 var(--edge) 40px; }
.intro { padding: 28px 0 4px; }   /* on the grid's left edge */
.intro h1 { margin: 0; font-size: 26px; line-height: 1.15; font-weight: 600; letter-spacing: -.01em; }
.intro p { margin: 6px 0 0; color: var(--ink2); }

/* Cities: from the grid's left edge to its right one; more off the right edge fades out (a scrim), not a hard cut. */
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 16px 0; scrollbar-width: none; }
.chips.more { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 56px), transparent);
  mask-image: linear-gradient(to right, #000 calc(100% - 56px), transparent); }
.chips.less { -webkit-mask-image: linear-gradient(to left, #000 calc(100% - 56px), transparent);
  mask-image: linear-gradient(to left, #000 calc(100% - 56px), transparent); }
.chips.more.less { -webkit-mask-image: linear-gradient(to right, transparent, #000 56px, #000 calc(100% - 56px), transparent);
  mask-image: linear-gradient(to right, transparent, #000 56px, #000 calc(100% - 56px), transparent); }
.chips::-webkit-scrollbar { display: none; }
.chips a { flex: none; padding: 8px 14px; border-radius: 999px; background: var(--soft); text-decoration: none; font-weight: 500; font-size: 14px; white-space: nowrap; }
.chips a[aria-current] { background: var(--ink); color: var(--paper); }

/* The grid: tiles laid into the shortest column (site.js); without script, two plain columns. */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); align-items: start; }
.grid.laid { display: flex; align-items: flex-start; }
.grid .col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: var(--gap); }
.tile { position: relative; display: block; border-radius: 28px;   /* the score's 18 + its 10 in: corner and circle concentric */ overflow: hidden; background: var(--soft); text-decoration: none; color: #fff; }
.tile img { width: 100%; height: auto; }
.tile .cap { position: absolute; inset: auto 0 0 0; padding: 40px 54px 12px 14px; background: linear-gradient(transparent, rgba(0,0,0,.55));
  font-size: 13px; line-height: 1.25; }
.tile .cap b { display: block; font-weight: 600; font-size: 15px; }
.tile .cap span { opacity: .85; }
.score { position: absolute; right: 10px; bottom: 10px; width: 36px; height: 36px; border-radius: 50%; color: var(--score-ink);
  font: 600 14px/36px "General Sans", sans-serif; text-align: center; font-variant-numeric: tabular-nums; }
.score.big { width: 48px; height: 48px; font-size: 18px; line-height: 48px; right: 14px; bottom: 14px; }
.tile:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }

/* Buttons. */
.acts { display: flex; align-items: center; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; height: 40px; padding: 0 20px; border-radius: 999px; background: var(--soft);
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; }

/* The modal: one post over the grid (its own address, so the page behind it is the dish's page). */
.modal { position: fixed; inset: 0; z-index: 20; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(0,0,0,.5); }
.modal[hidden] { display: none; }
.sheet { position: relative; width: min(460px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: var(--white); border-radius: 32px; }   /* the X's 20 + its 12 in */
.m-photo { position: relative; background: var(--soft); }
.m-photo img { width: 100%; height: auto; max-height: 62vh; object-fit: cover; }
.m-body { padding: 18px 20px 22px; }
.m-body h2 { margin: 0; font-size: 20px; font-weight: 600; line-height: 1.2; }
.where { margin: 6px 0 0; color: var(--ink2); }
.when { margin: 4px 0 0; color: var(--ink3); font-size: 13px; }
.x { position: absolute; top: 12px; right: 12px; z-index: 1; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px;
  padding: 0; border: 0; border-radius: 50%; background: rgba(0,0,0,.45); color: #fff; cursor: pointer; }
.x:focus { outline: none; }
.x:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* A dish's own page. */
.dish article { max-width: 560px; margin: 0 auto; padding: 20px 0 8px; }
.hero { position: relative; border-radius: 38px;   /* the big score's 24 + its 14 in */ overflow: hidden; background: var(--soft); max-height: 72vh; }
.hero img { width: 100%; height: 100%; object-fit: cover; }
.dish h1 { margin: 18px 0 0; font-size: 26px; line-height: 1.15; font-weight: 600; }
.dish h2 { margin: 36px 0 14px; font-size: 18px; font-weight: 600; }
.dish article h2 { margin-left: 0; }

.foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; padding: 28px 16px calc(env(safe-area-inset-bottom) + 40px); color: var(--ink2); font-size: 14px; }

@media (min-width: 720px) {
  :root { --gap: 12px; --edge: 28px; }
  .intro { padding-top: 40px; }
  .bar { padding-left: var(--edge); padding-right: var(--edge); }
  .intro h1 { font-size: 34px; }
}
