/* ORRISVEIL — structure & type layer
   Display & body: EB Garamond (classical old-style serif, the visual mother
   tongue of an atelier ledger — full-serif throughout, no didone, no
   grotesque). Utility: IBM Plex Mono for formula figures, which are read
   as data, not prose. */

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

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

body {
  margin: 0;
  font-family: "EB Garamond", Georgia, serif;
  font-size: 1rem;
  line-height: 1.75;
  font-weight: 400;
  letter-spacing: 0.012em;
}

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

h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

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

.shell {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: 28px;
}

.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;
}

/* ============ header ============ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 78px;
}

.header-logo {
  font-family: "EB Garamond", Georgia, serif;
  font-size: 1.32rem;
  letter-spacing: 0.34em;
  text-indent: 0.34em;
  font-weight: 500;
  white-space: nowrap;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 34px;
}

.nav-link {
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transition: color 0.25s ease;
}

.nav-enrol {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 11px 22px;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

/* ============ hero ============ */

.hero {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  min-height: min(92vh, 880px);
}

.hero-copy-col {
  display: flex;
  align-items: center;
  padding: 96px clamp(28px, 5vw, 88px);
}

.hero-inner {
  width: 100%;
  max-width: 600px;
  margin-inline: auto;
}

.hero-figure {
  position: relative;
  overflow: hidden;
}

.hero-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 45%;
}

/* Feathers the photograph into the copy column so the split does not
   read as two pasted-together panels. */
.hero-figure-veil {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-eyebrow {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.66rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  margin-bottom: 30px;
}

.hero-name {
  font-family: "EB Garamond", Georgia, serif;
  /* Sized to the copy column, not the viewport — 9 letters of Bodoni at
     wider than ~5.6rem overrun the split and clip the final E. */
  font-size: clamp(2.6rem, 5.6vw, 5.6rem);
  line-height: 0.94;
  letter-spacing: 0.02em;
  font-weight: 400;
  margin-bottom: 26px;
}

.hero-name em {
  display: block;
  font-style: italic;
  font-size: 0.3em;
  letter-spacing: 0.24em;
  line-height: 1;
  margin-top: 20px;
  font-weight: 400;
}

.hero-lede {
  font-size: clamp(1rem, 1.6vw, 1.16rem);
  line-height: 1.7;
  max-width: 40ch;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-meta {
  margin-top: 52px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero-meta-sep { user-select: none; }

/* ============ buttons ============ */

.btn-solid,
.btn-ghost {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 16px 32px;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

/* ============ shared section furniture ============ */

.section-head { margin-bottom: 62px; }

.section-label {
  display: block;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.64rem;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  margin-bottom: 26px;
}

.section-label::after {
  content: "";
  display: block;
  width: 54px;
  height: 1px;
  margin-top: 18px;
}

.section-title {
  font-family: "EB Garamond", Georgia, serif;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.18;
  letter-spacing: 0.01em;
  max-width: 22ch;
}

.section-note {
  margin-top: 22px;
  max-width: 52ch;
  font-size: 0.96rem;
}

/* ============ manifesto ============ */

.manifesto { padding-block: clamp(88px, 12vw, 150px); }

.manifesto-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(44px, 7vw, 96px);
  align-items: center;
}

.manifesto-text p + p { margin-top: 22px; }

.manifesto-text p.lead {
  font-family: "EB Garamond", Georgia, serif;
  font-size: clamp(1.28rem, 2.3vw, 1.68rem);
  line-height: 1.45;
  font-style: italic;
  margin-bottom: 30px;
}

.manifesto-figure { margin: 0; }

.manifesto-figure img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  /* Shot against a pale seamless — dropped so the frame does not punch a
     bright hole in the dark page. */
  filter: brightness(0.7) contrast(1.12) saturate(0.8);
}

.manifesto-figure figcaption {
  margin-top: 16px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.64rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* ============ courses — the formula sheets ============ */

.courses { padding-block: clamp(88px, 12vw, 150px); }

.formula-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(316px, 1fr));
  gap: 28px;
}

.formula {
  display: flex;
  flex-direction: column;
  padding: 38px 34px 32px;
  transition: border-color 0.3s ease;
}

.formula-index {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.64rem;
  letter-spacing: 0.3em;
  margin-bottom: 20px;
}

.formula-name {
  font-family: "EB Garamond", Georgia, serif;
  font-size: 1.72rem;
  line-height: 1.2;
  margin-bottom: 10px;
}

.formula-duration {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.formula-blurb {
  font-size: 0.92rem;
  line-height: 1.7;
  margin-bottom: 30px;
  /* Holds the formula sheets on a shared baseline across the three cards
     even when one blurb runs a line longer. */
  min-height: 6.3rem;
}

.formula-sheet {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 26px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
}

.formula-sheet caption {
  caption-side: top;
  text-align: left;
  font-size: 0.6rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  padding-bottom: 14px;
}

.formula-sheet th,
.formula-sheet td {
  text-align: left;
  padding: 9px 0;
  font-weight: 400;
  vertical-align: baseline;
}

.formula-sheet th {
  width: 4.6em;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.formula-sheet .parts {
  text-align: right;
  width: 4em;
  white-space: nowrap;
}

.formula-foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
  padding-top: 6px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
}

.formula-price strong { font-weight: 500; }

.formula-link {
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.66rem;
  transition: color 0.25s ease;
}

/* ============ atelier ============ */

.atelier { padding-block: clamp(88px, 12vw, 150px); }

.atelier-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(44px, 7vw, 96px);
  align-items: stretch;
}

.atelier-figure { margin: 0; height: 100%; }

.atelier-figure img {
  width: 100%;
  height: 100%;
  min-height: 460px;
  object-fit: cover;
  object-position: 40% center;
  /* Shot in a bright studio — pulled down to sit in the dark palette. */
  filter: brightness(0.56) contrast(1.12) saturate(0.85);
}

.atelier-body p.lead {
  font-size: 1.08rem;
  line-height: 1.7;
  margin-bottom: 24px;
}

.atelier-body p + p { margin-top: 20px; }

.credentials { margin-top: 46px; }

.credential {
  display: grid;
  grid-template-columns: 8.5em 1fr;
  gap: 20px;
  padding-block: 17px;
}

.credential dt {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding-top: 4px;
}

.credential dd {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.65;
}

/* ============ enrol ============ */

.enrol {
  padding-block: clamp(80px, 11vw, 132px);
  text-align: center;
}

.enrol-title {
  font-family: "EB Garamond", Georgia, serif;
  font-size: clamp(1.8rem, 4vw, 2.9rem);
  line-height: 1.2;
  max-width: 20ch;
  margin-inline: auto;
  margin-bottom: 26px;
}

.enrol-note {
  max-width: 46ch;
  margin-inline: auto;
  margin-bottom: 40px;
  font-size: 0.98rem;
}

/* ============ footer ============ */

.site-footer { padding-top: 76px; }

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 44px;
  padding-bottom: 60px;
}

.footer-inner h2 {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.footer-brand .footer-logo {
  font-family: "EB Garamond", Georgia, serif;
  font-size: 1.2rem;
  letter-spacing: 0.3em;
  margin-bottom: 20px;
  display: block;
}

.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.7;
  max-width: 30ch;
}

.footer-links li + li { margin-top: 12px; }

.footer-links a {
  font-size: 0.88rem;
  transition: color 0.25s ease;
}

.footer-inner address {
  font-style: normal;
  font-size: 0.88rem;
  line-height: 1.8;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 30px;
  justify-content: space-between;
  padding-block: 26px 34px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ============ inner-page head ============ */

.page-head { padding-block: clamp(64px, 9vw, 108px) clamp(40px, 6vw, 64px); }

.page-title {
  font-family: "EB Garamond", Georgia, serif;
  font-size: clamp(2.2rem, 5.4vw, 3.7rem);
  line-height: 1.1;
  letter-spacing: 0.01em;
  font-weight: 400;
  max-width: 18ch;
}

.page-intro {
  margin-top: 28px;
  max-width: 62ch;
  font-size: 1.04rem;
  line-height: 1.8;
}

/* ============ journal list ============ */

.journal { padding-bottom: clamp(80px, 11vw, 132px); }

.article-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(322px, 1fr));
  gap: 30px;
}

/* The WF appends cards here as literal HTML — these rules have to match
   its fixed class names, not ours. */
.article-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: border-color 0.3s ease;
}

.article-thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}

.article-card .article-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 26px 26px 24px;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.article-card h2,
.article-card h3 {
  font-family: "EB Garamond", Georgia, serif;
  font-size: 1.34rem;
  line-height: 1.28;
  font-weight: 400;
  margin-bottom: 12px;
}

.article-excerpt {
  font-size: 0.92rem;
  line-height: 1.7;
  margin-bottom: 22px;
}

.article-link {
  margin-top: auto;
  align-self: flex-start;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.64rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: color 0.25s ease;
}

.journal-empty {
  margin-top: 8px;
  font-size: 0.98rem;
  line-height: 1.8;
}

.journal-empty a { border-bottom: 1px solid var(--brass-dim); }

/* Once the WF has injected at least one card, the placeholder line is
   no longer the only thing on the page — keep it, but demote it. */
.article-list:not(:empty) + .journal-empty {
  margin-top: 48px;
  font-size: 0.88rem;
}

/* ============ course detail ============ */

.course-detail { padding-block: clamp(56px, 8vw, 88px); }
.course-detail + .course-detail { padding-top: 0; }

.course-slab { padding-top: clamp(44px, 6vw, 68px); }

.course-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: clamp(40px, 6vw, 78px);
  align-items: start;
}

.course-index {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.64rem;
  letter-spacing: 0.3em;
  margin-bottom: 18px;
}

.course-title {
  font-family: "EB Garamond", Georgia, serif;
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  line-height: 1.16;
  font-weight: 400;
  margin-bottom: 12px;
}

.course-duration {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.course-text p + p { margin-top: 20px; }
.course-text p { font-size: 1rem; line-height: 1.8; }

.course-includes { margin-top: 34px; }

.course-includes h3 {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.course-includes li {
  position: relative;
  padding-left: 22px;
  font-size: 0.95rem;
  line-height: 1.7;
}
.course-includes li + li { margin-top: 11px; }
.course-includes li::before {
  content: "—";
  position: absolute;
  left: 0;
}

.course-aside {
  padding: 30px 28px;
  position: sticky;
  top: 108px;
}

.course-aside dl { margin: 0; }

.course-aside .row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-block: 13px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
}
.course-aside .row + .row { border-top: 1px solid var(--rule-soft); }
.course-aside dt { letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.62rem; }
.course-aside dd { margin: 0; text-align: right; }

.course-aside .btn-solid {
  display: block;
  text-align: center;
  margin-top: 26px;
}

/* ============ contact ============ */

.contact { padding-bottom: clamp(80px, 11vw, 132px); }

.contact-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(44px, 7vw, 92px);
  align-items: start;
}

/* Roman numerals come from the counter below — the browser's own <ol>
   markers have to go, or every step shows two numbers. */
.enrol-steps {
  counter-reset: step;
  list-style: none;
  padding-left: 0;
}

.enrol-steps li {
  position: relative;
  padding-left: 52px;
  min-height: 34px;
}
.enrol-steps li + li { margin-top: 30px; }

.enrol-steps li::before {
  counter-increment: step;
  content: counter(step, upper-roman);
  position: absolute;
  left: 0;
  top: 1px;
  width: 34px;
  text-align: center;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  padding-block: 5px;
}

.enrol-steps h3 {
  font-family: "EB Garamond", Georgia, serif;
  font-size: 1.02rem;
  font-weight: 500;
  margin-bottom: 7px;
}

.enrol-steps p { font-size: 0.95rem; line-height: 1.75; }

.contact-mail {
  display: inline-block;
  margin-top: 38px;
  font-family: "EB Garamond", Georgia, serif;
  font-size: clamp(1.3rem, 2.6vw, 1.75rem);
  letter-spacing: 0.01em;
  padding-bottom: 6px;
}

.contact-panel { padding: 32px 30px; }

.contact-panel h2 {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.contact-panel address {
  font-style: normal;
  font-size: 0.96rem;
  line-height: 1.85;
}

.contact-panel .panel-block + .panel-block {
  margin-top: 26px;
  padding-top: 26px;
  border-top: 1px solid var(--rule-soft);
}

/* ============ long-form prose (legal pages) ============ */

.prose {
  max-width: 74ch;
  padding-bottom: clamp(80px, 11vw, 128px);
  font-size: 1rem;
  line-height: 1.85;
}

.prose > * + * { margin-top: 24px; }

.prose h2 {
  font-family: "EB Garamond", Georgia, serif;
  font-size: clamp(1.34rem, 2.6vw, 1.72rem);
  font-weight: 400;
  line-height: 1.3;
  margin-top: 52px;
  padding-top: 28px;
  border-top: 1px solid var(--rule-soft);
}

.prose h3 {
  font-family: "EB Garamond", Georgia, serif;
  font-size: 1.02rem;
  font-weight: 500;
  margin-top: 32px;
}

.prose ul { padding-left: 1.25em; list-style: disc; }
.prose li { margin-top: 10px; }
.prose li::marker { color: var(--brass-dim); }

.prose a { border-bottom: 1px solid var(--brass-dim); }

.prose .updated {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.64rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* ============ responsive ============ */

@media (max-width: 940px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-figure { order: -1; min-height: 44vh; }
  .hero-copy-col { padding: 60px 24px 76px; }
  .hero-inner { max-width: none; }

  .manifesto-grid,
  .atelier-grid { grid-template-columns: 1fr; }

  .manifesto-figure { order: -1; }

  .manifesto-figure img,
  .atelier-figure img { aspect-ratio: 16 / 10; height: auto; min-height: 0; }

  .course-grid,
  .contact-grid { grid-template-columns: 1fr; }
  .course-aside { position: static; }

  .footer-inner { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .shell { padding-inline: 20px; }

  .header-nav { gap: 18px; }
  .nav-link { display: none; }
  .nav-enrol { padding: 10px 16px; }

  .header-logo { font-size: 1.05rem; letter-spacing: 0.26em; text-indent: 0.26em; }

  .hero-figure { min-height: 38vh; }
  .hero-copy-col { padding: 48px 20px 62px; }
  .hero-actions { gap: 12px; }
  .btn-solid, .btn-ghost { padding: 14px 24px; font-size: 0.66rem; letter-spacing: 0.18em; }

  .section-head { margin-bottom: 46px; }

  .formula { padding: 30px 26px 28px; }

  .credential { grid-template-columns: 1fr; gap: 6px; }

  .article-card .article-body { padding: 22px 22px 20px; }
  .course-aside { padding: 26px 22px; }
  .contact-panel { padding: 26px 22px; }
  .enrol-steps li { padding-left: 44px; }

  .footer-inner { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
