/* Self-hosted fonts (Google Fonts, OFL licence) — no external requests, GDPR-friendly */
@font-face{font-family:'Fraunces';font-style:italic;font-weight:100 900;font-display:swap;src:url('../assets/fonts/fraunces-italic-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Fraunces';font-style:italic;font-weight:100 900;font-display:swap;src:url('../assets/fonts/fraunces-italic-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Fraunces';font-style:normal;font-weight:100 900;font-display:swap;src:url('../assets/fonts/fraunces-normal-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Fraunces';font-style:normal;font-weight:100 900;font-display:swap;src:url('../assets/fonts/fraunces-normal-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
/* The wordmark J only: Fraunces' own J at this weight, with the curled
   tail redrawn straight. One glyph, applies solely to the letter J. */
@font-face{font-family:'Jsibella J';font-style:normal;font-weight:800;font-display:swap;src:url('../assets/fonts/jsibella-j.woff2') format('woff2');unicode-range:U+004A;}
@font-face{font-family:'Instrument Sans';font-style:italic;font-weight:400 700;font-display:swap;src:url('../assets/fonts/instrumentsans-italic-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Instrument Sans';font-style:italic;font-weight:400 700;font-display:swap;src:url('../assets/fonts/instrumentsans-italic-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Instrument Sans';font-style:normal;font-weight:400 700;font-display:swap;src:url('../assets/fonts/instrumentsans-normal-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Instrument Sans';font-style:normal;font-weight:400 700;font-display:swap;src:url('../assets/fonts/instrumentsans-normal-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
/* ============================================================
   Jsibella — stylesheet
   cream paper, cornflower blue serif, confetti product tiles
   ============================================================ */

:root {
  --cream: #F6F1E7;
  --paper: #FDFBF6;
  --ink: #26241F;
  --ink-soft: rgba(38, 36, 31, .7);
  --blue: #4056C9;
  --blue-deep: #2E3E9E;
  --yellow: #F3DE8F;
  --pink: #F3B3C8;
  --orange: #F4C39B;
  --aqua: #B9DCD6;
  --green: #B7C8A2;
  --peri: #A9BDE9;
  --lilac: #CBC0E8;
  --radius: 20px;
  --serif: 'Fraunces', 'Georgia', serif;
  --sans: 'Instrument Sans', 'Helvetica Neue', system-ui, sans-serif;
  --shadow-hard: 8px 8px 0 rgba(38, 36, 31, .12);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--cream);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.no-scroll { overflow: hidden; }

img, svg { display: block; max-width: 100%; }

a { color: inherit; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 22px; }

/* ------------------------------ header ------------------------------ */

.site-head { padding: 26px 0 0; text-align: center; }

.logo {
  font-family: 'Jsibella J', var(--serif);
  font-weight: 800;
  font-variation-settings: 'opsz' 60;
  font-style: normal;
  color: var(--blue);
  text-decoration: none;
  font-size: 42px;
  letter-spacing: -0.02em;
  line-height: 1;
  display: inline-block;
}

.logo { transition: transform .25s; }
.logo:hover { transform: rotate(-2deg); }

.site-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 28px;
  padding: 14px 0 18px;
  border-bottom: 1.5px solid rgba(38, 36, 31, .14);
}

.site-nav a {
  text-decoration: none;
  font-size: 14.5px;
  letter-spacing: .02em;
  color: var(--ink);
  padding: 3px 2px;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover { border-bottom-color: var(--pink); }
.site-nav a.on { border-bottom-color: var(--blue); color: var(--blue); font-weight: 600; }

.lang-bar {
  position: fixed;
  top: 14px;
  right: 16px;
  z-index: 40;
  display: flex;
  gap: 2px;
  background: var(--paper);
  border: 1.5px solid rgba(38, 36, 31, .16);
  border-radius: 999px;
  padding: 3px;
  box-shadow: 0 2px 10px rgba(38, 36, 31, .08);
}

.lang-opt {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .05em;
  padding: 4px 11px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--ink-soft);
}

.lang-opt.on { background: var(--blue); color: var(--paper); }
.lang-opt:hover:not(.on) { color: var(--blue); }

@media (max-width: 560px) {
  .lang-bar { top: 8px; right: 8px; padding: 2px; }
  .lang-opt { padding: 4px 9px; font-size: 11px; }
}

.site-nav .cart-link {
  color: var(--blue);
  font-weight: 600;
  cursor: pointer;
}

/* ------------------------------- hero ------------------------------- */

.hero {
  position: relative;
  text-align: center;
  padding: 76px 20px 60px;
  overflow: hidden;
}

.hero-maps {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: min(820px, 96%);
  height: min(400px, 92%);
  color: var(--blue);
  opacity: .22;
  pointer-events: none;
}

.hero-maps path { stroke-width: 1.6; }

@media (max-width: 640px) {
  .hero-maps { display: none; }
}

.hero h1 {
  position: relative;
  font-family: 'Jsibella J', var(--serif);
  font-weight: 800;
  font-variation-settings: 'opsz' 60;
  color: var(--blue);
  font-size: clamp(72px, 13vw, 168px);
  letter-spacing: -0.03em;
  line-height: .95;
}

.hero .tag {
  position: relative;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(19px, 2.6vw, 26px);
  color: var(--ink);
  margin-top: 22px;
}

.hero .sub {
  position: relative;
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: 15px;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.hero-ctas {
  position: relative;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 34px;
}

/* ------------------------------ buttons ------------------------------ */

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: .01em;
  background: var(--blue);
  color: var(--paper);
  border: 2px solid var(--blue);
  border-radius: 999px;
  padding: 13px 30px;
  cursor: pointer;
  text-decoration: none;
  transition: transform .18s, box-shadow .18s, background .18s;
}

.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 rgba(38, 36, 31, .18);
  background: var(--blue-deep);
  border-color: var(--blue-deep);
}

.btn:disabled { opacity: .6; cursor: wait; transform: none; box-shadow: none; }

.btn.ghost { background: transparent; color: var(--blue); }
.btn.ghost:hover { background: var(--blue); color: var(--paper); }

.btn.wide { display: block; width: 100%; text-align: center; }

/* ------------------------------ marquee ------------------------------ */

.marquee {
  background: var(--blue);
  color: var(--cream);
  padding: 14px 22px;
  transform: rotate(-0.6deg) scale(1.01);
  text-align: center;
}

.marquee p {
  font-family: var(--serif);
  font-style: italic;
  font-size: 19px;
  line-height: 1.5;
}

/* --------------------------- section bits --------------------------- */

.section { padding: 72px 0 26px; }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.section-head h2, .page-title {
  font-family: var(--serif);
  font-weight: 900;
  color: var(--blue);
  font-size: clamp(34px, 5vw, 54px);
  letter-spacing: -0.02em;
}

.section-head .see-all {
  font-size: 14.5px;
  color: var(--blue);
  font-weight: 600;
}

.page-head { text-align: center; padding: 54px 0 10px; }
.page-title { font-size: clamp(46px, 7vw, 84px); }
.page-sub {
  font-family: var(--serif);
  font-style: italic;
  font-size: 19px;
  color: var(--ink-soft);
  margin-top: 12px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* ------------------------------- tabs ------------------------------- */

.tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 26px;
  padding: 26px 0 8px;
}

.tab {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}

.tab sup { font-size: 9.5px; margin-left: 3px; }
.tab:hover { color: var(--ink); }
.tab.on { color: var(--ink); border-bottom-color: var(--blue); font-weight: 700; }

/* ------------------------------- grid ------------------------------- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  gap: 44px 28px;
  padding: 26px 0 70px;
}

.pcard { display: flex; flex-direction: column; }

.badge {
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 9px;
  min-height: 14px;
}

.tile {
  position: relative;
  border: none;
  padding: 0;
  cursor: pointer;
  border-radius: var(--radius);
  aspect-ratio: 4 / 5;
  overflow: hidden;
  display: block;
  width: 100%;
}

.tile-art {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .3s ease;
}

.tile-art svg { width: 88%; height: 88%; }

/* Uploaded photos sit on the coloured tile just like the illustrations,
   so a catalogue mixing both still reads as one set. */
.tile-photo {
  width: 82%;
  height: 82%;
  object-fit: contain;
  filter: drop-shadow(10px 12px 10px rgba(30, 26, 20, .22));
}

.tile-photo.fill {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: none;
}

.modal-tile .tile-photo { width: 84%; height: 84%; }
.modal-tile .tile-photo.fill { width: 100%; height: 100%; }

.citem-tile .tile-photo {
  width: 88%;
  height: 88%;
  margin: 6%;
  filter: none;
}
.citem-tile .tile-photo.fill { width: 100%; height: 100%; margin: 0; }

.tile:hover .tile-art { transform: rotate(-3deg) scale(1.05); }

.quick-add {
  position: absolute;
  right: 13px;
  bottom: 13px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--paper);
  color: var(--blue);
  font-size: 23px;
  line-height: 38px;
  text-align: center;
  font-weight: 600;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .2s, transform .2s, background .2s;
  box-shadow: 0 3px 10px rgba(38, 36, 31, .18);
}

.tile:hover .quick-add, .tile:focus .quick-add { opacity: 1; transform: translateY(0); }
.quick-add:hover { background: var(--blue); color: var(--paper); }

.pmeta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-top: 13px;
}

.pname {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 17.5px;
  letter-spacing: .01em;
}

.pprice { font-size: 15.5px; color: var(--ink-soft); white-space: nowrap; }

.pdesc {
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: 4px;
}

/* ------------------------------ duo tiles ------------------------------ */

.duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  padding: 20px 0 70px;
}

.duo-tile {
  position: relative;
  border-radius: calc(var(--radius) + 8px);
  padding: 40px 34px;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  text-decoration: none;
  overflow: hidden;
  transition: transform .25s;
}

.duo-tile:hover { transform: translateY(-5px) rotate(-.5deg); }

.duo-tile .duo-art {
  position: absolute;
  right: -12px;
  top: -8px;
  width: 62%;
  max-width: 330px;
  opacity: .96;
  transform: rotate(6deg);
}

.duo-tile h3 {
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(30px, 4vw, 44px);
  color: var(--paper);
  text-shadow: 3px 3px 0 rgba(38, 36, 31, .18);
  position: relative;
}

.duo-tile p { color: rgba(253, 251, 246, .95); position: relative; margin: 6px 0 16px; max-width: 320px; text-shadow: 0 1px 10px rgba(38, 36, 31, .35); }

.duo-tile .btn { background: var(--paper); color: var(--ink); border-color: var(--paper); position: relative; }
.duo-tile .btn:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.duo-tile.light h3 { color: var(--blue-deep); text-shadow: none; }
.duo-tile.light p { color: rgba(38, 36, 31, .78); text-shadow: none; }
.duo-tile.light .btn { background: var(--blue); color: var(--paper); border-color: var(--blue); }
.duo-tile.light .btn:hover { background: var(--blue-deep); border-color: var(--blue-deep); }

/* ------------------------------- steps ------------------------------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  padding: 14px 0 78px;
}

.step {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow-hard);
}

.step .n {
  display: inline-block;
  font-family: var(--serif);
  font-weight: 900;
  font-size: 22px;
  width: 46px;
  height: 46px;
  line-height: 46px;
  text-align: center;
  border-radius: 50%;
  color: var(--ink);
  margin-bottom: 16px;
}

.step h3 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 22px;
  margin-bottom: 8px;
  color: var(--blue);
}

.step p { color: var(--ink-soft); font-size: 15px; }

/* ------------------------------- quote ------------------------------- */

.bigquote {
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(26px, 4vw, 40px);
  color: var(--blue);
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px 90px;
  line-height: 1.3;
}

.bigquote .who {
  display: block;
  font-family: var(--sans);
  font-style: normal;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--ink-soft);
  margin-top: 18px;
}

/* ------------------------------- footer ------------------------------- */

.site-foot {
  background: var(--blue);
  color: var(--cream);
  padding: 70px 0 34px;
  margin-top: 30px;
}

.foot-big {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(40px, 7vw, 84px);
  letter-spacing: -0.02em;
  margin-bottom: 44px;
}

.foot-cols {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 30px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(246, 241, 231, .28);
}

.foot-cols h4 {
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: .16em;
  margin-bottom: 14px;
  color: rgba(246, 241, 231, .9);
}

.foot-cols a {
  display: block;
  color: var(--cream);
  text-decoration: none;
  font-size: 15px;
  margin-bottom: 9px;
}

.foot-cols a:hover { text-decoration: underline; }

.foot-cols .about-line { font-size: 15px; color: rgba(246, 241, 231, .85); max-width: 300px; }

.foot-base {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding-top: 24px;
  font-size: 13px;
  color: rgba(246, 241, 231, .92);
}

/* ------------------------------- toast ------------------------------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 20px);
  background: var(--blue);
  color: var(--cream);
  font-size: 14.5px;
  padding: 12px 24px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s, transform .25s;
  z-index: 90;
}

.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* --------------------------- drawer + modal --------------------------- */

.drawer-wrap, .modal-wrap { position: fixed; inset: 0; z-index: 70; visibility: hidden; }
.drawer-wrap.open, .modal-wrap.open { visibility: visible; }

.drawer-overlay, .modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(38, 36, 31, .4);
  opacity: 0;
  transition: opacity .25s;
}

.drawer-wrap.open .drawer-overlay, .modal-wrap.open .modal-overlay { opacity: 1; }

.drawer {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: min(430px, 100vw);
  background: var(--paper);
  display: flex;
  flex-direction: column;
  transform: translateX(102%);
  transition: transform .3s ease;
  box-shadow: -12px 0 40px rgba(38, 36, 31, .2);
}

.drawer-wrap.open .drawer { transform: translateX(0); }

.drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 24px 14px;
}

.drawer-head h2 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 25px;
  color: var(--blue);
}

.drawer-head h2 span {
  font-family: var(--sans);
  font-size: 14px;
  vertical-align: super;
  color: var(--ink-soft);
}

.freeship { padding: 0 24px 6px; }
.freeship p { font-size: 13.5px; color: var(--ink-soft); margin-bottom: 7px; }

.fs-bar {
  height: 7px;
  border-radius: 99px;
  background: rgba(38, 36, 31, .1);
  overflow: hidden;
}

.fs-bar span {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--peri), var(--blue));
  transition: width .4s;
}

.drawer-items { flex: 1; overflow-y: auto; padding: 12px 24px; }

.drawer-empty { text-align: center; padding: 60px 10px; color: var(--ink-soft); }
.drawer-empty .btn { margin-top: 20px; }

.citem {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 13px 0;
  border-bottom: 1px solid rgba(38, 36, 31, .09);
  position: relative;
}

.citem-tile {
  width: 68px;
  min-width: 68px;
  aspect-ratio: 4 / 5;
  border-radius: 12px;
  overflow: hidden;
}

.citem-info { flex: 1; }
.citem-name { font-family: var(--serif); font-size: 15.5px; font-weight: 500; }
.citem-made { font-size: 12.5px; color: var(--ink-soft); margin: 2px 0 8px; }
.citem-row { display: flex; justify-content: space-between; align-items: center; }
.citem-price { font-size: 14.5px; font-weight: 600; }

.citem-x {
  background: none;
  border: none;
  font-size: 19px;
  color: var(--ink-soft);
  cursor: pointer;
  padding: 0 2px;
}

.citem-x:hover { color: var(--pink); }

.qty {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1.5px solid rgba(38, 36, 31, .2);
  border-radius: 999px;
  padding: 5px 8px;
}

.qty button {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 17px;
  width: 26px;
  color: var(--ink);
}

.qty button:disabled { opacity: .3; cursor: not-allowed; }
.qty span { min-width: 22px; text-align: center; font-weight: 600; font-size: 14.5px; }
.qty.small { padding: 2px 4px; }
.qty.small button { font-size: 15px; width: 22px; }
.qty.small span { font-size: 13.5px; min-width: 18px; }

.drawer-foot { padding: 16px 24px 24px; border-top: 1.5px solid rgba(38, 36, 31, .12); }
.drawer-sub { display: flex; justify-content: space-between; font-weight: 700; font-size: 17px; margin-bottom: 6px; }
.drawer-note { font-size: 12.5px; color: var(--ink-soft); margin-bottom: 14px; }

/* modal */

.modal {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(.96);
  width: min(880px, calc(100vw - 32px));
  max-height: calc(100vh - 60px);
  overflow-y: auto;
  background: var(--paper);
  border-radius: calc(var(--radius) + 6px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  opacity: 0;
  transition: opacity .22s, transform .22s;
  box-shadow: 0 30px 80px rgba(38, 36, 31, .3);
}

.modal-wrap.open .modal { opacity: 1; transform: translate(-50%, -50%) scale(1); }

.modal-x {
  position: absolute;
  top: 12px; right: 16px;
  background: var(--paper);
  border: none;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  color: var(--ink);
  z-index: 2;
  border-radius: 50%;
  width: 38px;
  height: 38px;
}

.modal-x:hover { color: var(--pink); }

.modal-tile {
  border-radius: calc(var(--radius) + 6px) 0 0 calc(var(--radius) + 6px);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
}

.modal-tile svg { width: 86%; height: 86%; }

.modal-info { padding: 44px 38px 34px; }
.modal-info h2 { font-family: var(--serif); font-weight: 700; font-size: 30px; color: var(--blue); margin: 8px 0 4px; }
.modal-price { font-size: 21px; font-weight: 600; margin-bottom: 12px; }

.modal-made {
  display: inline-block;
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: .1em;
  background: rgba(64, 86, 201, .1);
  color: var(--blue);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 16px;
}

.modal-desc { color: var(--ink-soft); font-size: 15.5px; margin-bottom: 16px; }
.ooak-note { font-size: 14px; color: var(--blue-deep); font-weight: 600; margin-bottom: 14px; }
.modal-buy { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 10px 0 18px; }
.modal-fine { font-size: 12.5px; color: var(--ink-soft); }

/* ----------------------------- about page ----------------------------- */

.about-hero { text-align: center; padding: 60px 0 20px; position: relative; overflow: hidden; }

.meaning {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 0;
  flex-wrap: wrap;
  padding: 34px 0 60px;
}

.meaning .half {
  background: var(--paper);
  padding: 34px 40px;
  max-width: 330px;
  box-shadow: var(--shadow-hard);
}

.meaning .half:first-child { border-radius: var(--radius) 0 0 var(--radius); transform: rotate(-1.2deg); }
.meaning .half:last-child { border-radius: 0 var(--radius) var(--radius) 0; transform: rotate(1.2deg); }

.meaning .word { font-family: var(--serif); font-weight: 900; font-size: 44px; color: var(--blue); }
.meaning .lang { font-size: 12px; text-transform: uppercase; letter-spacing: .16em; color: var(--ink-soft); margin: 4px 0 10px; }
.meaning p { font-size: 15px; color: var(--ink-soft); }

.values {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 10px 0 70px;
}

.value {
  border-radius: var(--radius);
  padding: 26px 22px;
  color: var(--ink);
}

.value .v-num { font-family: var(--serif); font-weight: 900; font-size: 38px; line-height: 1.1; }
.value p { font-size: 14px; margin-top: 6px; }

.prose {
  max-width: 660px;
  margin: 0 auto;
  padding: 20px 0 60px;
  font-size: 17px;
}

.prose p { margin-bottom: 18px; }
.prose strong { color: var(--blue); }

/* ---------------------------- contact page ---------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 30px 0 80px;
  align-items: start;
}

.contact-card {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 36px 34px;
  box-shadow: var(--shadow-hard);
}

.contact-card h3 { font-family: var(--serif); font-weight: 700; font-size: 24px; color: var(--blue); margin-bottom: 16px; }

.contact-rows p { margin-bottom: 14px; font-size: 15.5px; }
.contact-rows .lbl { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .14em; color: var(--ink-soft); }
.contact-rows a { color: var(--blue); font-weight: 600; text-decoration: none; }
.contact-rows a:hover { text-decoration: underline; }

.faq { padding: 0 0 80px; max-width: 760px; margin: 0 auto; }
.faq h2 { font-family: var(--serif); font-weight: 900; color: var(--blue); font-size: 34px; margin-bottom: 22px; text-align: center; }

.faq details {
  background: var(--paper);
  border-radius: 14px;
  padding: 18px 22px;
  margin-bottom: 12px;
}

.faq summary { font-weight: 600; cursor: pointer; font-size: 16px; }
.faq details p { margin-top: 10px; color: var(--ink-soft); font-size: 15px; }

/* ------------------------------- forms ------------------------------- */

.field { margin-bottom: 16px; }

.field label {
  display: block;
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--ink-soft);
  margin-bottom: 6px;
}

.field input, .field textarea, .field select {
  width: 100%;
  font-family: var(--sans);
  font-size: 16px; /* 16px+ stops iOS Safari zooming the page on focus */
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid rgba(38, 36, 31, .22);
  border-radius: 12px;
  padding: 12px 14px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}

.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(64, 86, 201, .15);
}

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ------------------------------ checkout ------------------------------ */

.co-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 44px;
  padding: 30px 0 90px;
  align-items: start;
}

.co-form h2, .co-summary h2 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 24px;
  color: var(--blue);
  margin-bottom: 18px;
}

.co-form fieldset { border: none; margin-bottom: 30px; }

.ship-opt {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--paper);
  border: 1.5px solid rgba(38, 36, 31, .18);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 10px;
  cursor: pointer;
  font-size: 15px;
}

.ship-opt:has(input:checked) { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(64, 86, 201, .12); }
.ship-opt input { accent-color: var(--blue); width: 17px; height: 17px; }
.ship-opt .sp { margin-left: auto; font-weight: 600; }

.pay-mode {
  font-size: 13.5px;
  background: rgba(64, 86, 201, .08);
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 18px;
  color: var(--ink-soft);
}

.co-summary {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: var(--shadow-hard);
  position: sticky;
  top: 20px;
}

.co-summary .citem { border-bottom-color: rgba(38, 36, 31, .08); }

.co-line {
  display: flex;
  justify-content: space-between;
  font-size: 15px;
  padding: 5px 0;
  color: var(--ink-soft);
}

.co-line.total {
  color: var(--ink);
  font-weight: 700;
  font-size: 19px;
  border-top: 1.5px solid rgba(38, 36, 31, .14);
  margin-top: 8px;
  padding-top: 12px;
}

.co-totals { margin-top: 14px; }

.co-empty { text-align: center; padding: 70px 0 90px; }
.co-empty h2 { font-family: var(--serif); color: var(--blue); font-size: 32px; margin: 12px 0 8px; }
.co-empty p { color: var(--ink-soft); margin-bottom: 22px; }

/* ------------------------------ success ------------------------------ */

.success-box { text-align: center; padding: 80px 0 100px; max-width: 640px; margin: 0 auto; }
.success-box h1 { font-family: var(--serif); font-weight: 900; color: var(--blue); font-size: clamp(44px, 7vw, 72px); margin: 14px 0 10px; }
.success-box p { color: var(--ink-soft); font-size: 17px; margin-bottom: 8px; }
.success-box .ref { display: inline-block; font-weight: 700; color: var(--ink); background: var(--paper); border-radius: 999px; padding: 8px 20px; margin: 14px 0 26px; box-shadow: var(--shadow-hard); }
.success-box .mode { color: #5C7046; font-weight: 600; }

/* ----------------------------- responsive ----------------------------- */

/* Touch devices: no hover, so the add button must always be visible */
@media (hover: none) {
  .quick-add { opacity: 1; transform: translateY(0); }
  .tile:active .tile-art { transform: scale(.97); }
}

@media (max-width: 900px) {
  .duo { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .values { grid-template-columns: repeat(2, 1fr); }
  .co-grid { grid-template-columns: 1fr; }
  .co-summary { position: static; }
  .contact-grid { grid-template-columns: 1fr; }
  .modal { grid-template-columns: 1fr; }
  .modal-tile { border-radius: calc(var(--radius) + 6px) calc(var(--radius) + 6px) 0 0; min-height: 320px; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .duo-tile .duo-art { opacity: .4; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 30px 16px; }
  .pname { font-size: 15px; }
  .pdesc { font-size: 12px; }
  .quick-add { width: 36px; height: 36px; font-size: 20px; line-height: 34px; }
  .values { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .logo { font-size: 34px; }
  .site-nav { gap: 4px 16px; }
  .site-nav a { font-size: 13.5px; }
  .modal-info { padding: 30px 24px 26px; }
  .drawer-head { padding: 18px 18px 10px; }
  .freeship { padding: 0 18px 6px; }
  .drawer-items { padding: 10px 18px; }
  .drawer-foot { padding: 14px 18px 20px; }
}
