/* ==========================================================================
   Peridor & Co. — site stylesheet
   One file for every page. Edit tokens in :root to change the look sitewide.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --navy: #0E0B33;
  --gold: #D4AE67;
  --gold-deep: #876828;      /* gold dark enough for text on white */
  --cream: #F8F5EE;
  --grey: #6B6B7B;
  --ink-soft: #3b3a58;       /* body copy */
  --rule: rgba(14, 11, 51, .16);
  --line: #ece8de;           /* header bottom border */
  --on-navy: rgba(255, 255, 255, .72);

  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Instrument Sans', system-ui, sans-serif;

  --gutter: 40px;
  --max: 1200px;
}

@media (max-width: 700px) {
  :root { --gutter: 24px; }
}

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

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: #ffffff;
  color: var(--navy);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.65;
}

h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

a { color: inherit; text-decoration: none; }
a:hover { opacity: .75; }
a:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

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

/* Skip link: hidden until focused with the keyboard */
.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 10;
  padding: 10px 16px;
  background: var(--navy);
  color: #fff;
  font-size: 14px;
}
.skip-link:focus { top: 12px; }

/* ---------- Layout ---------- */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: var(--pt, 0) var(--gutter) var(--pb, 0);
}

/* Vertical rhythm for sections (desktop / mobile) */
.pad         { --pt: 90px;  --pb: 100px; }
.pad-lg      { --pt: 100px; --pb: 110px; }
.pad-deep    { --pt: 90px;  --pb: 110px; }
.pad-short   { --pt: 90px;  --pb: 80px;  }
.pad-problem { --pt: 110px; --pb: 110px; }
.pad-band    { --pt: 84px;  --pb: 84px;  }

@media (max-width: 700px) {
  .pad, .pad-lg, .pad-deep, .pad-problem { --pt: 64px; --pb: 72px; }
  .pad-short { --pt: 64px; --pb: 56px; }
  .pad-band  { --pt: 56px; --pb: 56px; }
}

.bg-cream { background: var(--cream); }

/* ---------- Type ---------- */
.eyebrow {
  font-size: 11.5px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--grey);
}
.eyebrow--sm { font-size: 11px; }

.page-title {
  max-width: 760px;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(34px, 4.1vw, 54px);
  line-height: 1.1;
  letter-spacing: -.01em;
}

.section-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(30px, 3.4vw, 46px);
  line-height: 1.15;
  letter-spacing: -.008em;
}

.lead {
  max-width: 560px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-soft);
}

.muted { color: var(--ink-soft); }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-block;
  background: var(--navy);
  color: #ffffff;
  font-weight: 500;
  font-size: 14.5px;
  letter-spacing: .02em;
  padding: 15px 28px;
}

.link-line {
  display: inline-block;
  border-bottom: 1px solid var(--navy);
  padding: 4px 0;
  font-size: 15px;
}
.link-line--gold { border-bottom-color: var(--gold); }

.actions { margin-top: 48px; }

/* ---------- Header ---------- */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  --pt: 20px; --pb: 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 40px;
}
.site-header .logo img { width: 170px; }

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 32px;
  font-size: 14px;
  letter-spacing: .02em;
}
.nav a { padding: 12px 0; }
.nav a[aria-current="page"]:not(.nav-cta) { border-bottom: 1px solid var(--navy); }
.nav .nav-cta {
  padding: 11px 20px;
  background: var(--navy);
  color: #ffffff;
  font-size: 13.5px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: var(--on-navy);
}
.site-footer .wrap {
  --pt: 40px; --pb: 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 22px 40px;
}
.site-footer .logo img { width: 140px; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  font-size: 13px;
}
.footer-links a { padding: 8px 0; }
.legal { font-size: 12.5px; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative;
  overflow: hidden;
  background: var(--cream);
}

/* Gold diamond lattice, fading away from one edge */
.page-hero__pattern {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 55%;
  background-image:
    repeating-linear-gradient(60deg,  rgba(212,174,103,.55) 0, rgba(212,174,103,.55) 1px, transparent 1px, transparent 46px),
    repeating-linear-gradient(120deg, rgba(212,174,103,.55) 0, rgba(212,174,103,.55) 1px, transparent 1px, transparent 46px);
  -webkit-mask-image: linear-gradient(to left, #000 10%, transparent 90%);
          mask-image: linear-gradient(to left, #000 10%, transparent 90%);
}
.page-hero__pattern--left {
  right: auto;
  left: 0;
  width: 45%;
  -webkit-mask-image: linear-gradient(to right, #000 10%, transparent 90%);
          mask-image: linear-gradient(to right, #000 10%, transparent 90%);
}

.page-hero .wrap {
  --pt: 96px; --pb: 84px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
@media (max-width: 700px) {
  .page-hero .wrap { --pt: 64px; --pb: 56px; }
}

/* ---------- Home ---------- */
.home-hero .wrap {
  --pt: 130px; --pb: 140px;
  max-width: 900px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.home-hero__logo { width: 440px; max-width: 80%; }
.home-hero__co {
  margin-top: 22px;
  font-family: var(--serif);
  font-size: 17px;
  letter-spacing: .6em;
  text-indent: .6em;            /* re-centres the tracked-out letters */
  color: var(--grey);
}
.home-hero__rule {
  width: 90px;
  height: 1px;
  background: var(--gold);
  margin: 52px 0 44px;
}
.home-hero h1 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(30px, 3.3vw, 42px);
  line-height: 1.2;
}
.home-hero__intro {
  margin-top: 28px;
  max-width: 640px;
  font-size: 17.5px;
  line-height: 1.75;
  color: var(--grey);
}
@media (max-width: 700px) {
  .home-hero .wrap { --pt: 72px; --pb: 80px; }
}

.split {
  display: flex;
  flex-wrap: wrap;
  gap: 48px 90px;
  align-items: flex-start;
}
.split__head { flex: 1.1 1 400px; }
.split__head .eyebrow { margin-bottom: 22px; }
.split__body {
  flex: 1 1 360px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-top: 36px;
  color: var(--ink-soft);
}
@media (max-width: 700px) {
  .split__body { padding-top: 0; }
}
.tagline {
  margin-top: 8px;
  padding-top: 20px;
  border-top: 1px solid var(--gold);
  font-family: var(--serif);
  font-size: 23px;
  line-height: 1.4;
  color: var(--navy);
}

.cta-band .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px 60px;
}
.cta-band .section-title { flex: 1 1 440px; max-width: 680px; }

/* ---------- Cards (titled blocks with a top rule) ---------- */
.cards {
  display: flex;
  flex-wrap: wrap;
  gap: 48px 90px;
}
.card {
  flex: 1 1 380px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 24px;
  border-top: 1px solid var(--navy);
}
.card--gold { border-top-color: var(--gold); }
.card h2, .card h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 29px;
}

/* ---------- Method ---------- */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px 26px;
}
.step {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--navy);
}
.step--gold { border-top-color: var(--gold); }
.step__num {
  font-family: var(--serif);
  font-size: 44px;
  line-height: 1;
  color: var(--gold-deep);
}
.step h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 27px;
  line-height: 1.2;
}
.step p { font-size: 15px; color: var(--ink-soft); }

/* Two-up on tablets, a descending staircase once all four fit in a row */
@media (min-width: 600px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1040px) {
  .steps { grid-template-columns: repeat(4, 1fr); align-items: start; }
  .step { min-height: 200px; }
  .step:nth-child(2) { margin-top: 36px; }
  .step:nth-child(3) { margin-top: 72px; }
  .step:nth-child(4) { margin-top: 108px; }
}
.steps + .link-line { margin-top: 56px; }

.audience .eyebrow { margin-bottom: 20px; }
.audience .section-title { max-width: 720px; margin-bottom: 60px; }
@media (max-width: 700px) {
  .audience .section-title { margin-bottom: 40px; }
}

/* ---------- Rooms ---------- */
.room-intro {
  display: flex;
  flex-wrap: wrap;
  gap: 56px 90px;
  align-items: center;
}
.specs {
  flex: 1 1 420px;
  max-width: 540px;
  border-bottom: 1px solid var(--rule);
}
.specs > div {
  display: flex;
  gap: 24px;
  padding: 16px 0;
  border-top: 1px solid var(--rule);
}
.specs dt { min-width: 140px; padding-top: 5px; }
.specs dd { color: var(--ink-soft); }
@media (max-width: 480px) {
  .specs > div { flex-direction: column; gap: 4px; }
  .specs dt { min-width: 0; padding-top: 0; }
}

.table-figure {
  flex: 1 1 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.table-figure svg { width: 100%; max-width: 400px; height: auto; }
.table-figure figcaption { text-align: center; }

.rooms-list { gap: 48px 80px; }
.rooms-list .card { flex-basis: 340px; gap: 10px; }
.rooms-list .card h2 { font-size: 33px; line-height: 1.15; }
.rooms-list .card p { max-width: 440px; }
.rooms-note { margin-top: 48px; max-width: 640px; }
.rooms-note + .actions { margin-top: 36px; }

/* ---------- Notes ---------- */
.series {
  max-width: 860px;
  border-top: 1px solid var(--navy);
  border-bottom: 1px solid var(--navy);
}
.series li {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 32px;
  padding: 24px 0;
}
.series li + li { border-top: 1px solid var(--rule); }
.series h2 {
  min-width: 200px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 26px;
}
.series p { flex: 1 1 260px; font-size: 15.5px; color: var(--ink-soft); }

/* ---------- Founders ---------- */
.founders {
  display: flex;
  flex-wrap: wrap;
  gap: 56px 90px;
}
.founder {
  flex: 1 1 380px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}
.founder__photo {
  width: 240px;
  height: 240px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 20%;
  border: 2px solid var(--navy);
}
.founder__photo--gold { border-color: var(--gold); }
.founder h2 {
  margin-top: 10px;
  font-family: var(--serif);
  font-weight: 300;
  font-size: 40px;
  line-height: 1.15;
}
.founder__bio { margin-top: 4px; color: var(--ink-soft); }

/* ---------- Contact ---------- */
.contact-hero .wrap {
  --pt: 130px; --pb: 150px;
  align-items: flex-start;
  gap: 28px;
}
@media (max-width: 700px) {
  .contact-hero .wrap { --pt: 72px; --pb: 80px; }
}
.contact-hero h1 {
  max-width: 780px;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(36px, 4.8vw, 64px);
  line-height: 1.08;
  letter-spacing: -.012em;
}
.contact-hero .lead { max-width: 540px; line-height: 1.65; }
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 32px;
  margin-top: 4px;
}
.contact-actions span { font-size: 16px; }
.contact-social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 32px;
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  font-size: 14.5px;
}
.contact-social a { padding: 6px 0; }
