/* onichef.app: the app's colors and fonts, served from here (no third party sees a visit). */

@font-face {
  font-family: "Fraunces";
  src: url("/fonts/Fraunces_600SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("/fonts/Figtree_400Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("/fonts/Figtree_600SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --background: #fff9ef;
  --surface: #ffffff;
  --text: #243c34;
  --muted: #5c6b65;
  --accent: #ec897d;
  --accent-soft: #fbe3df;
  --on-accent: #243c34;
  --border: #e8e1d4;
  --radius: 20px;
  --gutter: 16px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #141e1a;
    --surface: #1e2b26;
    --text: #f3eee4;
    --muted: #a9b5af;
    --accent-soft: #3a2a27;
    --border: #2e3d37;
  }
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--background);
  color: var(--text);
  font:
    400 17px / 1.5 "Figtree",
    system-ui,
    sans-serif;
}

h1,
h2 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0;
}

h1 {
  font-size: 30px;
  line-height: 1.2;
}

h2 {
  font-size: 22px;
  line-height: 1.25;
  margin-bottom: 12px;
}

h3 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 16px 0 4px;
}

a {
  color: inherit;
}

main {
  flex: 1;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 0 var(--gutter) 32px;
}

/* Header and footer */

.brand {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 12px var(--gutter);
}

.brand a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font:
    600 22px / 1 "Fraunces",
    Georgia,
    serif;
}

.foot {
  padding: 24px var(--gutter) 32px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

.foot p {
  max-width: 440px;
  margin: 0 auto;
}

/* The recipe */

.loading {
  color: var(--muted);
  text-align: center;
  padding: 48px 0;
}

.recipe {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.head {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.picture {
  width: calc(100% + 40px);
  margin: -20px -20px 4px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius) var(--radius) 0 0;
  background: var(--accent-soft);
}

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.fact {
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  font-size: 15px;
  font-weight: 600;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  text-decoration: none;
}

.button:active {
  opacity: 0.8;
}

.hint {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.ingredients ul,
.steps ol,
.credits {
  margin: 0;
  padding: 0;
}

.ingredients li {
  list-style: none;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.ingredients li:last-child {
  border-bottom: 0;
}

/* One count through all groups of steps, as in the app. */
.steps {
  counter-reset: step;
}

.steps ol {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.steps li {
  list-style: none;
  counter-increment: step;
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 12px;
}

.steps li::before {
  content: counter(step);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 600;
}

.source {
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: var(--muted);
}

.credits li {
  list-style: none;
}

.original {
  align-self: flex-start;
  font-weight: 600;
  color: var(--text);
}

.missing {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
  margin-top: 24px;
}

.missing p {
  margin: 0;
  color: var(--muted);
}

/* The landing page */

.landing {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  padding-top: 48px;
}

.hero-oni {
  width: 180px;
  height: auto;
}

.lead {
  margin: 0;
  max-width: 480px;
  color: var(--muted);
}

.points {
  margin: 8px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.points li {
  list-style: none;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-weight: 600;
}

.soon {
  margin: 8px 0 0;
  font-weight: 600;
}

/* Impressum and Datenschutz */

.legal {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

.legal h2 {
  margin: 16px 0 0;
}

.legal h3 {
  text-transform: none;
  letter-spacing: 0;
  font-size: 17px;
  color: var(--text);
  margin: 8px 0 0;
}

.legal p {
  margin: 0;
}

.legal a,
.foot a {
  color: inherit;
}

.lead-in {
  color: var(--muted);
}

.stand {
  color: var(--muted);
  font-size: 15px;
}

.legal-links {
  margin-top: 8px;
}
