/* ==========================================================================
   Purl & Piqué by Devi Sivasamy — global styles
   Palette drawn from Devi's work: peacock teal, indigo, antique gold,
   magenta and ivory.
   ========================================================================== */

:root {
  --ivory: #F5F0E6;
  --sand: #EAE1D0;
  --ink: #12262B;
  --peacock: #0E4A52;
  --peacock-deep: #0A363C;
  --indigo: #1C2F57;
  --gold: #7F6126;         /* text-safe gold on light backgrounds */
  --gold-bright: #C29B52;  /* decorative gold */
  --gold-light: #D8B878;   /* gold on dark backgrounds */
  --magenta: #B3306A;
  --stone: #6F6B63;
  --line: #D8CDB9;
  --line-dark: #24545B;
  --white: #FFFCF6;

  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;

  --max: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
  --section: clamp(64px, 10vw, 128px);
  --arch: 50% 50% 0 0 / 38% 38% 0 0;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.08;
  margin: 0 0 .5em;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(44px, 6.4vw, 88px); }
h2 { font-size: clamp(34px, 4.5vw, 58px); }
h3 { font-size: clamp(24px, 2.4vw, 30px); }
h1 em, h2 em { font-style: italic; color: var(--peacock); }

p { margin: 0 0 1.2em; }

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; }
.section--sand { background: var(--sand); }
.section--dark { background: var(--peacock-deep); color: var(--ivory); }
.section--dark .eyebrow { color: var(--gold-light); }
.section--dark h2 em { color: var(--gold-light); }
.center { text-align: center; }
.lead { font-size: clamp(18px, 1.6vw, 21px); color: #3E4A4C; max-width: 640px; }
.section--dark .lead { color: #C9D6D4; }
.center .lead { margin-left: auto; margin-right: auto; }

.skip-link {
  position: absolute; left: -9999px; top: 8px;
  background: var(--ink); color: var(--ivory); padding: 8px 16px; z-index: 100;
}
.skip-link:focus { left: 8px; }

:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 3px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 34px;
  font-family: var(--sans); font-size: 13px; font-weight: 500;
  letter-spacing: .2em; text-transform: uppercase;
  border: 1px solid var(--peacock); background: var(--peacock); color: var(--ivory);
  cursor: pointer; transition: background .3s, color .3s, border-color .3s;
}
.btn:hover { background: var(--peacock-deep); border-color: var(--peacock-deep); }
.btn--ghost { background: transparent; color: var(--peacock); }
.btn--ghost:hover { background: var(--peacock); color: var(--ivory); }
.btn--light { background: var(--ivory); color: var(--peacock-deep); border-color: var(--ivory); }
.btn--light:hover { background: var(--gold-light); border-color: var(--gold-light); color: var(--peacock-deep); }
.btn[disabled] { opacity: .6; cursor: wait; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

.link-arrow {
  font-size: 13px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase;
  border-bottom: 1px solid currentColor; padding-bottom: 4px;
  transition: color .3s;
}
.link-arrow:hover { color: var(--gold); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245, 240, 230, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 84px; gap: 24px;
}
.brand { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-family: var(--serif); font-size: clamp(24px, 2.6vw, 30px); font-weight: 500; letter-spacing: .01em; color: var(--peacock-deep); }
.brand__amp { font-style: italic; color: var(--gold-bright); }
.brand__by { font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); margin-top: 6px; }

.nav { display: flex; gap: clamp(20px, 3vw, 40px); }
.nav a {
  font-size: 13px; font-weight: 400; letter-spacing: .18em; text-transform: uppercase;
  padding: 6px 0; border-bottom: 1px solid transparent; transition: border-color .3s, color .3s;
}
.nav a:hover, .nav a[aria-current="page"] { border-color: var(--gold-bright); color: var(--peacock); }

.nav-toggle {
  display: none; background: none; border: 0; padding: 8px 0; cursor: pointer;
  font-family: var(--sans); font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink);
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--ivory); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 24px;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav a:hover, .nav a[aria-current="page"] { border-color: var(--line); }
}

/* ---------- Image frames ---------- */
.frame { position: relative; overflow: hidden; background: var(--sand); margin: 0; }
.frame > img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s ease; }
.frame--arch { border-radius: var(--arch); }
.ratio-portrait { aspect-ratio: 4 / 5; }
.ratio-tall { aspect-ratio: 3 / 4; }

a:hover .frame > img { transform: scale(1.035); }

.caption {
  margin-top: 14px; font-size: 14px; color: var(--stone); line-height: 1.5;
}
.caption strong { display: block; font-family: var(--serif); font-weight: 500; font-size: 20px; color: var(--ink); }

/* ---------- Hero ---------- */
.hero { padding: clamp(40px, 6vw, 80px) 0 clamp(56px, 8vw, 110px); overflow: hidden; }
.hero .container {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 6vw, 90px); align-items: center;
}
.hero h1 { max-width: 11ch; }
.hero .lead { margin-bottom: 36px; }
.hero__art {
  position: relative; aspect-ratio: 4 / 5;
  display: grid; place-items: end center;
}
.hero__art::before {
  content: ""; position: absolute; inset: 0 6% 0 6%;
  border-radius: var(--arch);
  background: var(--peacock) url("../images/art/prism.svg") center / cover;
}
.hero__art::after {
  content: ""; position: absolute; inset: -18px 2% -18px 2%;
  border-radius: var(--arch);
  border: 1px solid var(--gold-bright); opacity: .6;
}
.hero__art img {
  position: relative; z-index: 1; width: 64%; margin-bottom: 7%;
  filter: drop-shadow(0 30px 30px rgba(5, 25, 28, .45));
}
.hero__note {
  position: absolute; z-index: 2; left: 0; bottom: 8%;
  background: var(--ivory); padding: 14px 18px; max-width: 220px;
  font-size: 13px; line-height: 1.5; color: var(--stone);
  border-left: 2px solid var(--gold-bright);
}
.hero__note strong { display: block; color: var(--ink); font-weight: 500; letter-spacing: .08em; }
@media (max-width: 860px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero__art { max-width: 460px; width: 100%; margin: 0 auto; }
  .hero__note { left: 0; bottom: 4%; }
}

/* Page hero (inner pages) */
.page-hero { padding: clamp(72px, 11vw, 140px) 0 clamp(40px, 6vw, 72px); }
.page-hero h1 { max-width: 14ch; }

/* ---------- Craft strip ---------- */
.craft-strip { background: var(--peacock-deep); color: var(--gold-light); padding: 20px 0; overflow: hidden; }
.craft-strip ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; row-gap: 8px;
  font-family: var(--serif); font-style: italic; font-size: clamp(18px, 2vw, 22px);
}
.craft-strip li { display: flex; align-items: center; }
.craft-strip li + li::before { content: "◆"; font-style: normal; font-size: 9px; color: #E07AA6; margin: 0 22px; }

/* ---------- Layout helpers ---------- */
.split {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 7vw, 110px); align-items: center;
}
.split--reverse > :first-child { order: 2; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split--reverse > :first-child { order: 0; }
}

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 36px); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 3vw, 36px); }
@media (max-width: 960px) { .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 860px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.section-head {
  display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap;
  margin-bottom: clamp(36px, 5vw, 64px);
}
.section-head h2 { margin: 0; }
.section-head .lead { max-width: 440px; margin: 0; }

/* ---------- Cards ---------- */
.card { display: block; }
.card .frame { margin-bottom: 20px; }
.card h3 { margin-bottom: 4px; }
.card p { color: var(--stone); font-size: 15px; margin: 0; }

.pillars { counter-reset: pillar; }
.pillar { border-top: 1px solid var(--line); padding-top: 28px; }
.pillar::before {
  counter-increment: pillar; content: "0" counter(pillar);
  display: block; font-family: var(--serif); font-size: 18px; color: var(--gold); margin-bottom: 18px;
}
.pillar p { color: #4A5557; font-size: 16px; }

/* ---------- Art series ---------- */
.art-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2.4vw, 28px); }
@media (max-width: 960px) { .art-grid { grid-template-columns: 1fr 1fr; } }
.art-grid figure { margin: 0; }
.art-grid .frame { aspect-ratio: 4 / 5; background: var(--peacock); }
.section--dark .caption { color: #A9BDBA; }
.section--dark .caption strong { color: var(--ivory); }

/* ---------- Quote ---------- */
.quote {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(28px, 3.6vw, 46px); line-height: 1.3;
  max-width: 900px; margin: 0 auto 28px;
}
.quote-by { font-size: 12px; letter-spacing: .28em; text-transform: uppercase; color: var(--gold); }

/* ---------- Lookbook ---------- */
.lookbook { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(12px, 2vw, 24px); align-items: start; }
.lookbook > figure { margin: 0; }
.lb-7 { grid-column: span 7; }
.lb-5 { grid-column: span 5; }
.lb-12 { grid-column: span 12; }
.lb-7 .frame { aspect-ratio: 4 / 5; }
.lb-5 .frame { aspect-ratio: 3 / 4; }
.lb-5 { align-self: end; }
.lb-12 .frame { aspect-ratio: 21 / 9; }
@media (max-width: 700px) {
  .lookbook > figure { grid-column: span 12; }
  .lb-12 .frame { aspect-ratio: 16 / 9; }
}

.collection + .collection { margin-top: var(--section); }
.collection__head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-bottom: 40px; align-items: end; }
.collection__head p { color: #4A5557; margin: 0; }
.collection__head .eyebrow { margin-bottom: 10px; }
@media (max-width: 860px) { .collection__head { grid-template-columns: 1fr; gap: 12px; } }

/* ---------- Services / process ---------- */
.service { background: var(--white); padding: clamp(28px, 4vw, 48px); border: 1px solid var(--line); border-top: 3px solid var(--peacock); }
.service ul { padding-left: 18px; margin: 0; color: #4A5557; font-size: 16px; }
.service li { margin-bottom: 6px; }
.service li::marker { color: var(--gold-bright); }

.steps { list-style: none; padding: 0; margin: 0; }
.steps li {
  display: grid; grid-template-columns: 80px 1fr; gap: 20px;
  padding: 28px 0; border-top: 1px solid var(--line);
}
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps .num { font-family: var(--serif); font-size: 40px; color: var(--gold); line-height: 1; }
.steps h3 { margin-bottom: 6px; }
.steps p { margin: 0; color: #4A5557; }

/* ---------- Contact form ---------- */
.form { display: grid; gap: 22px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 560px) { .form .row { grid-template-columns: 1fr; } }
.field label {
  display: block; font-size: 12px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase;
  margin-bottom: 8px;
}
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 0;
  font: inherit; font-size: 17px; color: var(--ink);
  background: transparent; border: 0; border-bottom: 1px solid var(--stone); border-radius: 0;
  transition: border-color .3s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 12px) 55%, calc(100% - 6px) 55%; background-size: 6px 6px; background-repeat: no-repeat; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--peacock); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 14px; color: var(--stone); margin: 0; }
.form-status { font-size: 16px; margin: 0; min-height: 1.5em; }
.form-status.is-success { color: #1F6B4F; }
.form-status.is-error { color: #A12A4F; }

.contact-details dt {
  font-size: 12px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--gold);
  margin-top: 28px;
}
.contact-details dd { margin: 6px 0 0; font-family: var(--serif); font-size: 24px; }
.contact-details a:hover { color: var(--peacock); }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; }
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background: url("../images/art/prism-lines.svg") center / cover; opacity: .35;
}
.cta-band .container { position: relative; }
.cta-band h2 { max-width: 16ch; margin-left: auto; margin-right: auto; }
.cta-band p { color: #C9D6D4; max-width: 520px; margin: 0 auto 36px; }

/* ---------- Footer ---------- */
.site-footer { background: #081F23; color: #B5C4C2; padding: clamp(64px, 8vw, 96px) 0 32px; font-size: 15px; }
.site-footer .brand__name { color: var(--ivory); }
.site-footer .brand__by { color: var(--gold-light); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 {
  font-family: var(--sans); font-weight: 500; font-size: 12px; letter-spacing: .24em; text-transform: uppercase;
  color: var(--gold-light); margin: 0 0 18px;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { transition: color .3s; }
.footer-grid a:hover { color: var(--gold-light); }
.footer-tagline { font-family: var(--serif); font-style: italic; font-size: 20px; margin-top: 20px; max-width: 280px; }
.footer-bottom {
  margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line-dark);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: #7F9593;
}

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s ease, transform .9s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .frame > img { transition: none; }
}
.no-js .reveal { opacity: 1; transform: none; }
