/* Casa Akasha – shared styles for every page.
   Layout: centred letterhead (logo over tracked-caps nav), then full-bleed
   photographs and narrow columns of text on Desert Stone paper.
   Brand colours and type were updated Nov 17, 2026: change them here only. */

/* Script: MADE TheArtist Script by MadeType ("The Artist Script" in Canva),
   from Nov 24, 2026. File: assets/fonts/made-theartist-script.woff2.
   Replaces Babylonica. */
@font-face {
  font-family: 'The Artist Script';
  src: url('fonts/made-theartist-script.woff2') format('woff2');
  font-display: swap;
}

:root {
  /* Palette – Casa Akasha Jewel Box */
  --stone: #EFEBE5;         /* Desert Stone – the paper */
  --stone-raised: #F7F4F0;  /* a lighter sheet for inputs and plates */
  --oxblood: #5A1A1F;       /* headings, logo, buttons */
  --madder: #874844;        /* Smokey Madder – secondary text */
  --gold: #B8955F;          /* Golden Thread – rules and small accents */
  --quartz: #1F1A1B;        /* Black Quartz – body text, never a background */
  --line: rgba(90, 26, 31, 0.2);

  /* Collection colours */
  --peacock: #004E61;
  --smokey-teal: #3C6676;
  --bordeaux: #48152C;
  --smokey-plum: #744055;
  --emerald: #0F4A3A;
  --smokey-jade: #4C7364;

  /* Type */
  --display: 'Forum', 'Palatino Linotype', Palatino, serif;
  --body: 'Cormorant Garamond', Garamond, Georgia, serif;
  --script: 'The Artist Script', 'Snell Roundhand', cursive;

  --measure: 34rem;
  --wide: 72rem;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--stone);
  color: var(--quartz);
  font-family: var(--body);
  font-size: 1.1875rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.wrap {
  width: 100%;
  max-width: var(--wide);
  margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

/* ── Letterhead ─────────────────────────────── */
.letterhead {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  padding-block: 1.75rem 1.25rem;
  border-bottom: 1px solid var(--line);
}
.letterhead .logo img { height: 52px; width: auto; }
.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  column-gap: 2.25rem;
  row-gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav a {
  font-family: var(--display);
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--oxblood);
  padding-block: 0.3rem;
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s;
}
.nav a:hover { border-color: var(--line); }
.nav a[aria-current="page"] { border-color: var(--gold); }
@media (max-width: 560px) {
  .letterhead .logo img { height: 42px; }
  .nav { column-gap: 1.25rem; }
  .nav a { font-size: 0.7rem; letter-spacing: 0.22em; }
}

/* ── Type ───────────────────────────────────── */
h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  color: var(--oxblood);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  line-height: 1.25;
  text-wrap: balance;
  margin: 0;
}
h1 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
h2 { font-size: clamp(1.05rem, 2vw, 1.3rem); }
h3 { font-size: 0.95rem; letter-spacing: 0.22em; }
p { margin: 0; }
.script { font-family: var(--script); font-weight: 400; text-transform: none; letter-spacing: 0; }
.label {
  font-family: var(--display);
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--madder);
}
.lead {
  font-size: clamp(1.3rem, 2.3vw, 1.65rem);
  line-height: 1.5;
  color: var(--oxblood);
  max-width: 36rem;
}
.muted { color: var(--madder); }
.italic { font-style: italic; }

.text-link {
  font-family: var(--display);
  font-size: 0.78rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--oxblood);
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 0.2rem;
}
.text-link:hover { border-color: var(--oxblood); }

.button {
  display: inline-block;
  font-family: var(--display);
  font-size: 0.78rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--stone);
  background: var(--oxblood);
  border: 1px solid var(--oxblood);
  padding: 0.95rem 1.9rem;
  cursor: pointer;
  transition: background 0.25s, color 0.25s;
}
.button:hover { background: transparent; color: var(--oxblood); }
.button.ghost { background: transparent; color: var(--oxblood); }
.button.ghost:hover { background: var(--oxblood); color: var(--stone); }

/* ── Page heading (inner pages) ─────────────── */
.page-head {
  padding-block: clamp(3rem, 7vw, 5.5rem) clamp(2rem, 4vw, 3rem);
  display: grid;
  gap: 1.25rem;
  justify-items: start;
}

.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* ── Footer ─────────────────────────────────── */
.footer {
  border-top: 1px solid var(--line);
  padding-block: 3rem 2.5rem;
  margin-top: clamp(3rem, 6vw, 5rem);
}
.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 2rem;
  align-items: start;
}
.footer .mark { width: 54px; height: auto; }
.footer-tag { font-size: 1.05rem; line-height: 1.5; font-family: var(--display); letter-spacing: 0.22em; }
.footer-tag .script { font-size: 3rem; color: var(--oxblood); line-height: 1; }
.footer-contact { text-align: right; font-size: 1rem; line-height: 1.7; }
.footer-contact a { text-decoration: none; border-bottom: 1px solid var(--line); }
.footer-small {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  font-family: var(--display);
  font-size: 0.68rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--madder);
}
.footer-small nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.footer-small a { text-decoration: none; }
@media (max-width: 640px) {
  .footer-inner { grid-template-columns: 1fr; }
  .footer-contact { text-align: left; }
}

/* ── Home ───────────────────────────────────── */
.hero {
  position: relative;
  height: clamp(420px, 74vh, 780px);
  overflow: hidden;
  background: var(--oxblood);
}
.hero img, .hero video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(31, 26, 27, 0.62) 0%, rgba(31, 26, 27, 0.15) 45%, rgba(31, 26, 27, 0) 70%);
}
.hero-words {
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  bottom: clamp(1.75rem, 5vw, 3.5rem);
}
.hero-words p {
  color: var(--stone);
  font-family: var(--display);
  letter-spacing: 0.34em;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  line-height: 1.5;
}
.hero-words .script {
  display: block;
  font-size: clamp(3.4rem, 9vw, 7rem);
  line-height: 1.05;
  color: var(--stone);
  letter-spacing: 0;
  margin-top: 0;
}

.statement { display: flex; flex-direction: column; align-items: flex-start; gap: 2rem; }
.statement .lead { max-width: none; font-size: clamp(1.15rem, 2vw, 1.4rem); }
.page-head-wide .lead { font-size: clamp(1.15rem, 2vw, 1.4rem); }
.statement .label { color: var(--oxblood); opacity: 0.85; display: flex; flex-wrap: wrap; column-gap: 1.1rem; row-gap: 0.2rem; }
.statement .label span { white-space: nowrap; }
.statement-top { width: 100%; padding-bottom: 1rem; border-bottom: 1px solid var(--line); font-size: 0.84rem; }

/* What we make – set like a printed list */
.formats { display: grid; gap: 0; margin-top: 2rem; border-top: 1px solid var(--line); }
.format {
  display: grid;
  grid-template-columns: minmax(0, 16rem) minmax(0, 1fr);
  gap: 0.5rem 2rem;
  padding-block: 1.15rem;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.format h3 { color: var(--oxblood); }
.format .guests {
  font-variant-numeric: tabular-nums lining-nums;
  font-style: italic;
  color: var(--madder);
  font-size: 1rem;
  white-space: nowrap;
}
.format p { font-size: 1.05rem; }
@media (max-width: 680px) {
  .format { grid-template-columns: 1fr; }
}

.photo-pair {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  gap: clamp(0.75rem, 1.5vw, 1.25rem);
  align-items: end;
}
.photo-pair img { width: 100%; object-fit: cover; }
.photo-pair img:first-child { aspect-ratio: 16 / 10; }
.photo-pair img:last-child { aspect-ratio: 4 / 5; }
.photo-pair.even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
.photo-pair.even img, .photo-pair.even img:first-child, .photo-pair.even img:last-child { aspect-ratio: 4 / 5; }
@media (max-width: 640px) {
  .photo-pair { grid-template-columns: 1fr; }
  .photo-pair img:last-child { aspect-ratio: 16 / 10; }
}

.atelier-feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 2rem 4rem;
  align-items: start;
}
.atelier-feature .copy { display: grid; gap: 1.25rem; justify-items: start; }
.collections-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.collections-list li {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-block: 0.95rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--display);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.9rem;
  color: var(--oxblood);
}
.collections-list .swatch { width: 1.6rem; height: 0.55rem; flex-shrink: 0; }
.collections-list .cname { display: grid; gap: 0.2rem; min-width: 0; }
.collections-list .cname small { font-family: var(--body); font-style: italic; text-transform: none; letter-spacing: 0; font-size: 1rem; color: var(--madder); }
.collections-list em { flex-shrink: 0; }
.collections-list em {
  margin-left: auto;
  font-family: var(--body);
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.95rem;
  color: var(--madder);
}
@media (max-width: 760px) { .atelier-feature { grid-template-columns: 1fr; } }

.closing {
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 1.5rem;
}
.closing h2 { font-size: clamp(1.3rem, 2.6vw, 1.7rem); }
.closing h2 + p { margin-top: -0.6rem; }

/* ── Origins ────────────────────────────────── */
.method {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem 3rem;
  margin-top: 2.25rem;
}
.method > div { border-top: 1px solid var(--gold); padding-top: 1.25rem; display: grid; gap: 0.75rem; align-content: start; }
.method p { font-size: 1.08rem; }
@media (max-width: 760px) { .method { grid-template-columns: 1fr; } }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 2rem 4rem;
}
.split .body { display: grid; gap: 1.1rem; max-width: var(--measure); }
.split-wide .body, .split-wide .lead { max-width: none; }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } }

.work-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.work-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 0.25rem 2rem;
  padding-block: 1rem;
  border-bottom: 1px solid var(--line);
}
.work-list strong { font-family: var(--display); font-weight: 400; letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.92rem; color: var(--oxblood); }
.work-list span { font-style: italic; color: var(--madder); font-size: 1.05rem; }
.work-list .role { display: block; margin-top: 0.35rem; font-family: var(--display); font-style: normal; text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.7rem; color: var(--madder); opacity: 0.8; }
@media (max-width: 560px) { .work-list li { grid-template-columns: 1fr; } }

.founder {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: 2.5rem 4rem;
  align-items: center;
}
.founder img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.founder .body { display: grid; gap: 1.1rem; max-width: var(--measure); }
@media (max-width: 760px) { .founder { grid-template-columns: 1fr; } }

/* ── Lookbook ───────────────────────────────── */
.collabs {
  display: grid;
  gap: 1rem;
  padding-block: 0 2.5rem;
}
.collabs ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0;
  font-family: var(--display);
  font-size: 0.9rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--oxblood);
}
.collabs li:not(:last-child)::after { content: "·"; color: var(--gold); margin-inline: 0.9rem; }
.collabs a { text-decoration: none; border-bottom: 1px solid var(--gold); }
.collabs a:hover { border-color: var(--oxblood); }

/* Three hand-ordered columns (top to bottom). Stacks to one on phones. */
.grid-book {
  display: flex;
  gap: clamp(0.6rem, 1.2vw, 1rem);
  align-items: flex-start;
}
.lb-col { flex: 1 1 0; min-width: 0; }
@media (max-width: 700px) { .grid-book { flex-direction: column; gap: 0; } .lb-col { width: 100%; } }
.grid-book figure {
  position: relative;
  margin: 0 0 clamp(0.6rem, 1.2vw, 1rem);
  break-inside: avoid;
  overflow: hidden;
}
.grid-book img { width: 100%; }
.grid-book figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 2.5rem 1rem 0.9rem;
  background: linear-gradient(to top, rgba(31, 26, 27, 0.7), rgba(31, 26, 27, 0));
  color: var(--stone);
  font-family: var(--display);
  font-size: 0.75rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.35s;
}
.grid-book figcaption:empty { display: none; }
.grid-book figure:hover figcaption, .grid-book figure:focus-within figcaption { opacity: 1; }
@media (hover: none) {
  .grid-book figcaption { position: static; opacity: 1; background: none; color: var(--madder); padding: 0.5rem 0 0; }
}

/* ── Inquiries ──────────────────────────────── */
.inquiry-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  gap: 3rem 5rem;
  align-items: start;
}
.inquiry-layout aside { display: grid; gap: 1.25rem; }
.inquiry-layout aside p { font-size: 1.08rem; }
@media (max-width: 820px) { .inquiry-layout { grid-template-columns: 1fr; } }

.form { display: grid; gap: 1.4rem; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
@media (max-width: 560px) { .form .row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 0.45rem; min-width: 0; }
.field label {
  font-family: var(--display);
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--madder);
}
.field input, .field select, .field textarea {
  width: 100%;
  font: inherit;
  font-size: 1.05rem;
  color: var(--quartz);
  background: var(--stone-raised);
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 0.7rem 0.8rem;
  appearance: none;
}
.field select {
  background-image: linear-gradient(45deg, transparent 50%, var(--oxblood) 50%), linear-gradient(135deg, var(--oxblood) 50%, transparent 50%);
  background-position: calc(100% - 18px) 55%, calc(100% - 13px) 55%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
  padding-right: 2.2rem;
}
.field textarea { min-height: 8rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); }
.form-note { font-size: 0.95rem; font-style: italic; color: var(--madder); }

.sent { display: grid; gap: 1.1rem; }
.sent pre {
  white-space: pre-wrap;
  font-family: var(--body);
  font-size: 1rem;
  background: var(--stone-raised);
  border: 1px solid var(--line);
  padding: 1.1rem;
  margin: 0;
  max-height: 22rem;
  overflow: auto;
}
.copy-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.copy-row .address { font-size: 1.1rem; color: var(--oxblood); user-select: all; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* ── Hand-drawn touches ─────────────────────── */
.doodle { display: inline-block; flex-shrink: 0; overflow: visible; color: var(--gold); vertical-align: middle; width: auto; }
.doodle .s { fill: none; stroke: currentColor; stroke-width: 1.15; stroke-linecap: round; stroke-linejoin: round; filter: url(#ca-hand); }
.doodle .f { fill: currentColor; stroke: none; }
.doodle .dash { stroke-dasharray: 2.2 3.4; }
.js-doodles .doodle .s:not(.dash) { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); }
.js-doodles .doodle .dash, .js-doodles .doodle .f { opacity: 0; }
.doodle.draw .s:not(.dash) { animation: ca-draw 1.4s cubic-bezier(.45,.1,.3,1) forwards; animation-delay: var(--delay, 0s); }
.doodle.draw .dash { animation: ca-fade .6s ease forwards; animation-delay: var(--delay, .4s); }
.doodle.draw .f { animation: ca-fade .4s ease forwards; animation-delay: 1.1s; }
@keyframes ca-draw { to { stroke-dashoffset: 0; } }
@keyframes ca-fade { to { opacity: 1; } }

.with-doodle { display: flex; align-items: center; gap: 0.6rem; align-self: start; }
.doodle-pin { height: 2.1rem; }
.doodle-thread { height: 1.7rem; margin-top: -0.35rem; }
.doodle-platter { height: 1.5rem; margin-top: -0.3rem; }
.doodle-head { height: 1.9rem; margin-top: -0.4rem; }
h1 .doodle-head { height: 2.3rem; }
h1 .doodle-envelope { height: 2.6rem; }
.doodle-key { height: 1.8rem; margin-top: -0.3rem; }
.doodle-arrow { height: 1.05rem; }
.doodle-sprig { height: 2rem; display: block; margin-top: 0.75rem; }
.method .label.with-doodle { gap: 0.7rem; }
@media (max-width: 760px) { .doodle-arrow { display: none; } }

.hero-words .script { position: relative; width: fit-content; }
.doodle-underline { position: absolute; left: -1%; width: 102%; height: auto; bottom: 0.06em; color: var(--stone); }
.doodle-underline .s { stroke-width: 1.6px; vector-effect: non-scaling-stroke; filter: url(#ca-hand-soft); }
.js-doodles .doodle-underline .s:not(.dash) { stroke-dasharray: none; stroke-dashoffset: 0; }
.js-doodles .doodle-underline { clip-path: inset(-50% 100% -50% 0); }
.doodle-underline.draw { animation: ca-wipe 1.3s cubic-bezier(.45,.1,.3,1) .5s forwards; }
.doodle-underline.draw .s:not(.dash) { animation: none; }
@keyframes ca-wipe { to { clip-path: inset(-50% 0 -50% 0); } }
.place-line .label { color: var(--oxblood); opacity: 0.85; display: flex; flex-wrap: wrap; column-gap: 1.1rem; row-gap: 0.2rem; flex: 0 1 auto; font-size: 0.84rem; }
.place-line .label span { white-space: nowrap; }
.title-row .place-line .label { column-gap: 0.55em; }
.page-head-wide .lead { max-width: none; }
.title-row { display: flex; flex-wrap: wrap; align-items: center; column-gap: 1.1rem; row-gap: 0.6rem; }
.title-sep { color: var(--oxblood); opacity: 0.6; }
.title-row .place-line { align-self: center; }
@media (max-width: 600px) { .title-sep { display: none; } .title-row { flex-direction: column; align-items: flex-start; } }
@media (max-width: 600px) { .place-line .label .sep { display: none; } .place-line .label { flex-direction: column; } }
@media (max-width: 600px) { .statement .label .sep { display: none; } .statement .label { flex-direction: column; } }

/* Origins: one three-column grid for the method, the founder and selected work */
.grid-origins .split { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 3rem; }
.grid-origins .split > :last-child { grid-column: 2 / span 2; }
.grid-origins .work-list li { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 3rem; }
@media (max-width: 760px) {
  .grid-origins .split { grid-template-columns: 1fr; }
  .grid-origins .split > :last-child { grid-column: auto; }
  .grid-origins .work-list li { grid-template-columns: 1fr; }
}
