/* DhaaViRa London — site styles
   Palette and type are taken from the DhaaViRa clothing tag. */

:root {
  color-scheme: light;
  --hemp: #52672D;        /* brand green, sampled from the tag wordmark */
  --moss: #2F3D1A;        /* body text */
  --moss-soft: #56603F;   /* secondary text */
  --sage: #A7B07C;        /* light sage for numerals and fine details */
  --sage-line: #D6D9C2;   /* hairlines */
  --linen: #FCFBF7;       /* page ground */
  --flax: #F2F0E4;        /* tinted sections */
  --white: #FFFFFF;

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

  --step--1: 0.8125rem;
  --step-0: 1.0625rem;
  --step-1: 1.3rem;
  --step-2: 1.75rem;
  --step-3: clamp(2.1rem, 1.6rem + 2vw, 2.9rem);
  --step-4: clamp(2.6rem, 1.8rem + 3.4vw, 4rem);

  --measure: 36rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }

body {
  margin: 0;
  background: var(--linen);
  color: var(--moss);
  font-family: var(--sans);
  font-weight: 300;
  font-size: var(--step-0);
  line-height: 1.7;
  padding-inline: var(--gutter);
  font-variant-ligatures: no-common-ligatures;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--hemp); text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
a:hover { color: var(--moss); }
:focus-visible { outline: 2px solid var(--hemp); outline-offset: 3px; border-radius: 2px; }

.skip { position: absolute; left: -999px; top: 0; background: var(--hemp); color: var(--linen); padding: 0.5rem 1rem; }
.skip:focus { left: var(--gutter); z-index: 10; }

/* ---------- Header ---------- */
.site-header {
  display: grid;
  justify-items: center;
  gap: 1.1rem;
  padding-block: 2.2rem 1.4rem;
  border-bottom: 1px solid var(--sage-line);
  max-width: 72rem;
  margin-inline: auto;
}
.site-header .brand img { width: clamp(190px, 30vw, 250px); }
.site-nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 0.4rem clamp(1rem, 3vw, 2.4rem);
}
.site-nav a {
  font-size: var(--step--1);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--moss-soft);
  padding-block: 0.3rem;
  border-bottom: 1px solid transparent;
  font-weight: 400;
}
.site-nav a:hover { color: var(--hemp); border-color: var(--sage); }
.site-nav a[aria-current="page"] { color: var(--hemp); border-color: var(--hemp); }

/* ---------- Layout ---------- */
main { max-width: 72rem; margin-inline: auto; }
.section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.section + .section { border-top: 1px solid var(--sage-line); }
/* One page colour throughout: sections are separated by hairlines, not tinted bands. */
.tint { background: none; }
.prose { max-width: var(--measure); margin-inline: auto; }
.prose > * + * { margin-top: 1.1em; }
.center { text-align: center; }

/* ---------- Type ---------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 500; color: var(--hemp); line-height: 1.12; margin: 0; text-wrap: balance; }
h1 { font-size: var(--step-4); font-weight: 400; }
h2 { font-size: var(--step-3); font-weight: 400; }
h3 { font-size: var(--step-2); }
p { margin: 0; text-wrap: pretty; }
.eyebrow {
  font-family: var(--sans); font-size: var(--step--1); font-weight: 400;
  letter-spacing: 0.3em; text-transform: uppercase; color: var(--moss-soft);
  display: flex; align-items: center; justify-content: center; gap: 0.9rem;
}
.eyebrow::before, .eyebrow::after {
  content: ""; width: 32px; height: 1px; flex: none;
  background: var(--sage);
}
.eyebrow.left { justify-content: flex-start; }
.eyebrow.left::before { display: none; }
.lede { font-family: var(--serif); font-style: italic; font-size: var(--step-2); line-height: 1.35; color: var(--hemp); font-weight: 400; }
.quote { font-family: var(--serif); font-style: italic; font-size: var(--step-3); line-height: 1.25; color: var(--hemp); text-align: center; max-width: 30ch; margin-inline: auto; text-wrap: balance; }
.small { font-size: var(--step--1); color: var(--moss-soft); }
.stack > * + * { margin-top: 1rem; }
.head { display: grid; gap: 1rem; text-align: center; justify-items: center; margin-bottom: clamp(2rem, 5vw, 3.2rem); }
.head p { max-width: var(--measure); }

/* ---------- Page opener (inner pages) ---------- */
.opener { text-align: center; padding-block: clamp(3rem, 8vw, 5.5rem) clamp(2.5rem, 6vw, 4rem); display: grid; gap: 1.3rem; justify-items: center; }
.opener .lede { max-width: 32ch; }

/* ---------- Home hero: mirrors the tag ---------- */
.hero { display: grid; justify-items: center; text-align: center; gap: 1.6rem; padding-block: clamp(3rem, 8vw, 5rem) 0; }
.hero h1 { font-style: italic; font-size: var(--step-4); max-width: 18ch; }
.hero p { max-width: 34rem; }

/* ---------- Grids ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: clamp(1.5rem, 4vw, 3rem); }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.pillar { display: grid; gap: 0.7rem; align-content: start; text-align: center; justify-items: center; }
.pillar img { width: 52px; opacity: 0.9; }
.pillar h3 { font-size: var(--step-2); }

/* ---------- Definition list: facts ---------- */
.facts { display: grid; gap: 0; max-width: 46rem; margin-inline: auto; border-top: 1px solid var(--sage-line); }
.facts > div { display: grid; grid-template-columns: minmax(8rem, 13rem) 1fr; gap: 0.4rem 2rem; padding-block: 1.4rem; border-bottom: 1px solid var(--sage-line); }
.facts dt { font-family: var(--serif); font-size: var(--step-1); font-weight: 600; color: var(--hemp); line-height: 1.3; }
.facts dd { margin: 0; }
@media (max-width: 560px) { .facts > div { grid-template-columns: 1fr; } }

/* ---------- Steps (real sequences only) ---------- */
.steps { list-style: none; margin: 0 auto; padding: 0; counter-reset: step; display: grid; gap: 0; max-width: 46rem; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 3.4rem 1fr; gap: 0 1.2rem; padding-block: 1.3rem; border-bottom: 1px solid var(--sage-line); }
.steps li:first-child { border-top: 1px solid var(--sage-line); }
.steps li::before { content: counter(step, upper-roman); font-family: var(--serif); font-size: var(--step-2); font-style: italic; color: var(--sage); line-height: 1; padding-top: 0.2rem; }
.steps h3 { font-size: var(--step-1); font-weight: 600; margin-bottom: 0.3rem; }

/* ---------- The seed tag card ---------- */
.seedtag-wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: clamp(2rem, 6vw, 5rem); align-items: center; max-width: 60rem; margin-inline: auto; }
.seedtag {
  position: relative; justify-self: center;
  width: min(300px, 100%);
  background: var(--white);
  border: 1px solid var(--sage-line);
  border-radius: 6px 6px 3px 3px;
  box-shadow: 0 18px 40px -24px rgba(47, 61, 26, 0.35);
  padding: 4.2rem 1.6rem 1.8rem;
  text-align: center;
  display: grid; gap: 0.9rem; justify-items: center;
  transform: rotate(-2.5deg);
}
.seedtag::before { /* punched hole */
  content: ""; position: absolute; top: 1.3rem; left: 50%; width: 18px; height: 18px; margin-left: -9px;
  border-radius: 50%; background: var(--linen); box-shadow: inset 0 0 0 1px var(--sage-line);
}
.seedtag::after { /* twine */
  content: ""; position: absolute; top: -46px; left: 50%; width: 1.5px; height: 76px; margin-left: -0.75px;
  background: linear-gradient(var(--sage), #C9B98E);
}
.seedtag .lockup { width: 170px; }
.seedtag .line { font-family: var(--serif); font-style: italic; color: var(--hemp); font-size: 1.15rem; line-height: 1.3; }
.seedtag .dont { font-family: var(--serif); font-style: italic; color: var(--hemp); font-size: 1.35rem; line-height: 1.2; }

/* ---------- Buttons ---------- */
.button {
  display: inline-block; font-family: var(--sans); font-size: var(--step--1); font-weight: 400;
  letter-spacing: 0.24em; text-transform: uppercase; text-decoration: none;
  color: var(--linen); background: var(--hemp); padding: 0.95rem 1.8rem; border: 1px solid var(--hemp);
  transition: background 0.2s, color 0.2s;
}
.button:hover { background: transparent; color: var(--hemp); }
.button.ghost { background: transparent; color: var(--hemp); }
.button.ghost:hover { background: var(--hemp); color: var(--linen); }
.actions { display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center; }

/* ---------- Coming soon ---------- */
.soon { display: grid; justify-items: center; text-align: center; gap: 1.2rem; }
.soon .monogram { width: 76px; }
.contact-line { font-family: var(--serif); font-size: var(--step-2); color: var(--hemp); word-break: break-word; }

/* ---------- Footer ---------- */
.site-footer {
  max-width: 72rem; margin-inline: auto;
  border-top: 1px solid var(--sage-line);
  padding-block: 3rem 2.5rem;
  display: grid; gap: 2rem; justify-items: center; text-align: center;
}
.site-footer .monogram { width: 54px; }
.site-footer .motto { font-family: var(--serif); font-style: italic; color: var(--hemp); font-size: var(--step-1); }
.site-footer nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem 1.6rem; }
.site-footer nav a { font-size: var(--step--1); letter-spacing: 0.18em; text-transform: uppercase; text-decoration: none; color: var(--moss-soft); }
.site-footer nav a:hover { color: var(--hemp); }
.site-footer .legal { font-size: 0.75rem; color: var(--moss-soft); line-height: 1.6; max-width: 40rem; }

/* ---------- Load moment: the wordmark settles in like ink ---------- */
@keyframes settle { from { opacity: 0.35; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.hero > * { animation: settle 0.9s ease-out both; }
.hero > *:nth-child(2) { animation-delay: 0.12s; }
.hero > *:nth-child(3) { animation-delay: 0.24s; }
.hero > *:nth-child(4) { animation-delay: 0.36s; }
.hero > *:nth-child(5) { animation-delay: 0.48s; }

.seedtag .small-line { font-size: 0.95rem; color: var(--moss-soft); }
.seedtag { padding-bottom: 2.2rem; }

/* Source references */
sup { font-size: 0.7em; line-height: 0; vertical-align: super; }
sup a { text-decoration: none; color: var(--hemp, #52672D); padding-inline: 0.08em; }
.sources { padding-left: 1.4rem; display: grid; gap: 0.45rem; margin-top: 0.8rem; }
.sources li { scroll-margin-top: 2rem; }
.sources li:target { background: var(--flax, #F2F0E4); }
#sources .small a { overflow-wrap: anywhere; }

/* ---------- Notice pages: lists and tables ---------- */
.prose ul { margin: 0; padding-left: 1.2em; display: grid; gap: 0.4em; }
.prose h3 { margin-top: 1.8em; font-size: 1.6rem; }
.table-wrap { max-width: 52rem; margin: 1.2rem auto; overflow-x: auto; }
.notice-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; line-height: 1.5; }
.notice-table th, .notice-table td { text-align: left; vertical-align: top; padding: 0.8rem 1rem 0.8rem 0; border-bottom: 1px solid var(--sage-line); }
.notice-table th { font-weight: 400; font-size: var(--step--1); letter-spacing: 0.2em; text-transform: uppercase; color: var(--moss-soft); border-bottom-color: var(--sage); }
.notice-table td:first-child { font-family: var(--serif); font-size: 1.1rem; color: var(--hemp); font-weight: 600; min-width: 9rem; }
.prose strong { font-weight: 400; color: var(--moss); }
@media (max-width: 600px) {
  .notice-table thead { display: none; }
  .notice-table tr { display: grid; gap: 0.3rem; padding-block: 0.9rem; border-bottom: 1px solid var(--sage-line); }
  .notice-table td { border: 0; padding: 0; }
  .notice-table td:nth-child(2)::before { content: "Why: "; color: var(--moss-soft); }
  .notice-table td:nth-child(3)::before { content: "Lawful basis: "; color: var(--moss-soft); }
}
/* Placeholders still to fill in before going live */
mark.todo { background: #F6E3A6; color: var(--moss); padding: 0 0.2em; border-radius: 2px; }
