/* Website of Mampio at mampio.com. Colours and typefaces follow the app (src/mampio/static/mampio/mampio.css), which
   has no dark mode; the site stays light as well. */

@font-face {
  font-family: "Fraunces"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(fonts/fraunces-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Fraunces"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(fonts/fraunces-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Nunito"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(fonts/nunito-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Nunito"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(fonts/nunito-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* The values below are the app's (src/mampio/static/mampio/mampio.css): same colours, pill buttons, cards,
   navbar, and active state, so the website and the app look like one product. The app has no dark mode; neither
   does the site. */
:root {
  color-scheme: light;
  --cream: #fbf6ef;           /* page background */
  --paper: #fffdfb;           /* navbar, cards */
  --paper-deep: #f4ece3;      /* card headers, the Claude section */
  --ink: #3e4a38;             /* text */
  --ink-soft: #6a7463;        /* secondary text */
  --sage: #7d9474;            /* primary buttons */
  --sage-border: #6f8666;
  --sage-hover: #6d8464;
  --sage-dark: #5c7354;       /* headings, links */
  --brand: #6e7b55;           /* the word "Mampio" next to the logo */
  --blush: #f8e6e4;           /* active tab */
  --rose: #8a4d55;            /* text on blush */
  --hover: #f3ece4;           /* outline buttons on hover */
  --line: rgba(125, 148, 116, .28);
  --shadow: 0 .35rem 1.1rem rgba(90, 62, 40, .05);
  --radius: 1.25rem;

  --display: "Fraunces", Georgia, serif;
  --body: "Nunito", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1140px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font: 500 1.0625rem/1.65 var(--body); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sage-dark); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--sage); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 {
  color: var(--sage-dark); font-family: var(--display); font-weight: 560; line-height: 1.1; margin: 0 0 .5em;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2.6rem, 6.2vw, 4.4rem); letter-spacing: -.02em; max-width: 12ch; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); max-width: 20ch; }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; max-width: 60ch; }
strong { font-weight: 700; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
section { padding: clamp(56px, 8vw, 104px) 0; }

/* Buttons, as .btn-primary and .btn-outline-secondary in the app */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: 46px;
  padding: 0 24px; border-radius: 999px; border: 1px solid var(--sage-border); background: var(--sage);
  color: #fff; font-weight: 700; text-decoration: none; transition: background-color .15s, border-color .15s;
}
.button:hover { background: var(--sage-hover); border-color: var(--sage-dark); text-decoration: none; }
.button.quiet { background: transparent; border-color: var(--line); color: var(--ink); }
.button.quiet:hover { background: var(--hover); }

/* Navbar, as in the app: white bar, pill links, the current page on blush */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 10px; padding-bottom: 10px; }
.brand { display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; }
.brand img { height: 1.9rem; width: auto; }
.brand span { color: var(--brand); font: 560 1.45rem/1 var(--display); letter-spacing: -.02em; }
.site-header nav { display: flex; align-items: center; gap: 8px; }
.pill {
  display: inline-flex; align-items: center; min-height: 38px; padding: 0 14px; border: 1px solid var(--line);
  border-radius: 999px; background: var(--paper); color: var(--ink); font-size: .98rem; text-decoration: none;
}
.pill:hover { background: var(--hover); text-decoration: none; }
.site-header nav .button { min-height: 38px; padding: 0 16px; }
@media (max-width: 820px) { .site-header nav .wide { display: none; } }

/* Language switch: the current language is marked like the app's active tab */
.lang { display: inline-flex; padding: 2px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); }
.lang a {
  display: inline-grid; place-items: center; min-width: 38px; height: 32px; padding: 0 10px; border-radius: 999px;
  color: var(--ink); font-size: .88rem; font-weight: 700; text-decoration: none;
}
.lang a:hover { background: var(--hover); }
.lang a[aria-current] { background: var(--blush); color: var(--rose); cursor: default; }
@media (max-width: 440px) {
  .site-header .wrap { gap: 8px; }
  .brand span { font-size: 1.3rem; }
  .site-header nav { gap: 6px; }
  .site-header nav .button { padding: 0 12px; }
  .lang a { min-width: 32px; padding: 0 8px; }
}

/* Hero */
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.lead { font-size: clamp(1.15rem, 1.8vw, 1.28rem); color: var(--ink-soft); max-width: 34ch; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 16px; }
.small { font-size: .95rem; color: var(--ink-soft); }
@media (max-width: 880px) { .hero .wrap { grid-template-columns: minmax(0, 1fr); } }

/* Cards, as .card in the app */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }

/* The live recipe card: the app's recipe header and ingredients section */
.recipe-card { overflow: hidden; border-left: .4rem solid #c9dcc3; }  /* the app's green list accent (.list-accent-basket) */
.recipe-card header { padding: 22px 24px 18px; }
.recipe-card header h2 { font-size: 1.8rem; margin: 0 0 .15em; }
.recipe-card header p { margin: 0; color: var(--ink-soft); font-size: .95rem; }
.recipe-card .body { padding: 16px 20px 20px; border-top: 1px solid var(--line); }
.servings { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.servings h3 { margin: 0; font-size: 1.6rem; color: var(--ink); }
.stepper { display: flex; align-items: center; gap: 10px; color: var(--ink-soft); }
.stepper button {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: transparent;
  color: var(--ink); font: 600 1.2rem/1 var(--body); cursor: pointer;
}
.stepper button:hover:not(:disabled) { background: var(--hover); }
.stepper button:disabled { opacity: .4; cursor: default; }
.stepper output { min-width: 2ch; text-align: center; font-weight: 800; color: var(--ink); font-size: 1.1rem; }
.ingredients { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ingredients li {
  display: flex; gap: 10px; align-items: baseline; padding: 9px 18px; border: 1px solid var(--line);
  border-radius: 999px; background: var(--paper);
}
.ingredients .qty { color: var(--ink-soft); font-variant-numeric: tabular-nums; border-radius: 6px; padding: 0 4px; transition: background-color .6s; }
.ingredients .qty.changed { background: var(--blush); transition: none; }
.card-note { margin: 14px 4px 0; font-size: .95rem; color: var(--ink-soft); }

/* Steps: a real sequence, so they are numbered */
.steps-intro { max-width: 40ch; color: var(--ink-soft); }
.steps { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 48px); counter-reset: step; }
.steps li { counter-increment: step; }
.steps h3::before {
  content: counter(step); display: inline-grid; place-items: center; width: 2rem; height: 2rem; margin-right: 10px;
  border-radius: 50%; background: #e8f0e4; color: #4f6b48; font: 700 1rem/1 var(--body); vertical-align: 3px;  /* the app's green list icon */
}
.phone {
  border: 8px solid var(--ink); border-radius: 36px; overflow: hidden; background: var(--paper);
  max-width: 300px; margin: 0 0 22px; box-shadow: 0 1rem 2rem -1rem rgba(90, 62, 40, .35);
}
@media (max-width: 880px) {
  .steps { grid-template-columns: 1fr; }
  .steps li { display: grid; grid-template-columns: minmax(150px, 220px) 1fr; gap: 24px; align-items: center; }
  .phone { margin: 0; border-width: 7px; border-radius: 30px; }
}
@media (max-width: 480px) { .steps li { grid-template-columns: 1fr; } .phone { max-width: 260px; } }

/* More features: one card with rows, like a department on a shopping list */
.features { list-style: none; margin: 36px 0 0; padding: 0; overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; }
.features li { padding: 20px 24px; border-top: 1px solid var(--line); }
.features li:nth-child(-n+2) { border-top: 0; }
.features li:nth-child(odd) { border-right: 1px solid var(--line); }
.features h3 { font-size: 1.15rem; margin: 0 0 .25em; color: var(--ink); }
.features p { margin: 0; color: var(--ink-soft); }
@media (max-width: 680px) {
  .features { grid-template-columns: 1fr; }
  .features li:nth-child(2) { border-top: 1px solid var(--line); }
  .features li:nth-child(odd) { border-right: 0; }
}

/* Claude and API */
.assistant { background: var(--paper-deep); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.assistant .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.chat { display: grid; gap: 12px; margin: 0; }
.chat p { margin: 0; padding: 12px 18px; border-radius: var(--radius); max-width: 34em; }
.chat .you { background: var(--blush); justify-self: end; border-bottom-right-radius: .4rem; }
.chat .claude { background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); border-bottom-left-radius: .4rem; }
.chat .who { display: block; font-size: .82rem; font-weight: 700; color: var(--ink-soft); margin-bottom: 2px; }
.chat .you .who { color: var(--rose); }
pre {
  margin: 24px 0 12px; padding: 14px 16px; border-radius: .7rem; background: var(--paper); border: 1px solid var(--line);
  overflow-x: auto; font: .86rem/1.6 var(--mono); color: var(--ink);
}
.links { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 880px) { .assistant .wrap { grid-template-columns: minmax(0, 1fr); } }

/* Closing and footer */
.closing .wrap { display: flex; flex-wrap: wrap; gap: 20px 48px; align-items: center; justify-content: space-between; }
.closing h2 { margin: 0; }
.closing .actions { margin: 0; }
.site-footer { background: var(--paper); border-top: 1px solid var(--line); padding: 24px 0 36px; font-size: .95rem; color: var(--ink-soft); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; align-items: center; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 12px 24px; }

/* REST API: text beside a request and its response */
.api .wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.code-card { padding: 18px 20px 20px; min-width: 0; }
.code-title { margin: 0 0 10px; font-weight: 700; }
.code-card pre { margin: 0; background: var(--cream); font-size: .82rem; }
.code-card pre.response { margin-top: 10px; }
@media (max-width: 880px) { .api .wrap { grid-template-columns: minmax(0, 1fr); } }

/* The app in a browser window */
.browser {
  margin: 36px 0 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--paper);
  box-shadow: 0 1.2rem 2.4rem -1.2rem rgba(90, 62, 40, .3);
}
.browser-bar {
  display: flex; align-items: center; gap: 16px; padding: 10px 14px; background: var(--paper-deep);
  border-bottom: 1px solid var(--line);
}
.dots { display: inline-flex; gap: 7px; }
.dots i { width: 11px; height: 11px; border-radius: 50%; background: #dccfc2; }
.address {
  flex: 0 1 360px; margin: 0 auto; padding: 4px 14px; border-radius: 999px; background: var(--paper);
  border: 1px solid var(--line); color: var(--ink-soft); font-size: .85rem; text-align: center;
}
.dots + .address { transform: translateX(-30px); }
@media (max-width: 600px) { .dots + .address { transform: none; } .browser-bar { gap: 10px; } }

/* Legal notice and privacy */
.legal { padding: clamp(40px, 6vw, 72px) 0; }
.legal .wrap { max-width: calc(46rem + 2 * var(--gutter)); }
.legal h1 { font-size: clamp(2rem, 4vw, 2.6rem); max-width: none; margin-top: 1.2em; }
.legal h1:first-of-type { margin-top: 0; }
.legal h2 { font-size: 1.3rem; max-width: none; margin: 1.8em 0 .5em; }
.site-footer nav a[aria-current] { color: var(--ink); }
