/* Emberly — wood-fired kitchen & cocktail bar. Design tokens. The CMS Colours and Fonts tabs map onto these
   custom properties (every --color-* on :root gets a picker). Designs restyle
   by changing these values and the block styles; never type a brand colour as
   a literal — tint with color-mix(in srgb, var(--color-…) N%, transparent). */
:root {
  /* brand — copper / terracotta */
  --color-primary: #c8693a;        /* buttons, links, highlights */
  --color-primary-dark: #a9532a;   /* hover / pressed */
  --color-accent: #d98a5c;         /* italic subtitles, ornaments, prices */
  /* text */
  --color-secondary: #f4ebe0;      /* headings, strong text */
  --color-default: #cbbcad;        /* body text */
  --color-muted: #9b8b7c;          /* captions, meta */
  /* surfaces — brown-black */
  --color-bg: #1c1512;             /* page background */
  --color-surface: #231b17;        /* alternate sections */
  --color-surface-soft: #2a211c;   /* subtle panels */
  --color-card: #2d231e;           /* cards, inputs */
  --color-tint: #3b2a20;           /* copper-tinted chips / icon wells */
  --color-white: #fffaf3;          /* text on copper buttons */
  --color-line: #43352c;           /* borders, dividers */
  --color-pattern: #3a2c24;        /* the ornamental background pattern */
  /* darkest band (footer, hero shade) */
  --color-dark: #120d0b;
  --color-on-dark: #f4ebe0;

  --font-default: 'EB Garamond', Georgia, 'Times New Roman', serif;
  --font-primary: 'Marcellus', Georgia, serif;
  --font-heading: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-display: 'Great Vibes', 'Brush Script MT', cursive;

  --radius: 0px;
  --radius-sm: 0px;
  --section-max-width: 78rem;
  --header-h: 88px;
  --section-pad-y: 104px;
  --base-size: 17px;
  --ease: cubic-bezier(.2, .75, .25, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: var(--base-size); scroll-behavior: smooth; }
body { font-family: var(--font-default); color: var(--color-default); line-height: 1.65; background: var(--color-bg); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5 { font-family: var(--font-heading); color: var(--color-secondary); font-weight: 600; line-height: 1.12; letter-spacing: .005em; }
a { color: inherit; text-decoration: none; transition: color .2s ease; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }
::selection { background: var(--color-primary); color: var(--color-white); }

.container { max-width: var(--section-max-width); margin: 0 auto; padding: 0 24px; }
section { padding: var(--section-pad-y) 0; position: relative; }
section, footer { overflow-x: clip; }
section.alt { background: var(--color-surface); }
section.dark { background: var(--color-dark); color: color-mix(in srgb, var(--color-on-dark) 82%, transparent); }
section.dark h2, section.dark h3 { color: var(--color-on-dark); }
.hl { color: var(--color-primary); }
section.dark .hl { color: var(--color-accent); }

/* ── Buttons ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; padding: .85rem 1.5rem; border-radius: 0; border: 0; cursor: pointer;
  background: var(--color-primary); color: var(--color-white); font: 400 .9rem var(--font-primary); letter-spacing: .08em; line-height: 1; white-space: nowrap;
  transition: background .2s ease, color .2s ease, transform .2s var(--ease), box-shadow .2s ease; }
.btn svg { width: 17px; height: 17px; flex: none; }
.btn:hover { background: var(--color-primary-dark); transform: translateY(-1px); }
.btn.light { background: var(--color-secondary); color: var(--color-bg); }
.btn.light:hover { background: var(--color-white); }
.btn.ghost { background: transparent; color: var(--color-secondary); box-shadow: inset 0 0 0 1.5px currentColor; }
.btn.ghost:hover { background: var(--color-secondary); color: var(--color-bg); }
.btn.ghost-light { background: transparent; color: var(--color-on-dark); box-shadow: inset 0 0 0 1.5px currentColor; }
.btn.ghost-light:hover { background: var(--color-on-dark); color: var(--color-dark); }
.btn.small { padding: .6rem 1rem; font-size: .85rem; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .55; pointer-events: none; }
.text-link { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; color: var(--color-primary); }
.text-link svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.text-link:hover svg { transform: translateX(3px); }

/* ── Section heads: eyebrow, headline, intro ── */
.eyebrow { display: inline-block; font: italic 500 1.12rem var(--font-heading); letter-spacing: .01em; color: var(--color-accent); }
section.dark .eyebrow { color: var(--color-accent); }
.head { max-width: 720px; margin-bottom: 44px; }
.head h2 { font-size: clamp(2.1rem, 4vw, 3.2rem); margin-top: .2rem; text-wrap: balance; font-weight: 500; }
.head > p:not(.eyebrow) { margin-top: .9rem; max-width: 60ch; }
.head.center { margin-left: auto; margin-right: auto; text-align: center; }
.head.center > p:not(.eyebrow) { margin-left: auto; margin-right: auto; }
.head.row { max-width: none; display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 32px; }
.head.row > div { max-width: 720px; }

/* ── Cards, chips, tags ── */
.card { background: var(--color-card); border: 1px solid var(--color-line); border-radius: var(--radius); }
.chip { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .75rem; border-radius: 0; font: 400 .74rem var(--font-primary); letter-spacing: .08em; text-transform: uppercase; background: var(--color-tint); color: var(--color-accent); }
.tag { display: inline-grid; place-items: center; min-width: 1.9em; height: 1.6em; padding: 0 .4em; border-radius: 6px; font-size: .7rem; font-weight: 700; letter-spacing: .02em;
  border: 1px solid color-mix(in srgb, var(--color-secondary) 25%, transparent); color: var(--color-secondary); }
.tag.popular { border-color: transparent; background: var(--color-primary); color: var(--color-white); }
.price { font: 600 1.15rem var(--font-heading); color: var(--color-accent); white-space: nowrap; }
.muted { color: var(--color-muted); }

/* ── Forms ── */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.form-grid .full { grid-column: 1 / -1; }
.form-grid label, .field-label { display: block; font: 400 .85rem var(--font-primary); letter-spacing: .03em; color: var(--color-secondary); margin-bottom: .45rem; }
.form-grid input, .form-grid select, .form-grid textarea, .input {
  width: 100%; background: transparent; border: 1px solid color-mix(in srgb, var(--color-secondary) 28%, transparent); border-radius: var(--radius-sm); padding: .8rem 1rem; color: var(--color-secondary);
  transition: border-color .2s ease, box-shadow .2s ease; }
.form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus, .input:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 18%, transparent); }
.form-grid ::placeholder { color: var(--color-muted); }
.field-err { color: #b3261e; font-size: .82rem; margin-top: .3rem; }
.form-note { font-size: .82rem; color: var(--color-muted); }
.form-ok { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: var(--radius-sm); background: #e6f4ea; color: #1e5631; }
.form-ok svg { width: 22px; height: 22px; flex: none; margin-top: 2px; }
.form-bad { padding: 12px 16px; border-radius: var(--radius-sm); background: #fdecea; color: #8c1d18; font-size: .9rem; }
.seg { display: inline-flex; padding: 4px; border-radius: 0; background: var(--color-surface); gap: 4px; }
.seg button { border: 0; background: none; padding: .55rem 1.1rem; border-radius: 0; font-family: var(--font-primary); cursor: pointer; color: var(--color-default); }
.seg button.on { background: var(--color-primary); color: var(--color-white); box-shadow: 0 1px 4px color-mix(in srgb, var(--color-secondary) 15%, transparent); }

/* tick list (the tick drawn in CSS so it follows the theme colours) */
.tick-list { list-style: none; display: grid; gap: .55rem; }
.tick-list li { position: relative; padding-left: 1.7rem; }
.tick-list li::before { content: ''; position: absolute; left: 0; top: .25em; width: 1.1rem; height: 1.1rem; border-radius: 50%; background: var(--color-tint); }
.tick-list li::after { content: ''; position: absolute; left: .4rem; top: .48em; width: .3rem; height: .52rem; border: solid var(--color-primary); border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* rating stars (meaning-carrying colour, fixed) */
.stars { display: inline-flex; gap: 2px; color: #e3a008; }
.stars svg { width: 15px; height: 15px; fill: currentColor; }

/* ── Logo ── */
.logo { display: inline-flex; align-items: center; gap: .55rem; font: 400 2.1rem var(--font-display); color: var(--color-secondary); min-width: 0; }
.logo img { max-height: 44px; width: auto; max-width: min(46vw, 220px); object-fit: contain; }
.logo .wordmark { display: inline-flex; flex-direction: column; justify-content: center; line-height: 1.05; min-width: 0; }
.logo .wl { display: block; }
.logo .sub { display: block; margin-top: .2em; font: 400 .3em var(--font-primary); letter-spacing: .2em; text-transform: uppercase; color: var(--color-accent); text-align: center; }

/* ══ Motion: section-enter animations (plugins/motion.client.ts) ══
   Hidden states apply only while html.hg-motion is set and the section has not
   entered the frame yet; --i staggers siblings. Inner elements only. */
.hg-motion [data-anim] { transition: opacity .7s var(--ease) calc(var(--i, 0) * 80ms), transform .8s var(--ease) calc(var(--i, 0) * 80ms); }
.hg-motion section:not(.hg-inview) [data-anim], .hg-motion footer:not(.hg-inview) [data-anim] { opacity: 0; }
.hg-motion section:not(.hg-inview) [data-anim="up"] { transform: translateY(28px); }
.hg-motion section:not(.hg-inview) [data-anim="zoom"] { transform: scale(.94); }
.hg-motion section:not(.hg-inview) [data-anim="left"] { transform: translateX(36px); }
.hg-motion section:not(.hg-inview) [data-anim="right"] { transform: translateX(-36px); }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media (max-width: 760px) {
  :root { --section-pad-y: 64px; }
  .form-grid { grid-template-columns: 1fr; }
  .head { margin-bottom: 30px; }
  /* room for the sticky mobile action bar (MobileActionBar.vue) */
  body { padding-bottom: 68px; }
}

/* grid children may shrink below their content (long words, nowrap buttons) — no sideways overflow */
.grid > *, .layout > * { min-width: 0; }
.seg { flex-wrap: wrap; max-width: 100%; }
@media (max-width: 560px) { .btn { white-space: normal; text-align: center; } }

/* ══ Emberly ornaments ══ */
/* native date/time pickers on the dark theme */
html { color-scheme: dark; }
select option { background: var(--color-card); color: var(--color-secondary); }
.form-grid input, .form-grid select, .form-grid textarea, .input { border-radius: 0; }
.btn { text-transform: none; }
.btn.small { font-size: .8rem; }
.head h2, .copy h2 { font-weight: 500; }
/* the subtle dark ornamental texture — an SVG mask filled with --color-pattern */
.ornate { position: relative; isolation: isolate; }
.ornate::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .55;
  background: var(--color-pattern);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180' fill='none' stroke='black' stroke-width='1.1'%3E%3Cpath d='M90 20c18 0 30 14 30 30s-12 26-26 26-22-10-22-20 8-16 16-16 12 6 12 11'/%3E%3Cpath d='M90 160c-18 0-30-14-30-30s12-26 26-26 22 10 22 20-8 16-16 16-12-6-12-11'/%3E%3Cpath d='M20 90c0-18 14-30 30-30s26 12 26 26-10 22-20 22-16-8-16-16 6-12 11-12'/%3E%3Cpath d='M160 90c0 18-14 30-30 30s-26-12-26-26 10-22 20-22 16 8 16 16-6 12-11 12'/%3E%3Ccircle cx='90' cy='90' r='5'/%3E%3Cpath d='M0 0q20 10 22 30M180 0q-20 10-22 30M0 180q20-10 22-30M180 180q-20-10-22-30'/%3E%3Cpath d='M10 40c8-4 14 2 10 8M170 140c-8 4-14-2-10-8M140 10c4 8-2 14-8 10M40 170c-4-8 2-14 8-10'/%3E%3C/svg%3E") 0 0 / 180px 180px repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180' fill='none' stroke='black' stroke-width='1.1'%3E%3Cpath d='M90 20c18 0 30 14 30 30s-12 26-26 26-22-10-22-20 8-16 16-16 12 6 12 11'/%3E%3Cpath d='M90 160c-18 0-30-14-30-30s12-26 26-26 22 10 22 20-8 16-16 16-12-6-12-11'/%3E%3Cpath d='M20 90c0-18 14-30 30-30s26 12 26 26-10 22-20 22-16-8-16-16 6-12 11-12'/%3E%3Cpath d='M160 90c0 18-14 30-30 30s-26-12-26-26 10-22 20-22 16 8 16 16-6 12-11 12'/%3E%3Ccircle cx='90' cy='90' r='5'/%3E%3Cpath d='M0 0q20 10 22 30M180 0q-20 10-22 30M0 180q20-10 22-30M180 180q-20-10-22-30'/%3E%3Cpath d='M10 40c8-4 14 2 10 8M170 140c-8 4-14-2-10-8M140 10c4 8-2 14-8 10M40 170c-4-8 2-14 8-10'/%3E%3C/svg%3E") 0 0 / 180px 180px repeat; }
/* the copper flourish above section titles (drawn as a mask so it follows the theme) */
.flourish { display: block; width: 92px; height: 18px; margin: 0 auto 14px; background: var(--color-accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 92 18' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M44 9C38 2 28 1 20 5S6 14 2 9M48 9c6-7 16-8 24-4s14 9 18 4'/%3E%3Cpath d='M44 9c-5 5-12 6-17 3M48 9c5 5 12 6 17 3'/%3E%3Cpath d='M42 9l4-4 4 4-4 4z' fill='black'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 92 18' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M44 9C38 2 28 1 20 5S6 14 2 9M48 9c6-7 16-8 24-4s14 9 18 4'/%3E%3Cpath d='M44 9c-5 5-12 6-17 3M48 9c5 5 12 6 17 3'/%3E%3Cpath d='M42 9l4-4 4 4-4 4z' fill='black'/%3E%3C/svg%3E") center / contain no-repeat; }
.head.left .flourish, .flourish.left { margin-left: 0; }
/* diagonal hatch band (the zig-zag accents behind the About card) */
.hatch { background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--color-secondary) 10%, transparent) 0 2px, transparent 2px 9px); }
