/* ==========================================================================
   Strands & Stone — landing page
   Colour and type follow Strands & Stone Brand Guidelines v1.1.
   Dark-first: Obsidian carries the layout, crimson and gold stay rare.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Palette — from the brand guidelines, unaltered */
  --crimson:   #A50E12;
  --oxblood:   #4C0A0C;
  --gold:      #C6AA95;
  --amethyst:  #A594B4;
  --obsidian:  #14100F;
  --raven:     #221C20;
  --ash:       #372F33;
  --smoke:     #6E6A70;
  --moonlight: #F2EAE4;

  /* Text roles. Body is Moonlight held back a little; Smoke Quartz is
     reserved for large or secondary text only, never body copy. */
  --text:        var(--moonlight);
  --text-body:   rgba(242, 234, 228, 0.80);
  --text-muted:  rgba(242, 234, 228, 0.58);

  --font-display: "Kaushan Script", "Brush Script MT", cursive;
  --font-head:    "Cormorant Garamond", Georgia, serif;
  --font-body:    "Mulish", "Helvetica Neue", Arial, sans-serif;

  /* 1.25 scale */
  --step--1: 0.8125rem;
  --step-0:  1rem;
  --step-1:  1.125rem;
  --step-2:  1.25rem;
  --step-3:  clamp(1.5rem, 1.2rem + 1.4vw, 1.875rem);
  --step-4:  clamp(1.875rem, 1.4rem + 2.2vw, 2.5rem);
  --step-5:  clamp(2.5rem, 1.6rem + 4vw, 4.25rem);

  --wrap: 1160px;
  --gut: clamp(1.25rem, 4vw, 2.5rem);
  --sec-y: clamp(4rem, 7vw, 6.5rem);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --hairline: 1px solid var(--ash);
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  background: var(--obsidian);
  color: var(--text-body);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1, h2, h3 {
  font-family: var(--font-head);
  color: var(--text);
  font-weight: 600;
  margin: 0;
  line-height: 1.15;
}

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

a { color: var(--gold); text-decoration: none; }

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

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gut);
}

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

.skip-link {
  position: absolute; left: 50%; top: 0;
  transform: translate(-50%, -120%);
  z-index: 200;
  background: var(--raven); color: var(--moonlight);
  padding: 0.75rem 1.25rem;
  border: var(--hairline);
  font-size: var(--step--1);
  letter-spacing: 0.08em; text-transform: uppercase;
}
.skip-link:focus { transform: translate(-50%, 0); }

/* --------------------------------------------------------------------------
   3. Shared pieces
   -------------------------------------------------------------------------- */

/* Small caps section label */
.label,
.eyebrow {
  font-family: var(--font-body);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1.4rem;
}
.eyebrow { letter-spacing: 0.34em; color: rgba(198, 170, 149, 0.75); }

/* The four-point divider from the guidelines */
.rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  color: var(--gold);
  font-size: 0.7rem;
  line-height: 1;
  margin: 1.75rem 0;
}
.rule span {
  display: block;
  height: 1px;
  width: min(90px, 16vw);
  background: linear-gradient(to right, transparent, rgba(198, 170, 149, 0.55));
}
.rule span:last-child {
  background: linear-gradient(to left, transparent, rgba(198, 170, 149, 0.55));
}
.rule-left { justify-content: flex-start; }
.rule-left span:first-child {
  background: linear-gradient(to right, rgba(198, 170, 149, 0.55), rgba(198, 170, 149, 0.1));
}

.h-display {
  font-size: var(--step-4);
  font-weight: 600;
  letter-spacing: -0.005em;
}

.lede {
  font-size: var(--step-1);
  color: var(--text);
  line-height: 1.65;
}

/* Buttons — crimson is a fill with Moonlight on top, never text on dark */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 1rem 1.9rem;
  border: 1px solid transparent;
  transition: background-color 0.35s var(--ease),
              border-color 0.35s var(--ease),
              color 0.35s var(--ease);
}

.btn-crimson {
  background: var(--crimson);
  color: var(--moonlight);
  border-color: var(--crimson);
}
.btn-crimson:hover,
.btn-crimson:focus-visible {
  background: var(--oxblood);
  border-color: var(--oxblood);
  color: var(--moonlight);
}

.btn-quiet {
  background: transparent;
  color: var(--gold);
  border-color: rgba(198, 170, 149, 0.4);
}
.btn-quiet:hover,
.btn-quiet:focus-visible {
  border-color: var(--gold);
  background: rgba(198, 170, 149, 0.08);
}

/* Section textures sit behind content, always heavily held down */
.section { position: relative; padding-block: var(--sec-y); }

.texture {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.5;
  z-index: 0;
  pointer-events: none;
}
.texture::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 80% at 50% 40%, transparent 0%, rgba(20, 16, 15, 0.85) 100%),
    linear-gradient(to bottom, var(--obsidian) 0%, transparent 22%, transparent 78%, var(--obsidian) 100%);
}
.section > .wrap { position: relative; z-index: 1; }

.texture-fiber   { background-image: url("../img/tex-fiber.jpg"); opacity: 0.38; }
.texture-forest  { background-image: url("../img/tex-forest.jpg"); opacity: 0.55; }
.texture-stone   { background-image: url("../img/tex-stone.jpg"); opacity: 0.45; }

/* Film grain over the whole page — keeps the flat darks from banding */
.grain {
  position: fixed;
  inset: -50%;
  z-index: 90;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* --------------------------------------------------------------------------
   4. Header
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-stuck {
  background: rgba(20, 16, 15, 0.92);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--ash);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--text);
}
.brand-mark { width: 38px; height: 38px; object-fit: contain; }
.brand-name {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.site-nav { display: flex; align-items: center; gap: 2.25rem; }
.site-nav ul {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0; padding: 0;
}
.site-nav ul a {
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding-block: 0.4rem;
  border-bottom: 1px solid transparent;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.site-nav ul a:hover,
.site-nav ul a:focus-visible {
  color: var(--moonlight);
  border-bottom-color: rgba(198, 170, 149, 0.6);
}
.nav-cta { padding: 0.7rem 1.35rem; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(198, 170, 149, 0.35);
  padding: 0.7rem 0.8rem;
  cursor: pointer;
}
.nav-toggle-bars { display: block; width: 20px; }
.nav-toggle-bars i {
  display: block;
  height: 1px;
  background: var(--gold);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav-toggle-bars i + i { margin-top: 6px; }
.nav-toggle[aria-expanded="true"] i:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] i:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   5. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-block: 7rem 6.5rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url("../img/tex-stone.jpg") center / cover no-repeat;
  opacity: 0.5;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(70% 55% at 50% 42%, rgba(76, 10, 12, 0.28) 0%, transparent 70%),
    radial-gradient(110% 75% at 50% 45%, transparent 0%, rgba(20, 16, 15, 0.92) 100%),
    linear-gradient(to bottom, rgba(20, 16, 15, 0.75) 0%, rgba(20, 16, 15, 0.35) 35%, var(--obsidian) 100%);
}

.hero-inner { position: relative; z-index: 1; }

.hero-mark {
  width: min(360px, 66vw);
  margin: 0 auto 1.5rem;
}

.hero-title {
  font-size: var(--step-5);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.05;
}

.hero .rule { margin: 1.25rem 0; }

.hero-script {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 1rem + 2.4vw, 2.6rem);
  line-height: 1.25;
  color: var(--gold);
  margin: 0 0 0.9rem;
}

.hero-sub {
  font-size: var(--step-1);
  color: var(--text-body);
  max-width: 34rem;
  margin-inline: auto;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  margin: 0;
  font-size: 0.6875rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(242, 234, 228, 0.35);
}
.scroll-hint::after {
  content: "";
  display: block;
  width: 1px;
  height: 2.25rem;
  margin: 0.85rem auto 0;
  background: linear-gradient(to bottom, rgba(198, 170, 149, 0.55), transparent);
}

/* Short viewports: the mark and type already fill the frame */
@media (max-height: 860px) {
  .scroll-hint { display: none; }
}

/* --------------------------------------------------------------------------
   6. Gathered
   -------------------------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
}
.split-body p { max-width: 34rem; }

/* --------------------------------------------------------------------------
   7. What I make
   -------------------------------------------------------------------------- */
.section-make { background: linear-gradient(to bottom, var(--obsidian), #191413 55%, var(--obsidian)); }

.section-head { text-align: center; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head .h-display {
  max-width: 28ch;
  margin-inline: auto;
  text-wrap: balance;
}

.craft-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: clamp(1.25rem, 2.5vw, 2rem);
  list-style: none;
  margin: 0; padding: 0;
}

.craft figure {
  margin: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--raven);
  border: var(--hairline);
  transition: border-color 0.45s var(--ease), transform 0.45s var(--ease);
}
.craft:hover figure,
.craft:focus-within figure {
  border-color: rgba(198, 170, 149, 0.5);
  transform: translateY(-4px);
}

.craft-img { overflow: hidden; }
.craft-img img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: saturate(0.92) brightness(0.9);
  transition: transform 0.7s var(--ease), filter 0.7s var(--ease);
}
.craft:hover .craft-img img {
  transform: scale(1.04);
  filter: saturate(1) brightness(1);
}

.craft figcaption { padding: 1.5rem 1.4rem 1.7rem; }
.craft h3 {
  font-family: var(--font-head);
  font-size: var(--step-2);
  font-weight: 600;
  letter-spacing: 0.01em;
  margin-bottom: 0.7rem;
}
.craft h3::after {
  content: "";
  display: block;
  width: 2rem;
  height: 1px;
  margin-top: 0.8rem;
  background: rgba(198, 170, 149, 0.45);
  transition: width 0.5s var(--ease);
}
.craft:hover h3::after { width: 3.5rem; }
.craft figcaption p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin: 0;
}

.make-note {
  margin: clamp(2.5rem, 5vw, 3.5rem) 0 0;
  text-align: center;
  font-family: var(--font-head);
  font-style: italic;
  font-size: var(--step-2);
  color: var(--gold);
}

/* --------------------------------------------------------------------------
   8. The realm
   -------------------------------------------------------------------------- */
.section-realm { padding-block: clamp(5rem, 9vw, 8rem); }
.realm-inner { text-align: center; max-width: 54rem; margin-inline: auto; }

.pull { margin: 0; }
.pull p {
  font-family: var(--font-head);
  font-size: clamp(1.75rem, 1.1rem + 2.7vw, 3rem);
  font-weight: 500;
  font-style: italic;
  line-height: 1.28;
  color: var(--moonlight);
  margin-inline: auto;
  margin-block: 0;
  /* em here resolves against this element's own display size */
  max-width: 15em;
  text-wrap: balance;
}

/* Fixed columns rather than wrapping flex, so no row ever ends on a
   dangling separator. */
.fascinations {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
  row-gap: 0.85rem;
  list-style: none;
  margin: 0 0 1.75rem;
  padding: 0;
}
.fascinations li {
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  line-height: 1.4;
  color: var(--text-muted);
  padding-inline: 0.5rem;
  border-right: 1px solid rgba(55, 47, 51, 0.9);
}
.fascinations li:nth-child(4n) { border-right: 0; }

.realm-note {
  font-family: var(--font-head);
  font-style: italic;
  font-size: var(--step-2);
  color: var(--text-body);
  margin: 0;
}

/* --------------------------------------------------------------------------
   9. Found & made
   -------------------------------------------------------------------------- */
.section-found { background: var(--obsidian); }

.found-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.found-image {
  position: relative;
  border: var(--hairline);
  overflow: hidden;
}
.found-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center 42%;
}
.found-copy p:not(.label):not(.rule) { max-width: 32rem; }

/* --------------------------------------------------------------------------
   10. Find me
   -------------------------------------------------------------------------- */
.find-inner { text-align: center; max-width: 40rem; margin-inline: auto; }

.find-lede {
  font-size: var(--step-1);
  color: var(--text-body);
  margin-bottom: 2.25rem;
}

.find-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   11. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  border-top: var(--hairline);
  background: #100D0C;
  padding-block: clamp(3rem, 6vw, 4.5rem);
  text-align: center;
}
.footer-script {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.25rem);
  color: var(--gold);
  margin: 0 0 0.5rem;
}
.footer-tag {
  font-family: var(--font-head);
  font-style: italic;
  font-size: var(--step-1);
  color: var(--text-muted);
  margin: 0 0 2rem;
}
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  font-size: var(--step--1);
  color: rgba(242, 234, 228, 0.4);
  margin: 0;
}
.footer-legal .dot { color: rgba(198, 170, 149, 0.6); font-size: 0.6rem; }

/* --------------------------------------------------------------------------
   12. Reveal on scroll
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   13. Breakpoints
   -------------------------------------------------------------------------- */
@media (min-width: 860px) {
  .split { grid-template-columns: 1fr 1fr; align-items: start; }
  .found-inner { grid-template-columns: 1fr 1fr; }
  .found-image img { aspect-ratio: 4 / 5; }
}

@media (max-width: 900px) {
  .site-nav ul { gap: 1.5rem; }
  .site-nav { gap: 1.5rem; }
}

@media (max-width: 800px) {
  .nav-toggle { display: block; }

  .site-nav {
    position: fixed;
    inset: 5rem 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(20, 16, 15, 0.98);
    backdrop-filter: blur(12px);
    border-top: var(--hairline);
    border-bottom: var(--hairline);
    padding: 0.5rem var(--gut) 2rem;
    transform: translateY(-6px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
  }
  .site-nav.is-open { opacity: 1; visibility: visible; transform: none; }

  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav ul a {
    display: block;
    padding: 1.1rem 0;
    border-bottom: 1px solid var(--ash);
    font-size: var(--step-0);
    letter-spacing: 0.1em;
  }
  .site-nav ul a:hover { border-bottom-color: var(--ash); }
  .nav-cta { margin-top: 1.5rem; }

  .fascinations {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .fascinations li { border-right: 1px solid rgba(55, 47, 51, 0.9); }
  .fascinations li:nth-child(2n) { border-right: 0; }
}

@media (max-width: 480px) {
  .brand-name { font-size: 1.125rem; }
  .brand-mark { width: 32px; height: 32px; }
  .eyebrow { font-size: 0.6875rem; letter-spacing: 0.22em; }
  .hero-actions .btn,
  .find-actions .btn { width: 100%; }
}

/* --------------------------------------------------------------------------
   14. Motion & print
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .grain, .scroll-hint, .texture, .hero-bg { display: none; }
  body { background: #fff; color: #000; }
}
