/* foodogeki.com — one stylesheet for every page.
   Colours are Register A of the Brand Kit (assets/factory/foodogeki_palette.csv): cream is the ground, ink is the
   line and the text, the brights are accents only. Display face is Baloo 2 (self-hosted, SIL OFL); body text is the
   visitor's own system font, so the page makes no request to any third party. */

@font-face { font-family: "Baloo 2"; src: url("../fonts/Baloo2-ExtraBold.woff") format("woff"); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Baloo 2"; src: url("../fonts/Baloo2-Bold.woff") format("woff"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --cream: #EDE9D9; --beige: #D6C1B8; --ink: #37363E; --navy: #3E516F; --grey: #6A6068;
  --green: #4FB84A; --gold: #F7B729; --sky: #4A93C4; --grape: #7672AA; --teal: #5FB6C4; --tomato: #E0503F;
  --display: "Baloo 2", "Arial Rounded MT Bold", "Trebuchet MS", system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1080px; --gutter: 20px; --radius: 14px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.55; }
img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.1; margin: 0 0 .4em; color: var(--ink); letter-spacing: .005em; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.2rem); }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--navy); text-decoration: underline; text-underline-offset: .15em; overflow-wrap: anywhere; }
a:hover { color: var(--ink); }
td, th { overflow-wrap: anywhere; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.small { font-size: .92rem; color: var(--grey); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }

/* skip link: invisible until it has keyboard focus */
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }

/* header */
.site-header { border-bottom: 2px solid var(--beige); background: var(--cream); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; flex-wrap: wrap; padding-block: 10px; }
.brand img { height: 42px; width: auto; }
.nav { display: flex; gap: 6px 22px; flex-wrap: wrap; align-items: center; }
.nav a { font-family: var(--display); font-weight: 700; font-size: 1.05rem; text-decoration: none; color: var(--ink); padding: 6px 2px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--navy); text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 3px; text-decoration-color: var(--gold); }
.nav .ext::after { content: " \2197"; font-size: .8em; }

/* buttons */
.btn { display: inline-block; font-family: var(--display); font-weight: 800; font-size: 1.15rem; line-height: 1; padding: 15px 26px; border-radius: 999px; text-decoration: none; border: 3px solid var(--ink); background: var(--ink); color: #fff; }
.btn:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn-secondary { background: transparent; color: var(--ink); }
.btn-secondary:hover { background: var(--beige); color: var(--ink); border-color: var(--ink); }

/* hero */
.hero { padding-block: 40px 28px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 36px; align-items: center; }
.hero .cta { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin: 22px 0 10px; }
.hero .art img { border-radius: var(--radius); border: 3px solid var(--ink); box-shadow: 0 10px 0 var(--beige); }
.honest { max-width: 44ch; }

/* sections */
.section { padding-block: 36px; }
.section + .section { border-top: 2px solid var(--beige); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li { background: #fff; border: 3px solid var(--ink); border-radius: var(--radius); padding: 20px 20px 16px; position: relative; box-shadow: 0 6px 0 var(--beige); }
.steps li::before { counter-increment: step; content: counter(step); position: absolute; top: -16px; left: 16px; width: 34px; height: 34px; border-radius: 50%; background: var(--gold); border: 3px solid var(--ink); font-family: var(--display); font-weight: 800; display: grid; place-items: center; }
.steps h3 { margin-top: 6px; }
.steps p { margin-bottom: 0; }
.quote { font-family: var(--display); font-weight: 800; font-size: clamp(1.4rem, 3vw, 2rem); color: var(--navy); margin: 28px 0 0; }

/* screenshots: three across on a wide screen, one snap-scrolling row on a phone */
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; list-style: none; margin: 0; padding: 0; }
.shots li { text-align: center; }
.shots img { margin: 0 auto 10px; border-radius: 18px; border: 3px solid var(--ink); background: var(--beige); }
.shots figcaption, .shots .cap { font-family: var(--display); font-weight: 700; font-size: 1.05rem; }

/* social: the platform's glyph with its name beside it, inline SVG so nothing is fetched from anyone */
.social { display: flex; flex-wrap: wrap; gap: 10px 14px; list-style: none; margin: 0 0 20px; padding: 0; }
.social a { display: inline-flex; align-items: center; gap: 8px; font-family: var(--display); font-weight: 700; text-decoration: none; color: var(--ink); background: var(--cream); border: 2px solid var(--ink); border-radius: 999px; padding: 6px 14px 6px 10px; line-height: 1; }
.social a:hover { background: var(--ink); color: #fff; }
.social svg { width: 20px; height: 20px; fill: currentColor; flex: none; }
.social-big { margin: 18px 0 0; gap: 12px 16px; }
.social-big a { font-size: 1.1rem; padding: 10px 20px 10px 14px; border-width: 3px; background: #fff; box-shadow: 0 4px 0 var(--beige); }
.social-big svg { width: 24px; height: 24px; }

/* footer */
.site-footer { border-top: 3px solid var(--ink); background: var(--beige); padding-block: 30px 36px; font-size: .95rem; }
.site-footer .links { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; margin: 0 0 18px; padding: 0; }
.site-footer .links a { font-family: var(--display); font-weight: 700; text-decoration: none; }
.site-footer .links a:hover { text-decoration: underline; }
.site-footer p { margin-bottom: .5em; color: var(--ink); }

/* legal pages (used from page 2 on): a readable measure and a quiet table style */
.doc { max-width: 76ch; padding-block: 32px 48px; }
.doc .meta { color: var(--grey); margin-bottom: 1.6em; }
.doc h2 { margin-top: 1.6em; font-size: 1.45rem; }
.doc h3 { margin-top: 1.3em; }
.doc table { border-collapse: collapse; width: 100%; margin: 1em 0 1.4em; font-size: .95rem; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 8px 10px; border: 1px solid var(--beige); background: #fff; }
.doc th { background: var(--cream); font-family: var(--display); font-weight: 700; }
.doc .table-wrap { overflow-x: auto; }
.doc ul, .doc ol { padding-left: 1.3em; }
.doc li { margin-bottom: .35em; }
.doc th strong { font-weight: inherit; }

/* document furniture: breadcrumb, contents box, and the mark that says a placeholder is still in the text */
.crumbs { font-family: var(--display); font-weight: 700; font-size: .95rem; margin-bottom: 14px; color: var(--grey); }
.crumbs a { text-decoration: none; }
.contents { background: #fff; border: 2px solid var(--beige); border-radius: var(--radius); padding: 10px 16px; margin: 0 0 1.6em; }
.contents summary { font-family: var(--display); font-weight: 700; cursor: pointer; }
.contents ol { margin: 8px 0 4px; padding-left: 1.4em; columns: 2; column-gap: 24px; }
.contents li { break-inside: avoid; margin-bottom: .2em; font-size: .95rem; }
mark.todo { background: #FBE3A0; color: var(--ink); padding: 0 .25em; border-radius: 3px; outline: 2px dashed var(--gold); }

/* the other page shapes */
.stores { display: grid; grid-template-columns: repeat(2, minmax(0, 320px)); gap: 16px; margin: 24px 0; }
.btn-store { text-align: center; }
.btn-off { background: var(--beige); border-color: var(--beige); color: var(--ink); cursor: default; }
.notice { background: #fff; border: 3px solid var(--ink); border-radius: var(--radius); padding: 16px 20px 4px; box-shadow: 0 6px 0 var(--beige); margin: 0 0 1.6em; }
.notice.ok { border-color: var(--green); }
.downloads { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.downloads li { background: #fff; border: 2px solid var(--beige); border-radius: var(--radius); padding: 12px; }
.downloads img { border-radius: 8px; margin: 0 auto 10px; background: var(--cream); max-height: 220px; width: auto; }
.downloads .dl { font-family: var(--display); font-weight: 700; display: block; }
/* "back in a bit": the truck, the sign hung over the hatch, and a slow swing on its strings */
.soon { text-align: center; padding-block: 28px 56px; max-width: 640px; margin: 0 auto; }
.soon-art { position: relative; width: min(100%, 520px); margin: 0 auto 18px; }
.soon-art img { width: 100%; height: auto; }
.soon .sign { position: absolute; left: 31.4%; top: 44%; width: 23.5%; height: auto; display: block; transform-origin: 50% 0; animation: sway 3.4s ease-in-out infinite; }
@keyframes sway { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }
@media (prefers-reduced-motion: reduce) { .soon .sign { animation: none; } }
.soon h1 { margin-top: 6px; }
.soon .lead { font-size: 1.15rem; max-width: 46ch; margin: 0 auto 1em; }

.news-entry { border-top: 2px solid var(--beige); padding-top: 1em; margin-top: 1.4em; }
.news-entry h2 { margin-top: 0; }
.news-entry time { color: var(--grey); font-size: .92rem; }

@media (max-width: 760px) {
  body { font-size: 16px; }
  .hero { padding-block: 24px 16px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 22px; }
  .hero .art { order: -1; }
  .steps { grid-template-columns: 1fr; gap: 26px; }
  .shots { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; padding-bottom: 8px; -webkit-overflow-scrolling: touch; }
  .shots li { flex: 0 0 68%; scroll-snap-align: center; }
  .contents ol { columns: 1; }
  .stores { grid-template-columns: 1fr; }
  .downloads { grid-template-columns: 1fr 1fr; }
}
