/* ════════════════════════════════════════════
   No Data No Fun — Life section
   ════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; }

:root {
  --bg:      #F7F7F5;
  --surface: #FFFFFF;
  --text:    #1A1A1A;
  --muted:   #909090;
  --faint:   #E4E4E2;
  --border:  #D0D0CE;

  --font: 'Inter', system-ui, sans-serif;
  --gutter: clamp(1.5rem, 6vw, 5rem);
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: clamp(0.875rem, 1.4vw, 0.9375rem);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

::selection { background: #1A1A1A; color: #F7F7F5; }


/* ── Layout ── */
.layout {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}


/* ── Header ── */
.header {
  border-block-end: 1px solid var(--faint);
  padding: 1.25rem var(--gutter);
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header__back {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  transition: color 150ms ease;
}

.header__back:hover { color: var(--text); }

.header__section {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}


/* ── Main ── */
.main {
  flex: 1;
  padding: 3rem var(--gutter);
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 680px;
}


/* ── Panel ── */
.panel {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.panel__header {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}

.panel__title {
  font-size: 1rem;
  font-weight: 500;
}

.panel__sub {
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.panel__body {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}


/* ── Grocery list input ── */
.list-input {
  width: 100%;
  min-height: 280px;
  background: var(--surface);
  border: 1px solid var(--faint);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.9rem;
  line-height: 1.9;
  padding: 1rem 1.125rem;
  resize: vertical;
  outline: none;
  transition: border-color 150ms ease;
}

.list-input::placeholder { color: var(--muted); }
.list-input:focus { border-color: var(--border); }


/* ── Status ── */
.list-status {
  font-size: 0.62rem;
  color: var(--muted);
  min-height: 1em;
}

.list-status--saved { color: var(--text); }


/* ── Footer ── */
.footer {
  padding: 1.25rem var(--gutter);
  border-block-start: 1px solid var(--faint);
  font-size: 0.65rem;
  color: var(--muted);
}
