:root {
  --paper: #e7e8d8;
  --paper-deep: #d5d8c3;
  --ink: #232620;
  --muted: #5d6257;
  --rust: #984b36;
  --rust-dark: #743626;
  --rule: rgba(35, 38, 32, 0.28);
  --serif: Georgia, "Times New Roman", Times, serif;
  --sans: "Segoe UI", Arial, Helvetica, sans-serif;
  --page-pad: clamp(1.25rem, 4vw, 4.5rem);
  --content-max: 90rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration-color: var(--rust);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--rust-dark);
}

a:focus-visible {
  outline: 2px solid var(--rust);
  outline-offset: 5px;
}

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

p,
h1,
h2,
ul,
ol,
figure {
  margin-top: 0;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.7rem 1rem;
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  width: min(100%, var(--content-max));
  margin-inline: auto;
  min-height: 6.5rem;
  padding: 1.7rem var(--page-pad);
  border-bottom: 1px solid var(--rule);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.brand span {
  color: var(--rust);
  padding-left: 0.16em;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.45rem 1.8rem;
  font-size: 0.76rem;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.main-nav a {
  text-decoration: none;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid transparent;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--ink);
  border-color: var(--rust);
}

.hero {
  width: min(100%, var(--content-max));
  margin-inline: auto;
  padding: clamp(5rem, 10vw, 10rem) var(--page-pad) clamp(5rem, 9vw, 9rem);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(1rem, 2.2vw, 2.2rem);
  align-items: start;
}

.hero-copy {
  grid-column: 1 / span 6;
  position: relative;
  z-index: 1;
}

.eyebrow,
.section-number,
.note-label,
.footer-contact p,
.footer-meta {
  font-size: 0.7rem;
  line-height: 1.35;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow {
  margin-bottom: 2rem;
  color: var(--rust-dark);
  font-weight: 700;
}

h1,
h2 {
  font-family: var(--serif);
  font-weight: 400;
  text-wrap: balance;
}

h1 {
  margin-bottom: 2rem;
  font-size: clamp(3.25rem, 6.8vw, 7.1rem);
  line-height: 0.93;
  letter-spacing: -0.055em;
}

h2 {
  margin-bottom: 1.5rem;
  font-size: clamp(2rem, 3.7vw, 4.1rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.standfirst {
  max-width: 37rem;
  margin-bottom: 2.3rem;
  font-family: var(--serif);
  font-size: clamp(1.2rem, 1.8vw, 1.65rem);
  line-height: 1.45;
}

.reading-note {
  width: fit-content;
  margin-bottom: 0;
  padding-top: 0.8rem;
  border-top: 1px solid var(--ink);
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.reading-note span {
  color: var(--ink);
  margin-right: 1.4rem;
}

.hero-media {
  grid-column: 7 / -1;
  margin: clamp(8rem, 16vw, 15rem) 0 0 -1.5rem;
}

.hero-media::before {
  content: "Documento visual · 01";
  display: block;
  margin-bottom: 0.6rem;
  color: var(--rust-dark);
  font-size: 0.66rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero-media img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.72) contrast(0.96);
  border-top: 3px solid var(--rust);
}

.hero-media figcaption {
  max-width: 32rem;
  margin: 0.75rem 0 0 auto;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 0.85rem;
  font-style: italic;
  line-height: 1.45;
}

.intro-note,
.contact-strip {
  width: min(100%, var(--content-max));
  margin-inline: auto;
  padding: clamp(4rem, 8vw, 8rem) var(--page-pad);
  background: var(--paper-deep);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(1rem, 2.2vw, 2.2rem);
}

.intro-note .section-number,
.contact-strip .section-number {
  grid-column: 1 / span 3;
  color: var(--rust-dark);
}

.intro-note > div,
.contact-strip > div {
  grid-column: 4 / span 6;
  max-width: 43rem;
}

.intro-note p:not(.section-number) {
  font-family: var(--serif);
  font-size: 1.12rem;
}

.editorial-sequence {
  width: min(100%, var(--content-max));
  margin-inline: auto;
  padding: 0 var(--page-pad);
}

.note {
  min-height: 42rem;
  padding: clamp(5rem, 9vw, 9rem) 0;
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(1rem, 2.2vw, 2.2rem);
  align-items: start;
}

.note-label {
  color: var(--muted);
}

.note-label span {
  display: block;
  width: 3.1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.65rem;
  border-bottom: 3px solid var(--rust);
  color: var(--rust-dark);
  font-family: var(--serif);
  font-size: 1.9rem;
  line-height: 1;
  letter-spacing: -0.03em;
}

.note-label p {
  max-width: 8rem;
}

.note-body {
  max-width: 43rem;
}

.note-body > p {
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
}

.note-left .note-label {
  grid-column: 1 / span 2;
}

.note-left .note-body {
  grid-column: 3 / span 6;
}

.note-right .note-label {
  grid-column: 6 / span 2;
}

.note-right .note-body {
  grid-column: 8 / span 5;
}

.note-final {
  background: var(--ink);
  color: var(--paper);
  margin-inline: calc(var(--page-pad) * -1);
  padding-inline: var(--page-pad);
}

.note-final .note-label {
  grid-column: 1 / span 2;
  color: rgba(231, 232, 216, 0.68);
}

.note-final .note-label span {
  color: #dca48f;
}

.note-final .note-body {
  grid-column: 3 / span 7;
  max-width: 52rem;
}

.checklist,
.steps,
.plain-list {
  margin: 2.2rem 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--rule);
}

.checklist li,
.steps li,
.plain-list li {
  position: relative;
  padding: 0.9rem 0.25rem 0.9rem 2.3rem;
  border-bottom: 1px solid var(--rule);
}

.checklist li::before {
  content: "";
  position: absolute;
  top: 1.15rem;
  left: 0.2rem;
  width: 0.75rem;
  height: 0.75rem;
  border: 1px solid var(--rust);
}

.steps {
  counter-reset: studio-step;
}

.steps li {
  counter-increment: studio-step;
}

.steps li::before {
  content: counter(studio-step, decimal-leading-zero);
  position: absolute;
  top: 0.94rem;
  left: 0;
  color: var(--rust-dark);
  font-family: var(--serif);
  font-size: 0.82rem;
}

.margin-callout {
  margin: 3rem 0 0 clamp(0rem, 5vw, 5rem);
  padding: 1.4rem 0 0 1.5rem;
  border-top: 1px solid var(--ink);
  border-left: 3px solid var(--rust);
  color: var(--muted);
}

.margin-callout p:first-child {
  color: var(--rust-dark);
  font-size: 0.67rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.edge-list,
.final-check {
  margin-top: 2.5rem;
  border-top: 1px solid var(--rule);
}

.edge-list p,
.final-check p {
  margin: 0;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--rule);
}

.edge-list span,
.final-check span {
  display: inline-block;
  width: 7rem;
  color: var(--rust-dark);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.final-check {
  border-color: rgba(231, 232, 216, 0.35);
}

.final-check p {
  border-color: rgba(231, 232, 216, 0.22);
}

.final-check span {
  color: #dca48f;
}

.closing-note {
  width: min(100%, 58rem);
  margin: 0 auto;
  padding: clamp(6rem, 12vw, 12rem) var(--page-pad);
}

.closing-note h2 {
  max-width: 50rem;
}

.closing-note > p:last-child {
  max-width: 39rem;
  margin-left: auto;
  font-family: var(--serif);
  font-size: 1.12rem;
}

.site-footer {
  min-height: 42rem;
  padding: clamp(4rem, 7vw, 7rem) var(--page-pad) 1.5rem;
  background: var(--rust);
  color: #f1ecdc;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(1rem, 2.2vw, 2.2rem);
  grid-template-rows: auto auto 1fr auto;
}

.footer-contact {
  grid-column: 1 / span 7;
}

.footer-contact p {
  margin-bottom: 0.5rem;
  color: rgba(241, 236, 220, 0.7);
}

.footer-contact a {
  font-family: var(--serif);
  font-size: clamp(1.55rem, 3vw, 3rem);
  text-decoration-color: rgba(241, 236, 220, 0.65);
}

.footer-contact a:hover,
.site-footer a:focus-visible {
  color: #fff;
}

.footer-nav {
  grid-column: 9 / -1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-nav a {
  text-decoration-color: transparent;
}

.footer-nav a:hover,
.footer-nav a[aria-current="page"] {
  text-decoration-color: currentColor;
}

.footer-meta {
  grid-column: 1 / span 6;
  align-self: end;
  margin-bottom: 1.4rem;
  color: rgba(241, 236, 220, 0.7);
}

.footer-wordmark {
  grid-column: 1 / -1;
  align-self: end;
  margin: 0;
  overflow: hidden;
  font-family: var(--serif);
  font-size: clamp(4.5rem, 15.7vw, 15rem);
  line-height: 0.74;
  letter-spacing: -0.065em;
  text-transform: uppercase;
  white-space: nowrap;
}

.legal-page {
  width: min(100%, var(--content-max));
  margin-inline: auto;
}

.page-intro {
  min-height: 39rem;
  padding: clamp(6rem, 11vw, 11rem) var(--page-pad) clamp(5rem, 8vw, 8rem);
  border-bottom: 1px solid var(--rule);
}

.page-intro h1 {
  max-width: 62rem;
}

.page-intro .standfirst {
  margin-left: clamp(0rem, 20vw, 19rem);
}

.prose-section {
  width: min(100% - (2 * var(--page-pad)), 62rem);
  margin-inline: auto;
  padding: clamp(4.5rem, 8vw, 8rem) 0;
  border-bottom: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 1fr 2fr;
  column-gap: clamp(2rem, 6vw, 7rem);
}

.prose-section h2 {
  font-size: clamp(1.8rem, 3vw, 3.1rem);
}

.prose-section > *:not(h2) {
  grid-column: 2;
}

.prose-section p {
  margin-bottom: 1.25rem;
}

.prose-section.offset {
  transform: translateX(clamp(0rem, 4vw, 4rem));
}

.plain-list {
  width: 100%;
}

.plain-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--rust);
}

.contact-strip {
  margin-top: clamp(4rem, 8vw, 8rem);
}

.contact-strip h2 {
  font-size: clamp(2rem, 3vw, 3.3rem);
}

.contact-strip a {
  color: var(--rust-dark);
  font-family: var(--serif);
  font-size: clamp(1.1rem, 2vw, 1.5rem);
}

@media (max-width: 62rem) {
  .hero-copy {
    grid-column: 1 / span 7;
  }

  .hero-media {
    grid-column: 6 / -1;
  }

  .note-right .note-label {
    grid-column: 4 / span 2;
  }

  .note-right .note-body {
    grid-column: 6 / -1;
  }
}

@media (max-width: 46rem) {
  body {
    line-height: 1.6;
  }

  .site-header {
    min-height: 8.5rem;
    flex-direction: column;
    gap: 1.4rem;
  }

  .main-nav {
    justify-content: flex-start;
    gap: 0.45rem 1.1rem;
  }

  .hero {
    padding-top: 4.5rem;
    display: block;
  }

  h1 {
    font-size: clamp(3.15rem, 15vw, 5rem);
  }

  .hero-media {
    margin: 5rem 0 0 8vw;
  }

  .intro-note,
  .contact-strip {
    display: block;
  }

  .intro-note .section-number,
  .contact-strip .section-number {
    margin-bottom: 2rem;
  }

  .note {
    min-height: 0;
    display: grid;
    grid-template-columns: 4rem minmax(0, 1fr);
    column-gap: 1rem;
  }

  .note-left .note-label,
  .note-right .note-label,
  .note-final .note-label {
    grid-column: 1;
  }

  .note-left .note-body,
  .note-right .note-body,
  .note-final .note-body {
    grid-column: 2;
  }

  .note-label p {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    max-height: 10rem;
  }

  .note-label span {
    width: 2.6rem;
    font-size: 1.55rem;
  }

  .margin-callout {
    margin-left: 0;
  }

  .edge-list span,
  .final-check span {
    display: block;
    width: auto;
    margin-bottom: 0.25rem;
  }

  .site-footer {
    min-height: 36rem;
    display: flex;
    flex-direction: column;
  }

  .footer-contact a {
    overflow-wrap: anywhere;
  }

  .footer-nav {
    margin-top: 4rem;
  }

  .footer-meta {
    margin-top: auto;
    padding-top: 5rem;
  }

  .footer-wordmark {
    font-size: clamp(3rem, 15.5vw, 6rem);
  }

  .page-intro {
    min-height: 31rem;
  }

  .page-intro .standfirst {
    margin-left: 0;
  }

  .prose-section {
    display: block;
  }

  .prose-section.offset {
    transform: none;
  }
}

@media (max-width: 25rem) {
  .main-nav {
    flex-direction: column;
  }

  .note {
    display: block;
  }

  .note-label {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
  }

  .note-label p {
    writing-mode: initial;
    transform: none;
    max-height: none;
  }
}

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