/* ==========================================================
   A Dose of Diaz — site styles
   Palette and type pulled from the brand brief.
   ========================================================== */

:root {
  --parchment: #F0E5CD;
  --parchment-deep: #E7D8B8;
  --paper-line: #D6C39C;
  --ink: #26211B;
  --ink-soft: #4A4136;
  --olive: #3B4232;
  --olive-deep: #2B3024;
  --brass: #9C7331;
  --brass-light: #C8A05A;
  --rust: #93462A;
  --burgundy: #6B2B2B;

  --display: "IM Fell English SC", "IM Fell English", Georgia, "Times New Roman", serif;
  --fell: "IM Fell English", Georgia, "Times New Roman", serif;
  --body: "Crimson Pro", Georgia, "Times New Roman", serif;

  --measure: 34em;
  --wrap: 72rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background-color: var(--parchment);
  /* faint aged-paper grain */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .36 0 0 0 0 .22 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  color: var(--ink);
  font-family: var(--body);
  font-size: clamp(1.125rem, 1.05rem + .3vw, 1.25rem);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--rust); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--burgundy); }
:focus-visible { outline: 2px solid var(--rust); outline-offset: 3px; border-radius: 2px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.narrow { max-width: var(--measure); }
.center { text-align: center; margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip { position: absolute; left: -999px; top: .5rem; background: var(--olive); color: var(--parchment); padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: .5rem; }

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.1; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(2.6rem, 1.6rem + 4.5vw, 5rem); letter-spacing: .06em; }
h2 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.1rem); letter-spacing: .04em; }
h3 { font-size: clamp(1.45rem, 1.2rem + .8vw, 1.8rem); letter-spacing: .08em; }
p { margin: 0 0 1em; }
.lede { font-size: 1.15em; color: var(--ink-soft); }
.say { font-family: var(--fell); font-style: italic; font-size: clamp(1.3rem, 1.1rem + 1vw, 1.75rem); line-height: 1.35; color: var(--ink-soft); }

/* brass rule with diamond, taken from the mockup */
.rule { display: flex; align-items: center; gap: .6rem; color: var(--brass); margin: .9rem auto 1.1rem; width: min(26rem, 80%); }
.rule::before, .rule::after { content: ""; flex: 1; height: 2px; background: linear-gradient(90deg, transparent, currentColor 25%, currentColor 75%, transparent); }
.rule svg { width: 18px; height: 18px; flex: none; }
.rule.left { margin-left: 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 3rem; padding: .7rem 1.5rem;
  background: var(--olive); color: var(--parchment);
  font-family: var(--display); font-size: 1.02rem; letter-spacing: .18em; text-decoration: none;
  border: 1px solid var(--olive-deep);
  box-shadow: inset 0 0 0 3px var(--olive), inset 0 0 0 4px rgba(200,160,90,.55);
  transition: background-color .2s;
  cursor: pointer;
}
.btn:hover { background: var(--olive-deep); color: var(--parchment); }
.btn.ghost { background: transparent; color: var(--olive); box-shadow: inset 0 0 0 1px var(--olive); }
.btn.ghost:hover { background: rgba(59,66,50,.08); color: var(--olive-deep); }
.btn.rust { background: var(--rust); border-color: #6f3420; box-shadow: inset 0 0 0 3px var(--rust), inset 0 0 0 4px rgba(240,229,205,.45); }
.btn.rust:hover { background: #7c3a22; }
.btn[aria-disabled="true"] { background: transparent; color: var(--ink-soft); box-shadow: inset 0 0 0 1px var(--paper-line); cursor: default; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(240,229,205,.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--paper-line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.25rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); }
.brand img { width: 34px; height: auto; }
.brand span { font-family: var(--display); font-size: 1.2rem; letter-spacing: .16em; white-space: nowrap; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(1rem, 2.4vw, 2.2rem); }
.nav a { font-family: var(--display); letter-spacing: .2em; font-size: 1.02rem; color: var(--ink); text-decoration: none; padding: .8rem 0; position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; right: .2em; bottom: .45rem; height: 1px; background: var(--brass); transform: scaleX(0); transition: transform .25s; }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.menu-btn { display: none; }

@media (max-width: 860px) {
  .menu-btn {
    display: inline-flex; align-items: center; gap: .5rem; min-height: 2.75rem; padding: .4rem .9rem;
    font-family: var(--display); letter-spacing: .18em; font-size: 1rem;
    background: none; border: 1px solid var(--olive); color: var(--olive); cursor: pointer;
  }
  .nav { position: fixed; inset: 4.25rem 0 auto 0; background: var(--parchment); border-bottom: 1px solid var(--paper-line); display: none; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; gap: 0; padding: .5rem var(--gutter) 1.25rem; }
  .nav li + li { border-top: 1px solid rgba(214,195,156,.6); }
  .nav a { display: block; padding: 1rem 0; font-size: 1.25rem; }
  .nav a::after { display: none; }
}
@media (max-width: 380px) { .brand span { font-size: 1rem; letter-spacing: .1em; } }

/* ---------- stars ---------- */
.star { color: var(--brass); display: inline-block; }
.star svg { width: 100%; height: 100%; display: block; }
@keyframes twinkle { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .55; transform: scale(.86); } }

/* ---------- hero ---------- */
.hero { overflow: hidden; text-align: center; padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3rem, 7vw, 5rem); }
.hero-mark { position: relative; width: min(64vw, 300px); margin: 0 auto 1.2rem; }
.hero-mark .star { position: absolute; }
.hero-mark .s1 { width: 18%; left: -30%; top: 30%; animation: twinkle 5.5s ease-in-out infinite; }
.hero-mark .s2 { width: 18%; right: -30%; top: 26%; animation: twinkle 5.5s ease-in-out 2.2s infinite; }
.hero-mark .s3 { width: 7%; left: -8%; top: 4%; animation: twinkle 4.2s ease-in-out 1s infinite; }
.hero-mark .s4 { width: 8%; right: -10%; bottom: 8%; animation: twinkle 4.8s ease-in-out 3s infinite; }
.hero h1 { margin: 0; }
.hero .say { margin: 0 auto; max-width: 36ch; }
@media (prefers-reduced-motion: reduce) { .star, .hero-mark .star { animation: none !important; } }

/* ---------- pattern bands (section transitions) ---------- */
.band { height: clamp(90px, 14vw, 150px); background-size: cover; background-repeat: no-repeat; background-position: center; border-block: 3px double var(--brass); }
.band.signature { background-image: url(../img/pat-signature.jpg); background-size: 300px auto; background-repeat: repeat; border-color: var(--brass-light); }
.band.celestial { background-image: url(../img/pat-celestial.jpg); }
.band.botanical { background-image: url(../img/pat-botanical.jpg); }
.band.brooch { background-image: url(../img/pat-brooch.jpg); }
.band.stripe { background-image: url(../img/pat-stripe.jpg); }
.band.treasure { background-image: url(../img/pat-treasure.jpg); }

/* ---------- sections ---------- */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section.deep { background: var(--parchment-deep); }
.section-head { text-align: center; margin-bottom: clamp(2rem, 5vw, 3.25rem); }
.section-head p { max-width: 36ch; margin-inline: auto; color: var(--ink-soft); }

/* meet Tito & Mollie */
.meet { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.meet h2 { font-size: clamp(2.1rem, 1.4rem + 2.8vw, 3.4rem); }
.meet .copy p { max-width: var(--measure); }
@media (max-width: 800px) { .meet { grid-template-columns: 1fr; } .meet .copy { text-align: center; } .meet .copy p { margin-inline: auto; } .meet .rule.left { margin-inline: auto; } }

/* five brand worlds */
.worlds-primary { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 4vw, 3rem); }
.worlds-secondary { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.5rem, 4vw, 3rem); margin-top: clamp(2.5rem, 6vw, 4rem); padding-top: clamp(2.5rem, 6vw, 4rem); border-top: 1px solid var(--paper-line); }
.world { text-align: center; display: flex; flex-direction: column; align-items: center; }
.world img { width: 100%; max-width: 300px; height: 200px; object-fit: contain; margin-bottom: .5rem; }
.world h3 { font-size: clamp(1.9rem, 1.4rem + 1.2vw, 2.4rem); letter-spacing: .2em; margin-bottom: .3rem; }
.world p { color: var(--ink-soft); max-width: 24ch; margin-bottom: 1.4rem; }
.world .btn { margin-top: auto; }
.worlds-secondary .world { flex-direction: row; text-align: left; gap: 1.25rem; align-items: center; }
.worlds-secondary .world img { width: 42%; max-width: 190px; height: auto; margin: 0; flex: none; }
.worlds-secondary .world h3 { font-size: 1.6rem; }
.worlds-secondary .world p { margin-bottom: .9rem; }
.worlds-secondary .world div { display: flex; flex-direction: column; align-items: flex-start; }
.worlds-secondary .btn { margin-top: 0; }
@media (max-width: 900px) { .worlds-primary { grid-template-columns: 1fr; max-width: 26rem; margin-inline: auto; } .world img { max-width: 260px; height: 170px; } }
@media (max-width: 700px) { .worlds-secondary { grid-template-columns: 1fr; max-width: 30rem; margin-inline: auto; } }

/* ---------- product catalogue ---------- */
.catalogue { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); gap: clamp(1.75rem, 4vw, 2.75rem) clamp(1.25rem, 3vw, 2rem); }
.item { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.item .frame {
  position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--parchment-deep);
  border: 1px solid var(--brass); outline: 1px solid var(--brass); outline-offset: 4px; margin: 5px;
}
.item .frame img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.item:hover .frame img { transform: scale(1.03); }
.item .tag {
  position: absolute; left: .75rem; top: .75rem;
  background: var(--parchment); color: var(--rust);
  font-family: var(--fell); font-style: italic; font-size: .95rem; line-height: 1;
  padding: .45rem .75rem .45rem 1.1rem; border: 1px solid var(--rust);
  clip-path: polygon(10px 0, 100% 0, 100% 100%, 10px 100%, 0 50%);
}
.item .tag.sold { color: var(--ink-soft); border-color: var(--ink-soft); }
.item .meta { padding: 1.1rem .25rem 0; }
.item .no { font-family: var(--fell); font-style: italic; color: var(--brass); font-size: .95rem; }
.item h3 { font-family: var(--fell); font-size: 1.45rem; letter-spacing: 0; margin: .1rem 0 .25rem; }
.item .price { font-weight: 600; }
.item.is-sold .frame img { filter: sepia(.35) saturate(.7); opacity: .8; }

.made-grid .item .frame { aspect-ratio: 1 / 1; outline: none; margin: 0; border: 0; }
.made-grid .item .frame::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(38,33,27,.12); }

.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin: 0 auto clamp(2rem, 5vw, 3rem); }
.filters button {
  min-height: 2.75rem; padding: .35rem 1.1rem; background: transparent; border: 1px solid var(--paper-line);
  font-family: var(--fell); font-size: 1.1rem; color: var(--ink); cursor: pointer; border-radius: 999px;
}
.filters button[aria-pressed="true"] { background: var(--olive); border-color: var(--olive); color: var(--parchment); }

.empty { text-align: center; padding: 2rem 0; }
.empty img { width: 180px; margin: 0 auto 1rem; border: 1px solid var(--brass); }

.catalogue.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .catalogue.three { grid-template-columns: repeat(2, 1fr); } .catalogue.three > :nth-child(3) { display: none; } }
@media (max-width: 520px) { .catalogue.three { grid-template-columns: 1fr; } .catalogue.three > :nth-child(3) { display: flex; } }

/* page heads (inner pages) */
.page-head { text-align: center; padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(2.5rem, 5vw, 3.5rem); }
.page-head img { width: min(70vw, 280px); margin: 0 auto .25rem; }
.page-head h1 { letter-spacing: .2em; }
.page-head .say { max-width: 32ch; margin-inline: auto; }

/* ---------- product detail ---------- */
.product { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; padding: clamp(2rem, 5vw, 4rem) 0 clamp(3rem, 7vw, 5rem); }
.product .photo { border: 1px solid var(--brass); outline: 1px solid var(--brass); outline-offset: 5px; margin: 6px; background: var(--parchment-deep); }
.product .photo img { width: 100%; }
.thumbs { display: flex; gap: .75rem; margin-top: 1.25rem; flex-wrap: wrap; }
.thumbs button { padding: 0; border: 1px solid var(--paper-line); background: none; width: 72px; height: 72px; cursor: pointer; }
.thumbs button[aria-current="true"] { border-color: var(--rust); box-shadow: 0 0 0 1px var(--rust); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.product h1 { font-family: var(--fell); font-size: clamp(2.1rem, 1.5rem + 2vw, 3rem); letter-spacing: 0; }
.product .price { font-size: 1.5rem; font-weight: 600; margin-bottom: 1.25rem; }
.product .note { font-size: .95rem; color: var(--ink-soft); margin-top: 1rem; }
.product dl { display: grid; grid-template-columns: auto 1fr; gap: .35rem 1.25rem; margin: 1.5rem 0; padding-top: 1.25rem; border-top: 1px solid var(--paper-line); }
.product dt { font-family: var(--fell); font-style: italic; color: var(--brass); }
.product dd { margin: 0; }
.found-by { font-family: var(--fell); font-style: italic; color: var(--rust); }
.option { margin: 0 0 1.25rem; }
.option label { display: block; font-family: var(--fell); font-style: italic; margin-bottom: .35rem; }
select, input, textarea {
  width: 100%; font: inherit; color: var(--ink); background: #F7F0DF;
  border: 1px solid var(--paper-line); border-bottom-color: var(--ink-soft); padding: .7rem .85rem; min-height: 3rem; border-radius: 0;
}
select:focus, input:focus, textarea:focus { outline: 2px solid var(--rust); outline-offset: 0; }
.back { display: inline-block; margin-top: 1.5rem; font-family: var(--fell); font-style: italic; }
@media (max-width: 800px) { .product { grid-template-columns: 1fr; } }

/* ---------- connect (cleaner business page) ---------- */
.reach { display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid var(--paper-line); }
.reach div { padding: 1.6rem 1rem; text-align: center; }
.reach div + div { border-left: 1px solid var(--paper-line); }
.reach strong { display: block; font-family: var(--display); font-weight: 400; font-size: clamp(2rem, 1.5rem + 1.5vw, 2.8rem); line-height: 1; color: var(--olive); }
.reach span { color: var(--ink-soft); font-size: 1rem; }
@media (max-width: 720px) { .reach { grid-template-columns: 1fr 1fr; } .reach div:nth-child(3) { border-left: 0; } .reach div:nth-child(n+3) { border-top: 1px solid var(--paper-line); } }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); }
@media (max-width: 800px) { .two-col { grid-template-columns: 1fr; } }

.offers { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: 0 2.5rem; }
.offers li { padding: 1.25rem 0; border-top: 1px solid var(--paper-line); }
.offers h3 { font-family: var(--fell); font-size: 1.4rem; letter-spacing: 0; margin-bottom: .25rem; }
.offers p { margin: 0; color: var(--ink-soft); }

.collabs { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem 2.5rem; font-family: var(--display); font-size: 1.35rem; letter-spacing: .12em; color: var(--ink-soft); }

.examples { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.examples a { text-decoration: none; color: var(--ink); }
.examples .thumb { aspect-ratio: 16 / 9; background: var(--olive) url(../img/pat-signature.jpg) center / 300px; border: 1px solid var(--brass); display: grid; place-items: center; }
.examples .thumb span { width: 58px; height: 58px; border-radius: 50%; background: var(--parchment); display: grid; place-items: center; color: var(--rust); }
.examples h3 { font-family: var(--fell); font-size: 1.25rem; letter-spacing: 0; margin: .75rem 0 .15rem; }
.examples p { font-size: 1rem; color: var(--ink-soft); margin: 0; }
@media (max-width: 800px) { .examples { grid-template-columns: 1fr; max-width: 30rem; } }

.form { display: grid; gap: 1.1rem; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form label { display: block; font-family: var(--fell); font-style: italic; margin-bottom: .3rem; }
.form .hp { position: absolute; left: -9999px; }
.form-status { padding: 1rem 1.25rem; border-left: 3px solid var(--olive); background: #F7F0DF; }
.form-status.error { border-color: var(--rust); }
@media (max-width: 560px) { .form .row { grid-template-columns: 1fr; } }

.panel { background: #F7F0DF; border: 1px solid var(--paper-line); padding: clamp(1.5rem, 4vw, 2.5rem); }

/* ---------- about ---------- */
.story { max-width: var(--measure); margin-inline: auto; }
.story p:first-of-type::first-letter { font-family: var(--display); float: left; font-size: 4.1em; line-height: .82; padding: .06em .08em 0 0; color: var(--olive); }
.spoon-note { display: grid; grid-template-columns: 200px 1fr; gap: 2rem; align-items: center; max-width: 46rem; margin-inline: auto; }
.spoon-note img { width: 200px; }
@media (max-width: 620px) { .spoon-note { grid-template-columns: 1fr; text-align: center; } .spoon-note img { margin-inline: auto; width: 150px; } }

.curios { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; max-width: 46rem; margin-inline: auto; }
.curios img { width: 100%; aspect-ratio: 1; object-fit: cover; border: 1px solid var(--brass); }

/* ---------- follow ---------- */
.places { list-style: none; margin: 0 auto; padding: 0; max-width: 44rem; }
.places li { border-top: 1px solid var(--paper-line); }
.places li:last-child { border-bottom: 1px solid var(--paper-line); }
.places a { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 1rem; padding: 1.35rem .25rem; text-decoration: none; color: var(--ink); min-height: 4.5rem; }
.places a:hover { background: rgba(231,216,184,.55); }
.places strong { font-family: var(--display); font-weight: 400; font-size: 1.6rem; letter-spacing: .1em; display: block; line-height: 1.15; }
.places small { color: var(--ink-soft); font-size: 1rem; }
.places .go { font-family: var(--display); letter-spacing: .15em; color: var(--rust); white-space: nowrap; }

/* ---------- discoveries: little surprise illustrations ---------- */
.discovery { display: flex; align-items: center; justify-content: center; gap: 1.25rem; padding: 2.5rem 0 0; }
.discovery img { width: 92px; border: 1px solid var(--brass); transform: rotate(-3deg); }
.discovery p { font-family: var(--fell); font-style: italic; color: var(--ink-soft); margin: 0; max-width: 22ch; }

/* ---------- footer ---------- */
.site-footer { background: var(--olive-deep); color: #E4D8BC; padding: clamp(3rem, 7vw, 4.5rem) 0 2rem; }
.site-footer a { color: #E4D8BC; }
.site-footer a:hover { color: var(--brass-light); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; }
.foot-grid h2 { color: var(--brass-light); font-size: 1.1rem; letter-spacing: .22em; margin-bottom: 1rem; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; }
.foot-grid li { margin-bottom: .45rem; }
.foot-grid .say { color: #E4D8BC; font-size: 1.35rem; }
.foot-word { font-family: var(--display); font-size: 1.5rem; letter-spacing: .2em; color: var(--parchment); margin-bottom: .5rem; }
.foot-base { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(200,160,90,.3); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .95rem; color: #B9AE93; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > div:first-child { grid-column: 1 / -1; } }

/* scroll reveal: only for botanical/illustration moments, not every section */
.reveal { opacity: 0; transform: translateY(8px); transition: opacity .9s ease, transform .9s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
.no-js .reveal { opacity: 1; transform: none; }
@media (max-width: 520px) { .hero-mark { width: 56vw; } .hero-mark .s1 { left: -26%; } .hero-mark .s2 { right: -26%; } }
