@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700;800&family=DM+Sans:wght@400;500;600;700&display=swap');

:root {
  color-scheme: light;
  --navy: #101e39;
  --orange: #ffad31;
  --paper: #f5f5f0;
  --muted: #4d5b6d;
  --line: #d6dce5;
  --display: 'Barlow Condensed', 'DM Sans', sans-serif;
  font: 16px/1.5 'DM Sans', Arial, sans-serif;
  color: var(--navy);
  background: var(--paper);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body, h1, h2, h3, p { margin: 0; }
a { color: inherit; }
button, select, input, textarea { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #1f68d3; outline-offset: 4px; }
.shell { width: min(1160px, calc(100% - 64px)); margin-inline: auto; }
.skip { position: fixed; left: 10px; top: 10px; z-index: 5; padding: 8px 14px; background: white; transform: translateY(-160%); }
.skip:focus { transform: none; }

.site-header { background: white; border-bottom: 1px solid #e6e8e8; }
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.brand { position: relative; display: block; flex: 0 0 158px; height: 49px; overflow: hidden; }
.brand img { position: absolute; top: 50%; width: 100%; height: auto; transform: translateY(-50%); }
.header-inner nav, .footer-inner nav { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(12px, 3vw, 32px); }
.header-inner nav a, .footer-inner nav a { font-weight: 700; text-decoration: none; }
.header-inner nav a { padding: 7px 0; }
.header-inner nav a:hover, .footer-inner nav a:hover { text-decoration: underline; }
.header-inner nav .current { box-shadow: 0 2px #de840e; }
.bag-toggle { display: inline-flex; align-items: center; gap: 7px; min-height: 42px; border: 1px solid var(--line); border-radius: 6px; background: white; color: var(--navy); padding: 6px 11px; font-weight: 700; }
.bag-toggle:hover { background: #f1f4fa; }
.bag-count { display: grid; place-items: center; min-width: 21px; height: 21px; padding-inline: 4px; border-radius: 50%; background: var(--navy); color: white; font-size: .75rem; }

.hero { background: var(--navy); color: #fff; }
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; min-height: 410px; }
.hero-copy { padding: clamp(44px, 6vw, 84px) 22px clamp(44px, 6vw, 84px) 0; align-self: center; }
.hero h1 { font: 800 clamp(3.45rem, 7.1vw, 6.6rem)/.9 var(--display); letter-spacing: -.015em; text-transform: uppercase; }
.hero h1 span { display: block; color: var(--orange); }
.hero p { max-width: 360px; margin-block: 20px 25px; color: #e0e7f5; font-size: 1.05rem; }
.hero-photo { grid-column: 2; width: 100%; height: 100%; max-height: 550px; min-height: 0; display: block; object-fit: cover; object-position: center 63%; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 46px; border: 1px solid transparent; border-radius: 6px; padding: 9px 15px; text-decoration: none; font-weight: 700; text-align: center; }
.button.primary { background: var(--orange); color: var(--navy); }
.button.primary:hover { background: #ffc36c; }
.button.dark { background: var(--navy); color: white; }
.button.dark:hover { background: #274571; }
.button.outline { border-color: #9faec2; background: white; color: var(--navy); }
.button.outline:hover { background: #ecf1fa; }

.catalog { padding-block: clamp(36px, 6vw, 64px) 42px; }
.catalog-heading { margin-bottom: 22px; }
.catalog h2, .calendar-callout h2, .dialog-heading h2 { font: 800 clamp(2rem, 4vw, 3.35rem)/1 var(--display); }
.catalog-heading p, .calendar-callout p { margin-top: 8px; color: var(--muted); }
.products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.product { display: flex; flex-direction: column; background: white; border: 1px solid #dbe1e7; border-radius: 12px; overflow: hidden; }
.product > img { display: block; width: 100%; height: auto; background: #edf0ed; }
.product-details { display: flex; flex-direction: column; flex: 1; padding: clamp(15px, 3vw, 24px); }
.product-title { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 5px 10px; }
.product-title h3 { font: 700 clamp(1.6rem, 3.25vw, 2.15rem)/1.05 var(--display); }
.price { white-space: nowrap; font-size: 1.12rem; }
.product-details p { margin: 8px 0 16px; color: var(--muted); }
.product-form { margin-top: auto; }
.product-form label { display: block; margin-bottom: 5px; font-weight: 700; font-size: .85rem; }
.product-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.product-actions select { flex: 1 1 90px; min-width: 0; min-height: 46px; border-radius: 6px; border: 1px solid #aab7c9; background: white; color: var(--navy); padding: 6px 10px; }
.product-actions .button { flex: 1 1 150px; }
.no-script { margin-top: 16px; }

.calendar-callout { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin-bottom: 46px; padding: clamp(16px, 3vw, 28px); border: 1px solid #ced8e6; border-radius: 12px; background: #e8effb; }
.calendar-callout h2 { font-size: clamp(1.8rem, 3.1vw, 2.7rem); }
.site-footer { background: var(--navy); color: white; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-block: 25px; }
.footer-inner strong { font: 800 1.55rem var(--display); }
.footer-inner a { font-size: .87rem; }

dialog { width: min(550px, calc(100% - 28px)); max-height: calc(100dvh - 28px); border: 1px solid var(--line); border-radius: 12px; padding: 0; color: var(--navy); }
dialog::backdrop { background: #05132ac0; }
.dialog-inner { padding: clamp(17px, 4vw, 30px); }
.dialog-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.dialog-heading h2 { font-size: 2.35rem; }
.icon-button { display: grid; place-items: center; width: 41px; height: 41px; border-radius: 50%; border: 1px solid var(--line); background: white; color: var(--navy); font-size: 1.6rem; line-height: 1; }
.bag-items { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.bag-items li, .subtotal { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.bag-items p, .bag-instructions { color: var(--muted); font-size: .9rem; }
.row-actions { display: flex; gap: 9px; align-items: center; }
.row-actions input { width: 63px; min-height: 40px; border: 1px solid #aab7c9; border-radius: 6px; padding: 5px 7px; }
.remove { border: 0; text-decoration: underline; color: var(--navy); background: white; padding: 7px 2px; }
.bag-instructions { margin-top: 16px; }
.dialog-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.bag-feedback:not(:empty), .manual-copy { display: block; margin-top: 10px; }
.manual-copy textarea { display: block; width: 100%; margin-top: 5px; }
.toast { position: fixed; z-index: 2; inset: auto 14px 14px auto; background: var(--navy); color: white; border-radius: 7px; padding: 10px 14px; }
.toast:empty { clip-path: inset(50%); padding: 0; width: 1px; height: 1px; }

@media (max-width: 720px) {
  .shell { width: calc(100% - 32px); }
  .header-inner { min-height: 62px; flex-wrap: wrap; gap: 0 10px; padding-block: 7px; }
  .brand { flex-basis: 126px; height: 39px; }
  .header-inner nav { order: 2; flex: 0 0 100%; justify-content: center; gap: 24px; padding: 4px 0; font-size: .91rem; }
  .hero-inner { grid-template-columns: minmax(0, 1fr); }
  .hero-copy { padding-block: 34px 24px; }
  .hero-photo { grid-column: 1; height: clamp(170px, 42vw, 270px); }
  .products { gap: 14px; }
}
@media (max-width: 540px) {
  .products { grid-template-columns: minmax(0, 1fr); }
}
