/* ============================================================
   Tablefolk — "Organic" design system tokens & component styles,
   adapted for the Family Cookbook app (server-rendered Blade/Tailwind,
   no build step). This file is the source of truth for the app's look.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Caprasimo&family=Figtree:wght@400;500;600;700&display=swap');

:root {
  --color-bg: #f5ead8;
  --color-surface: #ebddc5;
  --color-text: #201e1d;
  --color-accent: #7a8a5e;
  --color-accent-2: #c67139;
  --color-divider: color-mix(in srgb, #201e1d 16%, transparent);

  /* Tonal ramps — one shared lightness scale so each step of any role
     matches the others in visual weight. */
  --color-neutral-100: #f9f4ed;
  --color-neutral-200: #eee7db;
  --color-neutral-300: #dcd3c4;
  --color-neutral-400: #c0b6a5;
  --color-neutral-500: #a19786;
  --color-neutral-600: #82796a;
  --color-neutral-700: #645c50;
  --color-neutral-800: #474238;
  --color-neutral-900: #2e2b25;

  --color-accent-100: #f0fae1;
  --color-accent-200: #e1eecc;
  --color-accent-300: #ccdbb2;
  --color-accent-400: #aebf92;
  --color-accent-500: #8fa073;
  --color-accent-600: #728157;
  --color-accent-700: #56633f;
  --color-accent-800: #3d472b;
  --color-accent-900: #272e1b;

  --color-accent-2-100: #fff2eb;
  --color-accent-2-200: #ffe1d0;
  --color-accent-2-300: #ffc6a5;
  --color-accent-2-400: #f6a06b;
  --color-accent-2-500: #d67f48;
  --color-accent-2-600: #b2622d;
  --color-accent-2-700: #8c491a;
  --color-accent-2-800: #643312;
  --color-accent-2-900: #402310;

  /* Danger/negative tier — the source design has no red hue, so this is
     tuned to sit in the same warm family rather than a stock Tailwind red. */
  --color-danger-100: #fbe6e1;
  --color-danger-200: #f3cabd;
  --color-danger-300: #e8ab9c;
  --color-danger-600: #b8492f;
  --color-danger-700: #963c26;
  --color-danger-800: #7a2c17;

  --font-heading: "Caprasimo", system-ui, sans-serif;
  --font-body: "Figtree", system-ui, sans-serif;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 28px;

  --shadow-sm: 0 1px 2px color-mix(in srgb, #2e2b25 14%, transparent);
  --shadow-md: 0 3px 10px color-mix(in srgb, #2e2b25 16%, transparent);
  --shadow-lg: 0 12px 32px color-mix(in srgb, #2e2b25 22%, transparent);
}

* { -webkit-tap-highlight-color: transparent; }

html { background: var(--color-bg); }

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

a { color: var(--color-accent-700); }
a:hover { color: var(--color-accent-600); }

::selection { background: color-mix(in srgb, var(--color-accent) 30%, transparent); }

input, textarea, select { font-family: inherit; }
input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]), textarea, select {
  background: var(--color-surface);
  color: var(--color-text);
}
input::placeholder, textarea::placeholder { color: var(--color-neutral-500); opacity: 1; }
input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 1px;
}
input:focus, textarea:focus, select:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 1px;
  border-color: var(--color-accent);
}

/* Scrollbar hidden everywhere, not just styled — a page whose content is
   taller than the viewport (e.g. Home with several sections) was reserving
   width for a visible scrollbar while a shorter page wasn't, so the two
   pages' content columns sat at very slightly different widths/positions.
   Scrolling itself still works; only the bar's own space and rendering are
   removed, on every browser engine (`scrollbar-width` for Firefox,
   `-ms-overflow-style` for old Edge/IE, `::-webkit-scrollbar` for the rest). */
html { scrollbar-width: none; -ms-overflow-style: none; }
::-webkit-scrollbar { display: none; width: 0; height: 0; }

/* Decorative photo-placeholder stripe — used on recipe cards in place of a
   real photo (no image storage in this app), matching the reference design's
   striped placeholder treatment. Purely visual, not tied to any data. */
.recipe-photo-placeholder {
  background-image: repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.18) 0 10px, transparent 10px 20px);
}
