:root {
  --ink: #073f4a;
  --teal: #087f83;
  --teal-dark: #05686b;
  --aqua: #d9f1f0;
  --aqua-deep: #72c7cb;
  --cream: #fff8ed;
  --paper: #fffdf8;
  --sand: #ead7bb;
  --coral: #ff7d73;
  --gold: #b9914a;
  --shadow: 0 15px 40px rgba(4, 63, 73, .12);
  --radius: 26px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  line-height: 1.5;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: 10px; left: 10px; z-index: 1000; padding: .7rem 1rem;
  transform: translateY(-140%); background: var(--ink); color: white; border-radius: 8px;
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky; top: 0; z-index: 100; background: rgba(255, 248, 237, .96);
  border-top: 8px solid var(--ink); backdrop-filter: blur(14px);
}
.header-inner {
  max-width: 1260px; min-height: 112px; margin: auto; padding: 0 34px;
  display: grid; grid-template-columns: 158px 1fr auto; align-items: center; gap: 28px;
}
.brand { align-self: end; transform: translateY(17px); z-index: 2; }
.brand img { width: 145px; filter: drop-shadow(0 5px 5px rgba(7, 63, 74, .09)); }
.primary-nav { display: flex; justify-content: center; gap: clamp(22px, 3vw, 52px); }
.primary-nav a {
  position: relative; padding: 14px 0 10px; color: var(--ink); font-weight: 800;
  text-decoration: none; letter-spacing: -.02em;
}
.primary-nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 4px; height: 3px;
  border-radius: 8px; background: var(--teal); transition: right .2s ease;
}
.primary-nav a:hover::after, .primary-nav a:focus-visible::after, .primary-nav a.active::after { right: 0; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.icon-button {
  position: relative; width: 42px; height: 42px; display: grid; place-items: center;
  border: 0; color: var(--ink); background: transparent; border-radius: 50%; text-decoration: none; cursor: pointer;
}
.icon-button:hover, .icon-button:focus-visible { background: var(--aqua); }
.icon-button svg { width: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cart-count {
  position: absolute; top: 0; right: 0; min-width: 17px; height: 17px; padding: 0 4px;
  display: grid; place-items: center; color: white; background: var(--teal); border-radius: 999px; font-size: .65rem; font-weight: 900;
}
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 48px; padding: 0 25px;
  border: 0; border-radius: 999px; background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  color: white; box-shadow: 0 8px 20px rgba(8, 127, 131, .2); font-weight: 900; text-decoration: none; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}
.button:hover, .button:focus-visible { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(8, 127, 131, .28); }
.button-small { min-height: 44px; padding: 0 22px; }
.menu-toggle { display: none; }
.search-bar {
  position: relative; padding: 14px max(24px, calc((100vw - 1180px) / 2)); background: var(--aqua); border-top: 1px solid rgba(7, 63, 74, .1);
  grid-template-columns: auto 1fr auto auto; align-items: center; gap: 12px;
}
.search-bar:not([hidden]) { display: grid; }
.search-bar label { font-weight: 900; }
.search-bar input { width: 100%; min-height: 44px; padding: 0 16px; border: 1px solid rgba(7, 63, 74, .2); border-radius: 999px; background: white; }
.search-close { width: 38px; height: 38px; border: 0; border-radius: 50%; background: transparent; color: var(--ink); font-size: 1.8rem; cursor: pointer; }

.hero {
  position: relative; min-height: 530px; display: grid; grid-template-columns: minmax(380px, 42%) 1fr;
  overflow: hidden; background: var(--paper);
}
.hero::before {
  content: ""; position: absolute; left: -90px; bottom: -115px; width: 310px; height: 310px;
  border-radius: 48% 52% 60% 40%; background: var(--aqua); transform: rotate(20deg); opacity: .88;
}
.hero-copy { position: relative; z-index: 2; align-self: center; padding: 76px clamp(32px, 8vw, 148px); padding-right: 28px; }
.eyebrow, .kicker { margin: 0 0 6px; color: var(--teal); font-size: 1rem; font-weight: 900; letter-spacing: .04em; }
.hero h1, .story h2, .banner-title {
  font-family: Georgia, "Times New Roman", serif; letter-spacing: -.035em;
}
.hero h1 { margin: 0 0 14px; color: var(--ink); font-size: clamp(3.25rem, 5.4vw, 5.55rem); line-height: .94; }
.hero-intro { max-width: 440px; margin: 0 0 26px; color: #163f46; font-size: 1.05rem; }
.hero-image {
  min-height: 530px; background-image: linear-gradient(90deg, var(--paper) 0%, rgba(255,253,248,.04) 13%), url("assets/hero-flatlay.png");
  background-position: center; background-size: cover; border-radius: 47% 0 0 8%;
}
.doodle { position: absolute; color: var(--coral); font-family: Georgia, serif; font-weight: 400; line-height: 1; }
.heart-doodle { right: 25px; bottom: 44px; font-size: 4rem; transform: rotate(-18deg); }
.hero-star { top: 38px; left: 42px; z-index: 3; color: var(--teal); font-size: 4.6rem; transform: rotate(-12deg); }
.hero-rays { top: 55px; right: 41%; z-index: 3; color: white; font-size: 4.5rem; }

.section { padding: 72px max(28px, calc((100vw - 1260px) / 2)); }
.collection {
  position: relative; display: grid; grid-template-columns: 190px 1fr; gap: 28px; align-items: center;
  background: linear-gradient(110deg, #edfafa 0%, #dff3f2 55%, #eff9f8 100%); overflow: hidden;
}
.collection::after {
  content: ""; position: absolute; right: -42px; bottom: -50px; width: 150px; height: 150px;
  border: 5px double var(--aqua-deep); border-radius: 50%; opacity: .6;
}
.section-heading h2 { margin: 0 0 14px; font-size: clamp(2rem, 3vw, 2.65rem); line-height: 1; }
.section-heading > p:not(.kicker) { margin: 0 0 20px; }
.mini-star { display: block; margin-bottom: -4px; color: var(--teal); font-size: 2.3rem; }
.outline-button {
  display: inline-flex; align-items: center; gap: 12px; padding: 9px 17px; border: 2px solid var(--teal);
  border-radius: 999px; color: var(--ink); background: rgba(255,255,255,.55); font-weight: 900; text-decoration: none;
}
.product-grid { min-width: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.product-card {
  overflow: hidden; min-width: 0; border: 1px solid rgba(7,63,74,.08); border-radius: 18px;
  background: rgba(255,255,255,.94); box-shadow: var(--shadow); transition: transform .2s ease;
}
.product-card:hover { transform: translateY(-5px); }
.product-image-wrap { position: relative; aspect-ratio: 1.08; overflow: hidden; background: white; }
.product-image-wrap img { width: 100%; height: 100%; object-fit: cover; }
.product-badge {
  position: absolute; left: 10px; top: 10px; z-index: 2; padding: 5px 9px; border-radius: 999px;
  color: var(--ink); background: rgba(255,248,237,.93); font-size: .68rem; font-weight: 900; text-transform: uppercase; letter-spacing: .04em;
}
.favorite-button {
  position: absolute; top: 10px; right: 10px; z-index: 2; width: 37px; height: 37px; border: 2px solid var(--coral);
  border-radius: 50%; color: var(--coral); background: rgba(255,255,255,.92); font-size: 1.1rem; cursor: pointer;
}
.favorite-button.active { color: white; background: var(--coral); }
.product-info { padding: 12px 14px 15px; text-align: center; }
.product-info h3 { min-height: 2.5em; margin: 0; font-size: .94rem; line-height: 1.2; }
.price { margin: 3px 0 9px; font-weight: 900; }
.product-colors { display: flex; justify-content: center; gap: 9px; margin-bottom: 12px; }
.product-colors span { width: 14px; height: 14px; border: 1px solid rgba(7,63,74,.08); border-radius: 50%; background: var(--swatch); }
.product-actions { display: grid; grid-template-columns: 1fr auto; gap: 7px; }
.add-button, .etsy-link {
  min-height: 32px; display: inline-flex; justify-content: center; align-items: center; gap: 7px; padding: 0 12px;
  border: 0; border-radius: 999px; color: white; background: var(--teal); font-size: .8rem; font-weight: 900; text-decoration: none; cursor: pointer;
}
.etsy-link { color: var(--ink); background: var(--aqua); }
.empty-results { grid-column: 2; padding: 40px; text-align: center; font-weight: 900; }

.story {
  display: grid; grid-template-columns: 330px 360px 1fr; align-items: center; gap: 38px;
  background-color: var(--cream); background-image: radial-gradient(rgba(185,145,74,.14) 1.3px, transparent 1.3px); background-size: 24px 24px;
}
.story-card {
  position: relative; height: 235px; display: grid; place-items: center; border: 10px solid white; border-radius: 13px;
  background: #f4e7d5; box-shadow: var(--shadow); transform: rotate(-4deg);
}
.story-card img { width: 178px; }
.story-icon { position: absolute; font-family: Georgia, serif; font-weight: 900; line-height: 1; }
.story-icon.coral { left: 18px; top: 34px; color: var(--coral); font-size: 3.4rem; }
.story-icon.star { left: 30px; bottom: 23px; color: var(--gold); font-size: 2.8rem; }
.story-icon.rainbow { right: 20px; bottom: 18px; color: var(--coral); font-size: 3.5rem; transform: rotate(180deg); }
.story-icon.tee { right: 27px; top: 27px; width: 52px; height: 44px; display: grid; place-items: center; color: white; background: var(--teal); clip-path: polygon(20% 0,38% 8%,62% 8%,80% 0,100% 22%,82% 40%,77% 100%,23% 100%,18% 40%,0 22%); }
.story-copy h2 { margin: 0 0 10px; font-size: 3rem; line-height: 1; }
.story-copy > p:not(.kicker):not(.signature) { margin: 0; }
.signature { margin: 12px 0 0; color: var(--teal); font-family: Georgia, serif; font-size: 1.15rem; font-style: italic; font-weight: 700; text-align: right; }
.signature span { color: var(--coral); }
.values { display: grid; grid-template-columns: repeat(3, 1fr); }
.value-card { padding: 8px 22px; text-align: center; border-left: 1px dashed rgba(185,145,74,.45); }
.value-card h3 { margin: 10px 0 4px; font-size: 1rem; }
.value-card p { margin: 0; font-size: .84rem; }
.value-icon { width: 68px; height: 68px; margin: auto; display: grid; place-items: center; border-radius: 50%; color: white; font-size: 2rem; }
.value-icon.aqua { background: #62bcc0; }
.value-icon.coral-bg { background: var(--coral); }
.value-icon.teal { background: var(--teal); }

.dream-banner {
  min-height: 106px; padding: 20px max(28px, calc((100vw - 1180px) / 2)); display: flex; justify-content: space-between; align-items: center; gap: 30px;
  color: white; background: linear-gradient(105deg, #078488, #086a70); overflow: hidden;
}
.dream-banner > div { position: relative; padding-left: 70px; }
.banner-title { margin: 0; font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 700; line-height: 1; }
.dream-banner p:last-child { margin: 5px 0 0; color: #d9f1f0; }
.dream-banner p span { color: #ffd25c; }
.banner-doodle { position: absolute; left: 0; top: 1px; color: #ffd25c; font-size: 2.3rem; transform: rotate(-10deg); }
.banner-badge { padding: 9px 46px; border: 2px dashed white; border-radius: 18px; outline: 3px solid var(--gold); color: white; background: var(--gold); font-weight: 900; letter-spacing: .12em; text-align: center; text-transform: uppercase; transform: rotate(-1.5deg); }

.site-footer { background: var(--paper); }
.footer-grid {
  max-width: 1220px; margin: auto; padding: 42px 28px 30px; display: grid;
  grid-template-columns: 2.2fr 1fr 1.15fr 1.8fr 1.25fr; gap: 34px;
}
.footer-grid h2 { margin: 0 0 10px; font-size: .88rem; }
.footer-grid p, .footer-grid a { font-size: .79rem; }
.footer-grid a { display: block; margin: 6px 0; text-decoration: none; }
.footer-grid a:hover, .footer-grid a:focus-visible { color: var(--teal); text-decoration: underline; }
.footer-brand { display: grid; grid-template-columns: 120px 1fr; align-items: center; gap: 12px; }
.footer-brand img { width: 120px; }
.footer-tagline { margin: 0 0 8px; font-weight: 900; }
.footer-brand p:last-child, .newsletter p, .social-block p { margin: 0; }
.newsletter form { display: flex; margin-top: 12px; }
.newsletter input { min-width: 0; flex: 1; height: 38px; padding: 0 13px; border: 1px solid var(--sand); border-radius: 9px 0 0 9px; background: white; }
.newsletter button { width: 78px; border: 0; border-radius: 0 9px 9px 0; color: white; background: var(--teal); font-weight: 900; cursor: pointer; }
.form-status { min-height: 1.3em; padding-top: 6px; color: var(--teal); font-weight: 700; }
.socials { display: flex; gap: 10px; margin-bottom: 14px; }
.socials a { width: 28px; height: 28px; display: grid; place-items: center; border: 2px solid var(--teal); border-radius: 8px; color: var(--teal); font-weight: 900; }
.copyright { padding: 6px; color: #d9f1f0; background: var(--ink); font-size: .72rem; text-align: center; }
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 200; max-width: calc(100vw - 32px); padding: 12px 20px;
  border-radius: 999px; color: white; background: var(--ink); box-shadow: var(--shadow); opacity: 0; pointer-events: none;
  transform: translate(-50%, 18px); transition: opacity .2s ease, transform .2s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1080px) {
  .header-inner { grid-template-columns: 125px 1fr auto; padding-inline: 22px; }
  .brand img { width: 118px; }
  .primary-nav { gap: 20px; }
  .header-actions > .button { display: none; }
  .hero { grid-template-columns: 44% 1fr; }
  .hero-copy { padding-left: 60px; }
  .collection { grid-template-columns: 1fr; }
  .collection-intro { display: grid; grid-template-columns: auto 1fr auto; align-items: end; gap: 0 20px; }
  .collection-intro .mini-star, .collection-intro .kicker { grid-column: 1 / -1; }
  .collection-intro h2 { grid-row: 3 / 5; }
  .collection-intro > p:not(.kicker) { grid-column: 2; margin: 0; }
  .collection-intro .outline-button { grid-column: 3; }
  .story { grid-template-columns: 300px 1fr; }
  .values { grid-column: 1 / -1; }
  .footer-grid { grid-template-columns: 2fr repeat(2, 1fr); }
  .newsletter, .social-block { grid-column: span 1; }
}

@media (max-width: 820px) {
  .site-header { border-top-width: 5px; }
  .header-inner { min-height: 82px; grid-template-columns: 72px 1fr auto; gap: 10px; }
  .brand { align-self: center; transform: none; }
  .brand img { width: 70px; }
  .menu-toggle {
    display: grid; grid-column: 3; grid-row: 1; justify-self: end; width: 42px; height: 42px; padding: 10px; border: 0;
    border-radius: 50%; background: var(--aqua); cursor: pointer;
  }
  .menu-toggle span:not(.sr-only) { display: block; height: 2px; margin: 2px 0; border-radius: 5px; background: var(--ink); }
  .primary-nav {
    position: absolute; left: 0; right: 0; top: 82px; display: grid; gap: 0; padding: 10px 24px 24px;
    background: var(--cream); box-shadow: 0 18px 28px rgba(7,63,74,.12); visibility: hidden; opacity: 0; transform: translateY(-8px);
  }
  .primary-nav.open { visibility: visible; opacity: 1; transform: translateY(0); }
  .primary-nav a { border-bottom: 1px solid rgba(7,63,74,.08); }
  .header-actions { grid-row: 1; grid-column: 2; justify-self: end; }
  .header-actions .icon-button:nth-child(2) { display: none; }
  .search-bar:not([hidden]) { grid-template-columns: 1fr auto; }
  .search-bar label { grid-column: 1 / -1; }
  .search-close { position: absolute; right: 20px; }
  .hero { min-height: auto; grid-template-columns: 1fr; }
  .hero-copy { padding: 76px 30px 42px; }
  .hero h1 { font-size: clamp(3.2rem, 14vw, 5.2rem); }
  .hero-intro { max-width: 530px; }
  .hero-image { min-height: 390px; border-radius: 24% 0 0 0; background-position: 55% center; }
  .hero-star { top: 18px; left: auto; right: 20px; font-size: 3.4rem; }
  .hero-rays { display: none; }
  .heart-doodle { right: 30px; bottom: 24px; }
  .section { padding: 54px 24px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .story { grid-template-columns: 1fr; }
  .story-art { max-width: 390px; width: 100%; margin: auto; }
  .story-copy { max-width: 620px; }
  .values { grid-column: auto; }
  .dream-banner { align-items: flex-start; flex-direction: column; }
  .banner-badge { align-self: center; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .header-inner { padding-inline: 14px; grid-template-columns: 62px 1fr auto; }
  .brand img { width: 58px; }
  .header-actions { gap: 1px; }
  .icon-button { width: 38px; height: 38px; }
  .hero-copy { padding: 62px 22px 36px; }
  .hero-image { min-height: 290px; }
  .collection-intro { display: block; }
  .collection-intro .outline-button { margin-top: 3px; }
  .product-grid { grid-template-columns: 1fr; }
  .product-card { display: grid; grid-template-columns: 42% 1fr; }
  .product-image-wrap { aspect-ratio: auto; min-height: 220px; }
  .product-info { align-self: center; padding: 14px 10px; }
  .product-info h3 { min-height: 0; }
  .product-actions { grid-template-columns: 1fr; }
  .values { grid-template-columns: 1fr; }
  .value-card { display: grid; grid-template-columns: 66px 1fr; text-align: left; border-left: 0; border-top: 1px dashed rgba(185,145,74,.45); }
  .value-icon { grid-row: 1 / 3; width: 54px; height: 54px; }
  .value-card h3 { margin: 4px 0 2px; }
  .dream-banner > div { padding-left: 0; }
  .banner-doodle { display: none; }
  .banner-badge { width: calc(100% - 20px); }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; grid-template-columns: 100px 1fr; }
  .footer-brand img { width: 100px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
