/* Cozy Bow Co. website tokens. Source of truth: DESIGN.md.
   Builds on tokens/brand-tokens.css (the locked Garden Gift palette).
   Fluid values scale between a 390px phone and a 1440px desktop. */

@font-face {
  font-family: "Fraunces";
  src: url("../assets/fonts/fraunces-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Jost";
  src: url("../assets/fonts/jost-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;

  /* Brand palette (locked, Nov 1 2026) */
  --cbc-berry: #c2413e;
  --cbc-pine: #455c48;
  --cbc-gold: #d0b26e;
  --cbc-blush: #e7cbc4;
  --cbc-cream: #f6f1e5;
  --cbc-ink: #252323;
  --cbc-velvet: #8c1f25;

  /* Color roles */
  --color-ink: var(--cbc-ink);            /* body text, headings */
  --color-ink-2: var(--cbc-pine);         /* secondary text, subheads */
  --color-muted: #595654;                 /* captions, helper text. Ink 75% on Cream */
  --color-ground: var(--cbc-cream);       /* page background */
  --color-surface: #faf8f2;               /* cards and inputs on Cream. Cream 50% to white */
  --color-surface-alt: var(--cbc-blush);  /* alternate section band */
  --color-line: #c2beb4;                  /* dividers, decorative only */
  --color-line-strong: #8e8a84;           /* input borders, 3:1 on Cream */
  --color-accent: var(--cbc-berry);       /* primary button, links, the bow */
  --color-accent-hover: var(--cbc-velvet);/* primary button hover and pressed */
  --color-highlight: var(--cbc-gold);     /* small marks on dark grounds only */
  --color-inverse-ground: var(--cbc-pine);/* dark section band */
  --color-inverse-deep: var(--cbc-velvet);/* deep band, footer */
  --color-on-dark: var(--cbc-cream);      /* text on Berry, Pine, Velvet */
  --color-success: var(--cbc-pine);
  --color-error: var(--cbc-berry);
  --color-focus: var(--cbc-ink);

  /* Type families */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Jost", "Avenir Next", "Segoe UI", Arial, sans-serif;
  --display-axes: "SOFT" 50, "WONK" 1;    /* softer, handmade serif */

  /* Type scale: size, line height, tracking, weight */
  --text-hero: clamp(2.75rem, 1.729rem + 4.19vw, 5.5rem);   /* 44 to 88 */
  --lh-hero: 1.02;
  --track-hero: -0.02em;
  --wght-hero: 460;

  --text-h2: clamp(2rem, 1.443rem + 2.286vw, 3.5rem);       /* 32 to 56 */
  --lh-h2: 1.08;
  --track-h2: -0.015em;
  --wght-h2: 480;

  --text-h3: clamp(1.375rem, 1.236rem + 0.571vw, 1.75rem);  /* 22 to 28 */
  --lh-h3: 1.2;
  --track-h3: -0.005em;
  --wght-h3: 540;

  --text-lead: clamp(1.1875rem, 1.118rem + 0.286vw, 1.375rem); /* 19 to 22 */
  --lh-lead: 1.5;
  --wght-lead: 400;

  --text-body: clamp(1.0625rem, 1.039rem + 0.095vw, 1.125rem); /* 17 to 18 */
  --lh-body: 1.6;
  --wght-body: 400;

  --text-price: clamp(1.75rem, 1.564rem + 0.762vw, 2.25rem);   /* 28 to 36, Jost tabular */
  --lh-price: 1;
  --wght-price: 500;

  --text-small: 0.9375rem;                /* 15, captions and helper text only */
  --lh-small: 1.45;

  --text-descriptor: 0.8125rem;           /* 13, uppercase Jost, brand descriptor only */
  --track-descriptor: 0.18em;
  --wght-descriptor: 500;

  /* Spacing, 4px base */
  --space-1: 0.25rem;  /* 4 */
  --space-2: 0.5rem;   /* 8 */
  --space-3: 0.75rem;  /* 12 */
  --space-4: 1rem;     /* 16 */
  --space-5: 1.5rem;   /* 24 */
  --space-6: 2rem;     /* 32 */
  --space-7: 3rem;     /* 48 */
  --space-8: 4rem;     /* 64 */
  --space-9: 5rem;     /* 80 */
  --space-10: 6rem;    /* 96 */
  --space-11: 8rem;    /* 128 */

  /* Frame (one-page site) */
  --frame-max: 75rem;                     /* 1200 content width */
  --frame-text: 38rem;                    /* about 65 characters of body */
  --gutter: 1.25rem;                      /* 20 phone */
  --section-pad: clamp(4rem, 2.514rem + 6.095vw, 8rem);      /* 64 to 128 */
  --section-head-gap: clamp(1.5rem, 1.129rem + 1.524vw, 2.5rem); /* 24 to 40 */
  --card-pad: 1.75rem;                    /* 28 phone */
  --ribbon-w: 0.875rem;                   /* 14, Berry ribbon band */
  --pattern-tile: 20rem;                  /* 320, evergreen pattern tile */
  --hero-bow-opacity: 0.35;              /* tone-on-tone bow behind hero copy */
  --berries: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cg transform='rotate%28-15 10 20%29'%3E%3Cellipse cx='10' cy='20' rx='6' ry='5' fill='%23C2413E'/%3E%3Cpath d='M8.8 25.0 A6 5 0 0 0 16.0 20.8' stroke='%238C1F25' stroke-width='1.3' fill='none'/%3E%3Cellipse cx='7.7' cy='18.0' rx='1.7' ry='1.0' fill='%23F6F1E5' opacity='.85'/%3E%3Ccircle cx='10.3' cy='15.5' r='.7' fill='%238C1F25'/%3E%3C/g%3E%3Cg transform='rotate%2812 21.5 21.5%29'%3E%3Cellipse cx='21.5' cy='21.5' rx='5.6' ry='4.7' fill='%23C2413E'/%3E%3Cpath d='M20.4 26.2 A5.6 4.7 0 0 0 27.1 22.2' stroke='%238C1F25' stroke-width='1.3' fill='none'/%3E%3Cellipse cx='19.4' cy='19.6' rx='1.6' ry='0.9' fill='%23F6F1E5' opacity='.85'/%3E%3Ccircle cx='21.8' cy='17.3' r='.7' fill='%238C1F25'/%3E%3C/g%3E%3Cg transform='rotate%28-4 15.5 11.5%29'%3E%3Cellipse cx='15.5' cy='11.5' rx='5' ry='4.2' fill='%23C2413E'/%3E%3Cpath d='M14.5 15.7 A5 4.2 0 0 0 20.5 12.1' stroke='%238C1F25' stroke-width='1.3' fill='none'/%3E%3Cellipse cx='13.6' cy='9.8' rx='1.4' ry='0.8' fill='%23F6F1E5' opacity='.85'/%3E%3Ccircle cx='15.8' cy='7.7' r='.7' fill='%238C1F25'/%3E%3C/g%3E%3C/svg%3E"); /* three cranberries, source assets/shapes/cranberries.svg */
  --tag-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 190 379' preserveAspectRatio='none'%3E%3Cpath fill-rule='evenodd' d='M2.48528 322.292C2.98347 320.636 4.88221 316.796 5.6617 315.238C9.58692 307.387 11.9824 301.43 11.4346 292.491C11.1874 288.454 10.1398 285.024 9.02025 281.357C8.68578 280.261 8.34456 279.144 8.01668 277.984C5.25684 268.225 2.7894 259.2 3.23596 248.954C3.52486 242.331 3.91427 238.507 5.15524 231.974C5.97345 227.667 7.08073 223.265 8.19853 218.822C10.6067 209.248 13.0636 199.481 12.7841 190.05C12.647 185.419 10.6919 179.168 9.28089 174.783C6.14978 165.06 4.68394 158.401 5.14886 148.203C5.53219 139.793 7.65596 133.412 9.98709 126.408C10.8766 123.736 11.7962 120.973 12.6609 117.972C16.1822 105.75 17.1312 92.5511 16.7703 79.8597C16.5607 72.4886 15.9703 65.986 13.8843 58.8383C12.8557 55.3138 11.491 51.8251 10.1233 48.3287C7.01583 40.3843 3.89277 32.4002 4.66073 23.8663C5.41352 15.4993 11.6691 7.84723 18.7713 3.80075C24.0088 0.816672 30.7099 0.717208 36.3618 2.68132C38.737 3.48721 41.0644 4.46847 43.3935 5.45049C47.4898 7.17755 51.5916 8.90697 55.9692 9.68888C62.1862 10.7995 68.0659 8.30637 73.8497 5.85397C76.2367 4.84181 78.6074 3.83659 80.9787 3.0945C94.8861 -1.25764 108.142 -1.37543 121.451 5.03629C122.444 5.51492 123.425 6.02136 124.403 6.52676C128.518 8.65152 132.598 10.758 137.427 10.703C142.085 10.6943 146.107 9.06617 150.155 7.42776C155.014 5.46086 159.91 3.4791 165.987 4.26651L166.106 4.28191C169.878 4.77064 172.116 5.06055 175.638 6.89939C180.479 9.35812 183.972 12.9067 186.355 17.7633C189.646 24.4797 190.115 32.5829 187.449 39.6264C181.648 54.9569 177.193 71.0546 176.54 87.5222C176.092 98.8055 177.948 110.673 180.576 121.626C180.952 123.065 181.328 124.455 181.697 125.816C183.316 131.79 184.784 137.21 185.357 143.694C186.402 155.542 184.622 165.168 180.964 176.337C179.226 181.643 178.554 188.872 178.323 194.442C178.135 202.873 180.041 209.956 182.03 217.351C182.749 220.024 183.479 222.738 184.125 225.571C185.955 233.738 186.72 242.11 186.401 250.474C186.138 257.902 184.949 265.27 182.86 272.404C182.117 274.978 181.197 277.541 180.284 280.086C179.665 281.811 179.049 283.529 178.492 285.235C175.793 293.51 176.357 303.034 180.497 310.817C186.833 322.727 189.613 334.885 185.506 348.085C183.431 354.76 176.617 363.477 171.365 368.073C169.081 370.073 166.106 371.753 163.352 373.141C155.464 377.116 149.383 378.727 140.511 378.3C133.6 377.87 127.875 375.67 122.283 371.602C121.942 371.353 121.494 371.011 120.973 370.614C118.345 368.608 113.866 365.187 111.831 365.209C108.996 365.239 106.177 366.225 103.339 367.217C100.097 368.351 96.8305 369.494 93.4866 369.23C91.4432 369.14 88.9526 368.344 86.3606 367.516C82.1421 366.169 77.6552 364.736 74.3911 366.119C71.128 367.501 68.4738 369.28 65.8387 371.046C62.0279 373.6 58.257 376.128 52.7423 377.388C43.6964 379.459 31.6885 378.675 23.6397 373.893C13.673 367.973 4.5382 356.687 1.2676 345.586C-0.455356 339.333 -0.751739 327.814 2.48528 322.292ZM103.5 30A8.5 8.5 0 1 0 86.5 30A8.5 8.5 0 1 0 103.5 30Z'/%3E%3C/svg%3E"); /* official die-cut tag with hole, source assets/shapes/tag-mask.svg */
  --tag-mask-h: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 379 190' preserveAspectRatio='none'%3E%3Cpath fill-rule='evenodd' transform='matrix%280 -1 1 0 0 190%29' d='M2.48528 322.292C2.98347 320.636 4.88221 316.796 5.6617 315.238C9.58692 307.387 11.9824 301.43 11.4346 292.491C11.1874 288.454 10.1398 285.024 9.02025 281.357C8.68578 280.261 8.34456 279.144 8.01668 277.984C5.25684 268.225 2.7894 259.2 3.23596 248.954C3.52486 242.331 3.91427 238.507 5.15524 231.974C5.97345 227.667 7.08073 223.265 8.19853 218.822C10.6067 209.248 13.0636 199.481 12.7841 190.05C12.647 185.419 10.6919 179.168 9.28089 174.783C6.14978 165.06 4.68394 158.401 5.14886 148.203C5.53219 139.793 7.65596 133.412 9.98709 126.408C10.8766 123.736 11.7962 120.973 12.6609 117.972C16.1822 105.75 17.1312 92.5511 16.7703 79.8597C16.5607 72.4886 15.9703 65.986 13.8843 58.8383C12.8557 55.3138 11.491 51.8251 10.1233 48.3287C7.01583 40.3843 3.89277 32.4002 4.66073 23.8663C5.41352 15.4993 11.6691 7.84723 18.7713 3.80075C24.0088 0.816672 30.7099 0.717208 36.3618 2.68132C38.737 3.48721 41.0644 4.46847 43.3935 5.45049C47.4898 7.17755 51.5916 8.90697 55.9692 9.68888C62.1862 10.7995 68.0659 8.30637 73.8497 5.85397C76.2367 4.84181 78.6074 3.83659 80.9787 3.0945C94.8861 -1.25764 108.142 -1.37543 121.451 5.03629C122.444 5.51492 123.425 6.02136 124.403 6.52676C128.518 8.65152 132.598 10.758 137.427 10.703C142.085 10.6943 146.107 9.06617 150.155 7.42776C155.014 5.46086 159.91 3.4791 165.987 4.26651L166.106 4.28191C169.878 4.77064 172.116 5.06055 175.638 6.89939C180.479 9.35812 183.972 12.9067 186.355 17.7633C189.646 24.4797 190.115 32.5829 187.449 39.6264C181.648 54.9569 177.193 71.0546 176.54 87.5222C176.092 98.8055 177.948 110.673 180.576 121.626C180.952 123.065 181.328 124.455 181.697 125.816C183.316 131.79 184.784 137.21 185.357 143.694C186.402 155.542 184.622 165.168 180.964 176.337C179.226 181.643 178.554 188.872 178.323 194.442C178.135 202.873 180.041 209.956 182.03 217.351C182.749 220.024 183.479 222.738 184.125 225.571C185.955 233.738 186.72 242.11 186.401 250.474C186.138 257.902 184.949 265.27 182.86 272.404C182.117 274.978 181.197 277.541 180.284 280.086C179.665 281.811 179.049 283.529 178.492 285.235C175.793 293.51 176.357 303.034 180.497 310.817C186.833 322.727 189.613 334.885 185.506 348.085C183.431 354.76 176.617 363.477 171.365 368.073C169.081 370.073 166.106 371.753 163.352 373.141C155.464 377.116 149.383 378.727 140.511 378.3C133.6 377.87 127.875 375.67 122.283 371.602C121.942 371.353 121.494 371.011 120.973 370.614C118.345 368.608 113.866 365.187 111.831 365.209C108.996 365.239 106.177 366.225 103.339 367.217C100.097 368.351 96.8305 369.494 93.4866 369.23C91.4432 369.14 88.9526 368.344 86.3606 367.516C82.1421 366.169 77.6552 364.736 74.3911 366.119C71.128 367.501 68.4738 369.28 65.8387 371.046C62.0279 373.6 58.257 376.128 52.7423 377.388C43.6964 379.459 31.6885 378.675 23.6397 373.893C13.673 367.973 4.5382 356.687 1.2676 345.586C-0.455356 339.333 -0.751739 327.814 2.48528 322.292ZM103.5 30A8.5 8.5 0 1 0 86.5 30A8.5 8.5 0 1 0 103.5 30Z'/%3E%3C/svg%3E"); /* same tag on its side, hole on the left */
  --tag-ratio: 0.5013;                    /* official tag, width to height (190 x 379) */
  --twine-w: 5px;                         /* jute twine cord */
  --twine: color-mix(in srgb, var(--cbc-gold) 88%, var(--cbc-ink));        /* jute body, from Gold */
  --twine-dark: color-mix(in srgb, var(--cbc-gold) 60%, var(--cbc-ink));   /* ply shadows */
  --twine-light: color-mix(in srgb, var(--cbc-gold) 70%, var(--cbc-cream)); /* fiber highlight */
  --gift-s: 1.5rem;                       /* little gift box in the message builder */
  --tape-h: clamp(3rem, 2.443rem + 2.286vw, 4.5rem); /* 48 to 72, tape measure in pricing */
  --icon: 1.25rem;                        /* 20, contact icons */
  --band-photo-h: 45rem;                  /* 720, full-bleed photo band on desktop */
  --header-h: 4rem;                       /* 64 phone */
  --logo-header-h: 1.5rem;                /* 24 phone, horizontal lockup */
  --logo-footer-w: 12.5rem;               /* 200, stacked with descriptor */

  /* Shape */
  --radius-surface: 0;                    /* full-bleed bands */
  --radius-card: 4px;                     /* plain cards, photos */
  --radius-control: 4px;                  /* buttons, inputs */
  --radius-label: 2px;                    /* small labels */
  --scallop-b-r: 10px;                    /* B, small scallop */
  --scallop-b-d: 10px;                    /* full half-circle */
  --scallop-b-w: 20px;                    /* bump width, 2R */
  --scallop-b2-r: 26px;                   /* B2, soft wave */
  --scallop-b2-d: 10px;                   /* 38% depth */
  --scallop-b2-w: 41px;                   /* bump width, 2 x sqrt(R² - (R - D)²), bumps touch */

  /* Controls */
  --control-h: 3.25rem;                   /* 52 */
  --control-h-sm: 2.75rem;                /* 44, minimum tap target */
  --control-pad-x: 1.5rem;
  --control-text: 1.0625rem;              /* 17, keeps iPhone from zooming inputs */
  --border-w: 1.5px;
  --focus-ring: 0 0 0 3px var(--color-ground), 0 0 0 5px var(--color-focus);

  /* Shadow: none. Depth comes from the photo cutouts overlapping. */
  --shadow: none;

  /* Motion */
  --ease: cubic-bezier(.2, .7, .2, 1);
  --dur: 180ms;
}

@media (min-width: 48rem) { /* 768 */
  :root {
    --gutter: 2.5rem;                     /* 40 */
    --card-pad: 2.5rem;                   /* 40 */
    --header-h: 4.75rem;                  /* 76 */
    --logo-header-h: 2.125rem;            /* 34 */
  }
}

@media (prefers-reduced-motion: reduce) {
  :root { --dur: 0ms; }
}
