/* ===========================================================
   Tiles Decor — warm stone
   Palette and layout grammar after Selene; light only.
   =========================================================== */

:root {
  /* surfaces */
  --bone:      #F7F3ED;
  --bone-2:    #FDFBF8;
  --paper:     #FFFFFF;
  --sand:      #EFE8DE;
  --clay:      #E6DCCE;
  --line:      #E2D8C9;
  --line-soft: #EDE5D9;

  /* ink */
  --ink:       #26211C;
  --ink-2:     #544B42;
  --muted:     #867A6C;
  --faint:     #A89C8D;

  /* accents */
  --bronze:      #A8763E;
  --bronze-deep: #8A5E2C;
  --brand:       #0B6E88;   /* the logo cyan, deepened for contrast */
  --brand-deep:  #085367;
  --brand-tint:  #E6F1F4;
  --green:       #1E8A4C;

  --radius:    4px;
  --radius-lg: 6px;

  --shadow-xs: 0 1px 2px rgba(38,33,28,.05);
  --shadow:    0 2px 10px rgba(38,33,28,.06), 0 12px 32px rgba(38,33,28,.06);
  --shadow-lg: 0 6px 20px rgba(38,33,28,.10), 0 28px 60px rgba(38,33,28,.12);

  --wrap:   1200px;
  --gutter: 20px;

  --display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans:    'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  color-scheme: light;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.005em;
  color: var(--ink);
  margin: 0 0 .45em;
}
h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3rem); }
h3 { font-family: var(--sans); font-size: 1.04rem; font-weight: 600; letter-spacing: -0.005em; line-height: 1.35; }
em { font-style: italic; color: var(--bronze); }
p { margin: 0 0 1rem; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: 860px; }

.section { padding: clamp(56px, 8vw, 110px) 0; }
.section--paper { background: var(--bone-2); }
.section--sand  { background: var(--sand); }
.section--tight { padding-block: clamp(40px, 5vw, 64px); }

.eyebrow {
  font-size: .68rem; font-weight: 500;
  letter-spacing: .28em; text-transform: uppercase;
  color: var(--bronze); margin: 0 0 1.1rem;
}
.lede { font-size: clamp(1.02rem, 1.9vw, 1.14rem); color: var(--ink-2); font-weight: 300; max-width: 60ch; }
.section-head { max-width: 62ch; margin-bottom: clamp(32px, 5vw, 56px); }
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

.skip { position: absolute; left: -9999px; background: var(--ink); color: #fff; padding: 12px 18px; z-index: 300; }
.skip:focus { left: 0; top: 0; }

.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

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

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  font-family: var(--sans); font-size: .78rem; font-weight: 600;
  letter-spacing: .13em; text-transform: uppercase;
  padding: 1.05em 1.9em;
  border: 1px solid transparent; border-radius: var(--radius);
  cursor: pointer; text-decoration: none !important;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .12s ease;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn--sm { padding: .8em 1.3em; font-size: .72rem; }

.btn--primary { background: var(--ink); color: var(--bone); }
.btn--primary:hover { background: #3A332B; color: #fff; }

.btn--outline { background: transparent; color: var(--ink); border-color: var(--clay); }
.btn--outline:hover { border-color: var(--ink); background: rgba(38,33,28,.04); }

.btn--brand { background: var(--brand); color: #fff; }
.btn--brand:hover { background: var(--brand-deep); }

.btn--wa { background: var(--green); color: #fff; }
.btn--wa:hover { background: #166B3A; }

.btn--light { background: rgba(255,255,255,.92); color: var(--ink); }
.btn--light:hover { background: #fff; }
.btn--onDark { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.btn--onDark:hover { background: rgba(255,255,255,.14); border-color: #fff; }

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

.site-head {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bone) 90%, transparent);
  backdrop-filter: saturate(150%) blur(12px);
  -webkit-backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.site-head__in { display: flex; align-items: center; gap: 16px; min-height: 76px; }

.brand { display: flex; align-items: center; gap: 11px; margin-right: auto; text-decoration: none !important; }
.brand__mark { width: 34px; }
.brand__word { height: 15px; width: auto; }
.brand__tag { display: block; font-size: .47rem; letter-spacing: .25em; text-transform: uppercase; color: var(--faint); margin-top: 3px; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav__link, .nav__btn {
  font-family: var(--sans); font-size: .76rem; font-weight: 600;
  letter-spacing: .13em; text-transform: uppercase;
  color: var(--ink-2); background: none; border: 0; cursor: pointer;
  padding: .85em .95em; border-radius: var(--radius);
  display: inline-flex; align-items: center; gap: .45em;
  text-decoration: none !important;
}
.nav__link:hover, .nav__btn:hover { color: var(--ink); background: rgba(38,33,28,.05); }
.nav__link[aria-current="page"] { color: var(--bronze); }
.nav__btn svg { width: 11px; height: 11px; transition: transform .2s ease; }
.nav__btn[aria-expanded="true"] svg { transform: rotate(180deg); }

/* products mega menu */
.mega {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--bone-2);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: none; z-index: 99;
}
.mega[data-open="true"] { display: block; }
.mega__in {
  display: grid; gap: 2px;
  grid-template-columns: repeat(2, minmax(0,1fr));
  padding: 26px 0 30px;
}
@media (min-width: 760px)  { .mega__in { grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (min-width: 1040px) { .mega__in { grid-template-columns: repeat(6, minmax(0,1fr)); } }

.mega__item { display: block; text-decoration: none !important; padding: 10px; border-radius: var(--radius); }
.mega__item:hover { background: var(--sand); }
.mega__item img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 2px; margin-bottom: 10px; }
.mega__name { display: block; font-size: .86rem; font-weight: 600; color: var(--ink); line-height: 1.3; }
.mega__meta { display: block; font-size: .72rem; color: var(--muted); margin-top: 2px; }

.burger {
  display: none; width: 44px; height: 44px;
  align-items: center; justify-content: center;
  background: none; border: 1px solid var(--line); border-radius: var(--radius);
  cursor: pointer; color: var(--ink);
}
.burger svg { width: 20px; height: 20px; }

@media (max-width: 980px) {
  .burger { display: inline-flex; }
  .nav {
    position: fixed; inset: 76px 0 auto; z-index: 98;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bone-2); border-bottom: 1px solid var(--line);
    padding: 10px var(--gutter) 22px; box-shadow: var(--shadow);
    max-height: calc(100dvh - 76px); overflow-y: auto;
    opacity: 0; transform: translateY(-10px); pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
  }
  .nav[data-open="true"] { opacity: 1; transform: none; pointer-events: auto; }
  .nav__link, .nav__btn { padding: 1.05em .4em; border-bottom: 1px solid var(--line-soft); border-radius: 0; justify-content: space-between; width: 100%; }
  .mega { position: static; display: none; box-shadow: none; border: 0; background: transparent; }
  .mega[data-open="true"] { display: block; }
  .mega__in { grid-template-columns: 1fr; padding: 6px 0 10px; }
  .mega__item { display: flex; align-items: center; gap: 12px; padding: 9px 4px; }
  .mega__item img { width: 58px; aspect-ratio: 1; margin: 0; flex: none; }
}
@media (max-width: 460px) { .head-cta .btn span { display: none; } }

.head-cta { display: flex; align-items: center; gap: 8px; }

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

.hero { position: relative; background: var(--bone); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(1000px 520px at 76% 18%, rgba(168,118,62,.09), transparent 62%);
  pointer-events: none;
}
.hero__in {
  position: relative;
  display: grid; grid-template-columns: 1fr; gap: clamp(36px, 5vw, 60px);
  align-items: center;
  /* block only — .wrap owns the side gutter */
  padding-block: clamp(48px, 7vw, 96px) clamp(52px, 7vw, 100px);
}
@media (min-width: 940px) { .hero__in { grid-template-columns: 1.02fr .98fr; } }

.hero h1 { margin-bottom: .32em; text-wrap: balance; }
.hero__sub { font-size: clamp(1rem, 2vw, 1.14rem); color: var(--ink-2); font-weight: 300; max-width: 46ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.hero__stage {
  position: relative;
  display: flex; align-items: flex-end; justify-content: center; gap: clamp(14px, 2.5vw, 26px);
  min-height: clamp(320px, 42vw, 480px);
}
.hero__stage::after {
  content: ""; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 115%; height: 190px; z-index: 0;
  background: radial-gradient(ellipse at center, rgba(168,118,62,.16), transparent 70%);
}
.hero__stage img { position: relative; z-index: 1; border-radius: 2px; box-shadow: var(--shadow-lg); }
.hero__stage .s1 { width: clamp(150px, 23vw, 248px); }
.hero__stage .s2 { width: clamp(130px, 20vw, 212px); margin-bottom: clamp(24px, 5vw, 56px); }

/* on narrow screens the stage must hug the images, not reserve a slab of empty space */
@media (max-width: 939px) {
  .hero__in { padding-block: clamp(28px, 6vw, 48px) clamp(32px, 6vw, 52px); gap: clamp(22px, 5vw, 36px); }
  .hero__stage { min-height: 0; gap: 4vw; }
  .hero__stage::after { height: 42%; }
  .hero__stage .s1 { width: 46%; max-width: 280px; }
  .hero__stage .s2 { width: 38%; max-width: 232px; margin-bottom: 7%; }
  .hero .eyebrow { letter-spacing: .18em; font-size: .64rem; margin-bottom: .9rem; }
  .hero__actions { margin-top: 26px; gap: 10px; }
  .hero__actions .btn { flex: 1 1 auto; }
}
@media (max-width: 420px) {
  .hero__actions .btn { flex: 1 1 100%; }
}

/* fact strip */
.facts { background: var(--bone-2); border-block: 1px solid var(--line-soft); }
.facts__in {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 1px; background: var(--line-soft);
}
@media (min-width: 720px) { .facts__in { grid-template-columns: repeat(4, minmax(0,1fr)); } }
.fact { background: var(--bone-2); padding: 26px 18px 28px; text-align: center; }
.fact__n { font-family: var(--display); font-size: clamp(1.9rem, 3.4vw, 2.5rem); line-height: 1; color: var(--ink); }
.fact__l { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-top: 8px; }

/* ---------------- about (asymmetric) ---------------- */

.about__grid { display: grid; gap: clamp(30px, 5vw, 64px); grid-template-columns: 1fr; align-items: center; }
@media (min-width: 900px) { .about__grid { grid-template-columns: .95fr 1.05fr; } }
.about__art { position: relative; }
.about__art img { border-radius: 2px; box-shadow: var(--shadow); }
.about__art .stack-b {
  position: absolute; right: -14px; bottom: -34px; width: 44%;
  border: 6px solid var(--bone); border-radius: 2px;
}
@media (max-width: 899px) { .about__art .stack-b { display: none; } }
.about__points { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 14px; }
.about__points li { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; font-size: .96rem; color: var(--ink-2); }
.about__points svg { width: 17px; height: 17px; color: var(--bronze); margin-top: 5px; }

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

.cols { display: grid; gap: clamp(16px, 2.4vw, 26px); grid-template-columns: 1fr; }
@media (min-width: 620px)  { .cols { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (min-width: 1000px) { .cols { grid-template-columns: repeat(3, minmax(0,1fr)); } }

.col-card {
  display: flex; flex-direction: column;
  background: var(--paper); border: 1px solid var(--line-soft);
  border-radius: var(--radius); overflow: hidden;
  text-decoration: none !important;
  transition: border-color .2s ease, box-shadow .25s ease, transform .2s ease;
}
.col-card:hover { border-color: var(--clay); box-shadow: var(--shadow); transform: translateY(-3px); }
.col-card__img { aspect-ratio: 4/3; width: 100%; object-fit: cover; background: var(--sand); }
.col-card__body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.col-card__n { font-family: var(--display); font-size: 1.55rem; line-height: 1.15; color: var(--ink); }
.col-card__t { font-size: .88rem; color: var(--muted); font-weight: 300; flex: 1; }
.col-card__c {
  font-size: .7rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--bronze); display: flex; align-items: center; gap: .5em; margin-top: 4px;
}
.col-card__c svg { width: 13px; height: 13px; transition: transform .2s ease; }
.col-card:hover .col-card__c svg { transform: translateX(3px); }

/* featured master book */
.master {
  display: grid; gap: clamp(26px, 4vw, 50px); align-items: center;
  grid-template-columns: 1fr;
  background: var(--paper); border: 1px solid var(--line-soft);
  border-radius: var(--radius); padding: clamp(24px, 4vw, 44px);
}
@media (min-width: 820px) { .master { grid-template-columns: auto 1fr; } }
.master__cover { width: clamp(170px, 26vw, 250px); box-shadow: var(--shadow); border-radius: 2px; }
.master h2 { margin-bottom: .2em; }
.master__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

/* ---------------- catalogue cards (collection page) ---------------- */

.books { display: grid; gap: clamp(16px, 2.4vw, 24px); grid-template-columns: repeat(2, minmax(0,1fr)); }
@media (min-width: 760px)  { .books { grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (min-width: 1060px) { .books { grid-template-columns: repeat(4, minmax(0,1fr)); } }

.book {
  display: flex; flex-direction: column;
  background: var(--paper); border: 1px solid var(--line-soft);
  border-radius: var(--radius); overflow: hidden; text-decoration: none !important;
  transition: border-color .2s ease, box-shadow .25s ease, transform .2s ease;
}
.book:hover { border-color: var(--clay); box-shadow: var(--shadow); transform: translateY(-3px); }
.book__cover { position: relative; aspect-ratio: 3/4; background: var(--sand); overflow: hidden; border-bottom: 1px solid var(--line-soft); }
.book__cover img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.book__badge {
  position: absolute; top: 10px; left: 10px;
  background: rgba(38,33,28,.82); color: #fff;
  font-size: .62rem; letter-spacing: .12em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 2px; backdrop-filter: blur(6px);
}
.book__badge--new { background: var(--bronze); }
.book__body { padding: 14px 16px 17px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.book__n { font-size: .95rem; font-weight: 600; color: var(--ink); line-height: 1.3; }
.book__s { font-size: .78rem; color: var(--muted); font-weight: 300; flex: 1; }
.book__m { font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); margin-top: 5px; }

/* master page references */
.refs { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; }
.refs a {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: var(--paper); padding: 14px 18px; text-decoration: none !important;
  color: var(--ink); font-size: .93rem; transition: background .15s ease;
}
.refs a:hover { background: var(--sand); }
.refs .pg { font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }

/* ---------------- breadcrumb ---------------- */

.crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.crumb a { color: var(--muted); text-decoration: none; }
.crumb a:hover { color: var(--bronze); }
.crumb svg { width: 11px; height: 11px; opacity: .5; }

/* ---------------- page banner ---------------- */

.banner { position: relative; background: var(--sand); border-bottom: 1px solid var(--line); overflow: hidden; }
.banner__in { position: relative; padding-block: clamp(40px, 6vw, 76px) clamp(34px, 5vw, 60px); }
.banner h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); margin-bottom: .22em; }
.banner p { color: var(--ink-2); font-weight: 300; max-width: 58ch; margin: 0; }

/* ---------------- notice ---------------- */

.notice {
  display: flex; gap: 13px; align-items: flex-start;
  background: var(--brand-tint); border: 1px solid #CFE4EA;
  border-radius: var(--radius); padding: 16px 18px;
  font-size: .91rem; color: var(--ink-2);
}
.notice svg { width: 18px; height: 18px; flex: none; color: var(--brand); margin-top: 3px; }

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

.site-foot { background: var(--ink); color: #D9D1C7; padding: clamp(48px, 6vw, 76px) 0 28px; }
.site-foot a { color: #D9D1C7; text-decoration: none; }
.site-foot a:hover { color: #fff; }
.foot-grid { display: grid; gap: 34px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
.foot h4 { font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: #8C8275; margin: 0 0 1.2em; font-weight: 600; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: .9rem; }
.foot__logo { width: 168px; margin-bottom: 16px; }
.foot__note { font-size: .88rem; color: #A69B8D; font-weight: 300; max-width: 34ch; }
.foot-base {
  margin-top: 38px; padding-top: 20px; border-top: 1px solid #3A332B;
  display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between;
  font-size: .78rem; color: #8C8275;
}

/* ---------------- whatsapp float ---------------- */

.wa {
  position: fixed; right: 18px; bottom: 18px; z-index: 90;
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--green); color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 6px 22px rgba(30,138,76,.4);
  text-decoration: none !important; transition: transform .16s ease;
}
.wa:hover { transform: scale(1.06); }
.wa svg { width: 27px; height: 27px; }
@media print { .wa, .site-head { display: none; } }
