/* ============================================================
   OUTER STUDIO — shared stylesheet
   The design authority is CLAUDE.md at the project root.
   Palette, typography, the gold thread, buttons, toile blocks.
   ============================================================ */

/* ---------- Palette ---------- */
:root {
  --paper: #FAFAF7;
  --ink: #16140F;
  --gold: #B08D4A;
  --gold-soft: #C9AC72;
  --oxblood: #5E161C;
  --toile: #EFEAE0;
  --grey: #8B8578;
}

/* ---------- Reset & base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Archivo", "Helvetica Neue", Arial, sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

/* ---------- The gold thread ----------
   A 1px vertical dashed gold line running the full height of
   every page, behind the content. Centred on desktop, near the
   left edge on phones. Never omit it. */
.thread {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 22px;
  width: 1px;
  background: repeating-linear-gradient(
    to bottom,
    var(--gold) 0,
    var(--gold) 9px,
    transparent 9px,
    transparent 17px
  );
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
}

@media (min-width: 720px) {
  .thread {
    left: 50%;
  }
}

/* The page wraps everything so the thread can span full height */
.page {
  position: relative;
  overflow-x: hidden;
  min-height: 100vh;
}

/* All real content sits above the thread */
.page > * {
  position: relative;
  z-index: 1;
}
.page > .thread {
  position: absolute; /* the rule above must not flatten the thread */
  z-index: 0;
}

/* ---------- Knots ----------
   Small gold dots tied on the thread between major sections.
   Place each knot as a direct child of .page so it lines up
   with the thread on both phone and desktop. */
.knot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold);
  position: relative;
  left: 18px; /* centred on the mobile thread at 22px */
}

@media (min-width: 720px) {
  .knot {
    left: 50%;
    margin-left: -4px; /* centred on the desktop thread */
  }
}

/* ---------- Typography ---------- */
h1, h2, h3,
.display {
  font-family: "Bodoni Moda", "Didot", "Bodoni MT", serif;
  font-weight: 400;
  line-height: 1.05;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.6rem, 9vw, 5.5rem); }
h2 { font-size: clamp(1.9rem, 5vw, 3rem); }
h3 { font-size: clamp(1.35rem, 3.5vw, 1.75rem); }

p {
  max-width: 52ch;
  font-size: 15.5px;
  margin: 0 0 1.2em;
}

.label {
  font-family: "Archivo", sans-serif;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--grey);
}

.numeral {
  font-family: "Bodoni Moda", serif;
  color: var(--gold);
}

a {
  color: inherit;
}

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

/* ---------- Buttons ---------- */
.button {
  display: inline-block;
  font-family: "Archivo", sans-serif;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--ink);
  padding: 15px 34px;
  cursor: pointer;
  transition: background 0.35s ease, color 0.35s ease, border-color 0.35s ease;
}

.button:hover,
.button:focus-visible {
  background: var(--oxblood);
  border-color: var(--oxblood);
  color: var(--paper);
}

/* ---------- Toile blocks ----------
   Image placeholders until real photography exists:
   toile background with thin gold corner notch marks. */
.toile {
  position: relative;
  background: var(--toile);
}

.toile::before,
.toile::after {
  content: "";
  position: absolute;
  width: 26px;
  height: 26px;
  pointer-events: none;
}

.toile::before {
  top: 10px;
  left: 10px;
  border-top: 1px solid var(--gold);
  border-left: 1px solid var(--gold);
}

.toile::after {
  bottom: 10px;
  right: 10px;
  border-bottom: 1px solid var(--gold);
  border-right: 1px solid var(--gold);
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

@media (min-width: 720px) {
  .container {
    padding: 0 48px;
  }
}

.section {
  padding: 96px 0;
}

@media (min-width: 720px) {
  .section {
    padding: 140px 0;
  }
}

/* ---------- Navigation ---------- */
.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px 24px;
  padding: 28px 24px;
  background: var(--paper);
}

@media (min-width: 720px) {
  .nav {
    padding: 32px 48px;
  }
}

.wordmark {
  font-family: "Bodoni Moda", serif;
  font-size: 1.25rem;
  letter-spacing: 0.14em;
  text-decoration: none;
  color: var(--ink);
  white-space: nowrap;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-family: "Archivo", sans-serif;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--grey);
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--gold);
}

/* ---------- Footer ---------- */
.footer {
  padding: 80px 24px 60px;
  text-align: center;
}

.footer .wordmark {
  display: inline-block;
  margin-bottom: 20px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 28px;
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
}

.footer-links a {
  font-family: "Archivo", sans-serif;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--grey);
  transition: color 0.3s ease;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--ink);
}

.footer-line {
  font-family: "Bodoni Moda", serif;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--gold);
  margin-left: auto;  /* keep the line centred despite the */
  margin-right: auto; /* readable-width limit on paragraphs */
}

/* ---------- Home: opening ---------- */
.hero {
  min-height: 88vh;
  display: flex;
  align-items: center;
}

.hero-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.hero .label {
  margin: 0 0 18px;
}

.hero-line {
  font-size: 17px;
  margin: 26px auto 40px;
  max-width: 44ch;
}

/* On the phone, the thread runs at the left edge, so centred
   text still reads cleanly over it. */

/* ---------- Home: philosophy ---------- */
.philosophy {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.philosophy-text,
.signature-text {
  font-family: "Bodoni Moda", serif;
  font-size: clamp(1.25rem, 3vw, 1.6rem);
  line-height: 1.5;
  max-width: 34ch;
  margin: 24px 0 0;
}

/* ---------- Home: two doors ---------- */
.doors {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  margin-top: 48px;
}

@media (min-width: 720px) {
  .doors {
    grid-template-columns: 1fr 1fr;
    gap: 72px;
  }
}

.door {
  display: block;
  text-decoration: none;
  color: inherit;
}

.door-image {
  aspect-ratio: 4 / 5;
  margin-bottom: 28px;
}

.door-numeral {
  color: var(--gold);
  margin-bottom: 6px;
}

.door-numeral .numeral {
  font-size: 16px; /* look-number size, like the lookbook */
  letter-spacing: 0.1em;
}

.door-title {
  margin-bottom: 12px;
}

.door-cta {
  color: var(--ink);
  border-bottom: 1px solid var(--gold);
  display: inline-block;
  padding-bottom: 3px;
  transition: color 0.3s ease;
}

.door:hover .door-cta,
.door:focus-visible .door-cta {
  color: var(--gold);
}

/* ---------- Centred sections (Home strip & signature) ---------- */
.container.centered {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.strip h2 {
  margin: 18px 0 14px;
}

.strip .button,
.signature-text + .button {
  margin-top: 20px;
}

.signature-text {
  margin-bottom: 12px;
}

/* ---------- Inner pages: opening ---------- */
.page-opening {
  padding-top: 72px;
  padding-bottom: 72px;
}

@media (min-width: 720px) {
  .page-opening {
    padding-top: 110px;
    padding-bottom: 110px;
  }
}

.page-opening-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-opening .label {
  margin: 0 0 18px;
}

.page-lede {
  font-size: 16px;
  max-width: 46ch;
  margin: 20px auto 0;
}

/* ---------- Ready-to-Wear: the rail ---------- */
.rail {
  list-style: none;
  margin: 48px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 72px;
}

@media (min-width: 720px) {
  .rail {
    grid-template-columns: repeat(2, 1fr);
    gap: 72px 56px;
  }
}

@media (min-width: 1000px) {
  .rail {
    grid-template-columns: repeat(3, 1fr);
  }
}

.piece {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.piece-image {
  aspect-ratio: 4 / 5;
  width: 100%;
  margin-bottom: 26px;
}

.piece-numeral {
  color: var(--gold);
  margin: 0 0 6px;
}

.piece-numeral .numeral {
  font-size: 16px;
  letter-spacing: 0.1em;
}

.piece-title {
  font-size: clamp(1.35rem, 3vw, 1.6rem);
  margin-bottom: 10px;
}

.piece-what {
  margin-bottom: 8px;
}

.piece-after {
  color: var(--grey);
  font-size: 14.5px;
  margin-bottom: 18px;
}

.piece-price {
  font-family: "Bodoni Moda", serif;
  font-size: 1.3rem;
  margin: 0 0 20px;
}

/* ---------- Collection: the six rooms ---------- */
.rooms {
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
  max-width: 640px;
}

.room {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 0 12px;
  border-top: 1px solid var(--toile);
  padding: 30px 0;
}

.room-numeral {
  font-size: 1.2rem;
  line-height: 1.4;
}

.room-title {
  font-size: 1.3rem;
  margin-bottom: 6px;
}

.room-line {
  margin-bottom: 0;
}

/* ---------- Collection: composition table ---------- */
.composition {
  margin-top: 40px;
  border-collapse: collapse;
  width: 100%;
  max-width: 560px;
}

.composition th,
.composition td {
  border-top: 1px solid var(--toile);
  padding: 18px 24px 18px 0;
  text-align: left;
  vertical-align: baseline;
}

.composition th {
  font-family: "Archivo", sans-serif;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--grey);
  width: 38%;
}

.composition td {
  font-family: "Bodoni Moda", serif;
  font-size: 1.15rem;
  padding-right: 0;
}

/* ---------- Collection: the fitting ---------- */
.fitting-line {
  font-family: "Bodoni Moda", serif;
  font-size: clamp(1.25rem, 3vw, 1.6rem);
  line-height: 1.5;
  max-width: 34ch;
  margin: 24px 0 18px;
}

/* ---------- Carry: what it is ---------- */
.carry-about {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: start;
}

@media (min-width: 720px) {
  .carry-about {
    grid-template-columns: 2fr 3fr;
    gap: 72px;
  }
}

.carry-image {
  aspect-ratio: 4 / 5;
  width: 100%;
}

.carry-text .label {
  display: block;
  margin-bottom: 20px;
}

/* ---------- Atelier: the story ---------- */
.atelier-about {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: start;
}

@media (min-width: 720px) {
  .atelier-about {
    grid-template-columns: 2fr 3fr;
    gap: 72px;
  }
}

.atelier-portrait {
  aspect-ratio: 3 / 4;
  width: 100%;
}

.atelier-text .label {
  display: block;
  margin-bottom: 20px;
}

/* ---------- Atelier: contact ---------- */
.contact-line {
  font-family: "Bodoni Moda", serif;
  font-size: clamp(1.25rem, 3vw, 1.6rem);
  line-height: 1.5;
  max-width: 34ch;
  margin: 24px 0 30px;
}

.contact-instagram {
  margin: 26px 0 0;
}

.contact-instagram a {
  font-family: "Archivo", sans-serif;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--grey);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 3px;
  transition: color 0.3s ease;
}

.contact-instagram a:hover,
.contact-instagram a:focus-visible {
  color: var(--ink);
}

/* ---------- Carry: signup form ---------- */
.signup-line {
  font-family: "Bodoni Moda", serif;
  font-size: clamp(1.25rem, 3vw, 1.6rem);
  line-height: 1.5;
  max-width: 34ch;
  margin: 24px 0 30px;
}

.signup-form {
  width: 100%;
  max-width: 560px;
}

.signup-label {
  display: block;
  text-align: left;
  margin-bottom: 10px;
}

.signup-row {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

@media (min-width: 720px) {
  .signup-row {
    flex-direction: row;
  }
  .signup-row .signup-input {
    flex: 1;
  }
}

.signup-input {
  font-family: "Archivo", sans-serif;
  font-weight: 300;
  font-size: 16px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--ink);
  border-radius: 0;
  padding: 15px 18px;
}

.signup-input::placeholder {
  color: var(--grey);
  opacity: 1;
}

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

.signup-note {
  color: var(--grey);
  font-size: 14px;
  margin: 22px 0 0;
}

/* ---------- Legal ---------- */
.legal-text {
  max-width: 620px;
}

.legal-text .label {
  display: block;
  margin-bottom: 26px;
}

.legal-heading {
  font-size: 1.2rem;
  margin: 34px 0 10px;
}

.legal-text .label + .legal-heading {
  margin-top: 0;
}

/* ---------- FAQ ---------- */
.faq {
  max-width: 620px;
}

.faq .label {
  display: block;
  margin-bottom: 30px;
}

.faq-item {
  border-top: 1px solid var(--toile);
  padding: 26px 0 6px;
}

.faq-question {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

/* ---------- Scroll reveal ----------
   Elements marked .reveal fade up gently as they enter the
   viewport. Fully disabled when the visitor prefers
   reduced motion. */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* If JavaScript never runs, nothing stays hidden */
.no-js .reveal {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .button,
  .nav-links a,
  .footer-links a {
    transition: none;
  }
}
