/* Fezziwig's visual direction, carried over from the accepted v0 mockup.
 *
 * Warm paper, a serif for headings, generous tap targets. The v0 file itself
 * is frozen and is not edited; this is the same palette and type expressed as
 * the stylesheet a real application serves.
 *
 * Phone-first. Everything reads from 320px up without horizontal panning, and
 * nothing depends on hover or drag. Status is never carried by colour alone.
 */

:root {
  color-scheme: light;
  --paper: #f6f4ed;
  --surface: #fffefa;
  --ink: #243b32;
  --muted: #62685e;
  --line: #dcded3;
  --green: #284f3d;
  --soft: #e8eee4;
  --amber: #81501d;
  --amber-bg: #faf0dc;
  --danger: #8a2e22;
  --radius: 13px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.5 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; margin: 0; }
h1 { font-size: clamp(27px, 4vw, 40px); line-height: 1.14; letter-spacing: -1px; }
h2 { font-size: 23px; line-height: 1.2; letter-spacing: -0.4px; }
h3 { font-size: 17px; line-height: 1.35; }
p { margin: 0; }
p + p { margin-top: 12px; }

a { color: inherit; }
a:hover { text-decoration-thickness: 2px; }

/* A visible focus ring everywhere, because this is a keyboard-first entry
 * workflow and Tab order is the point. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #a5642e;
  outline-offset: 3px;
}

.skip { position: absolute; top: -100px; left: 16px; z-index: 10; padding: 12px; background: var(--surface); }
.skip:focus { top: 10px; }

.muted { color: var(--muted); }
.small { font-size: 13px; line-height: 1.55; }
.eyebrow {
  font-size: 11px; font-weight: 750; letter-spacing: 1.8px;
  text-transform: uppercase; color: var(--muted);
}

/* -- chrome ------------------------------------------------------------- */

.app-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.header-inner {
  max-width: 1100px; margin: auto; padding: 14px 20px;
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.brand { display: flex; gap: 10px; align-items: center; text-decoration: none; }
.brand-mark {
  display: grid; place-items: center; width: 36px; height: 36px;
  border: 1px solid var(--green); border-radius: 50%;
  font: 30px/1 Georgia; color: var(--green);
}
.brand-word { font: 25px/1 Georgia; letter-spacing: -1px; }
.brand-sub {
  display: block; font: 9px/1.8 system-ui; letter-spacing: 2px;
  text-transform: uppercase; margin-top: 4px; color: var(--muted);
}

.global-nav { display: flex; gap: 4px; flex-wrap: wrap; }
.global-nav a {
  padding: 10px 14px; border-radius: 9px; text-decoration: none;
  font-weight: 600; font-size: 15px;
}
.global-nav a[aria-current="page"] { background: var(--soft); color: var(--green); }
.header-spacer { margin-left: auto; }

/* The route back to the party being planned. Leaving a party's workspace for
 * the global library is where v0 lost people: the tabs disappeared and
 * Shopping felt gone. */
.party-context { background: var(--soft); border-bottom: 1px solid var(--line); }
.context-inner {
  max-width: 1100px; margin: auto; padding: 12px 20px;
  display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap;
}
.context-name { font: 19px/1.3 Georgia; text-decoration: none; color: var(--green); }
.back-to-party {
  display: inline-block; padding: 10px 14px; border-radius: 9px;
  background: var(--surface); border: 1px solid var(--line);
  text-decoration: none; font-weight: 600;
}

main { max-width: 1100px; margin: 0 auto; padding: 24px 20px 64px; }

/* -- cards and lists ---------------------------------------------------- */

.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px; margin-bottom: 14px;
}
.party-card {
  display: flex; gap: 16px; align-items: center;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px; margin-bottom: 12px;
  text-decoration: none;
}
.party-card:hover { border-color: var(--green); }
.calendar-date {
  flex: none; width: 60px; text-align: center; padding: 8px 0;
  border: 1px solid var(--line); border-radius: 10px; background: var(--paper);
}
.calendar-date .month { font-size: 11px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--muted); }
.calendar-date .number { font: 24px/1.1 Georgia; }
.chevron { margin-left: auto; color: var(--muted); }

.menu-section { margin-bottom: 28px; }
.menu-section > h2 {
  padding-bottom: 8px; border-bottom: 1px solid var(--line); margin-bottom: 12px;
}
.menu-item {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 14px 16px; margin-bottom: 10px;
}
.menu-item-head { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.menu-item-head h3 { flex: 1 1 auto; }
.choices { margin-top: 8px; display: flex; gap: 8px; flex-wrap: wrap; }

/* Text, not colour, carries the meaning; the tint is decoration. */
.chip {
  display: inline-block; padding: 4px 10px; border-radius: 999px;
  background: var(--soft); font-size: 13px; color: var(--green);
}
.chip-amber { background: var(--amber-bg); color: var(--amber); }

/* A recipe's own words, shown as typed.
 *
 * `pre` for the line breaks, but not `pre`'s usual monospace-and-overflow:
 * this is prose a cook reads at arm's length on a phone, so it wraps rather
 * than scrolling sideways, and it is set in the body face. `pre-wrap` is what
 * keeps the paragraph breaks somebody typed without also demanding a
 * horizontal scroll for a long line. */
.recipe-text {
  margin: 8px 0 0;
  padding: 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 9px;
  font: inherit;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.empty-state {
  border: 1px dashed var(--line); border-radius: var(--radius);
  padding: 22px; color: var(--muted); background: var(--surface);
}

/* -- forms -------------------------------------------------------------- */

form.stack { max-width: 640px; }
fieldset {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; margin: 0 0 18px;
  background: var(--surface);
}
legend { font-family: Georgia, serif; font-size: 18px; padding: 0 6px; }
.field { margin-bottom: 14px; }
label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.hint { display: block; font-weight: 400; color: var(--muted); font-size: 13px; margin-top: 2px; }

input[type="text"], input[type="url"], input[type="date"], input[type="password"],
input[type="number"], select, textarea {
  width: 100%; padding: 12px; font: inherit;
  background: var(--paper); color: var(--ink);
  border: 1px solid var(--line); border-radius: 9px;
}
textarea { min-height: 120px; resize: vertical; }

.button, button {
  display: inline-block; padding: 12px 18px; font: inherit; font-weight: 600;
  border: 1px solid var(--line); border-radius: 9px;
  background: var(--surface); color: var(--ink); cursor: pointer;
  text-decoration: none;
}
.button-primary { background: var(--green); border-color: var(--green); color: #fff; }
.button-quiet { background: transparent; }
.button-danger { color: var(--danger); border-color: var(--danger); }
.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 8px; }

/* -- messages ----------------------------------------------------------- */

.notice {
  border: 1px solid var(--line); border-left-width: 5px;
  border-radius: 9px; padding: 14px 16px; margin-bottom: 18px;
  background: var(--surface);
}
.notice-error { border-left-color: var(--danger); }
.notice-stale { border-left-color: var(--amber); background: var(--amber-bg); }
.notice strong { display: block; margin-bottom: 4px; }

/* -- unavailable, and honestly so --------------------------------------- */

/* Shopping and Schedule are later slices. They are shown as unavailable
 * rather than as controls that quietly do nothing, which is what the frozen
 * mockup's non-working buttons would become if copied literally. */
.not-yet {
  display: inline-block; padding: 10px 14px; border-radius: 9px;
  border: 1px dashed var(--line); color: var(--muted); font-size: 14px;
}

@media (max-width: 560px) {
  .header-inner { gap: 12px; }
  .global-nav { width: 100%; }
  .global-nav a { flex: 1 1 auto; text-align: center; }
  main { padding: 18px 14px 56px; }
  .menu-item-head { gap: 6px; }
}
