:root {
  --clr-ink: #1c1c1e;
  --clr-paper: #f7f5f2;
  --clr-navy: #1a2744;
  --clr-amber: #c4853a;
  --clr-amber-dark: #a86e2c;
  --clr-slate: #4a5568;
  --clr-rule: #ddd8d0;
  --clr-white: #ffffff;
  --clr-surface: rgba(255, 255, 255, 0.06);
  --gutter: clamp(1rem, 4vw, 2rem);
  --max-w: 72rem;
  --radius-sm: 4px;
  --radius-md: 8px;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Helvetica, Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--clr-ink);
  background-color: var(--clr-paper);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--clr-amber);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

a:focus-visible {
  outline: 2px solid var(--clr-amber);
  outline-offset: 3px;
  border-radius: 2px;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-body);
  line-height: 1.2;
  color: var(--clr-navy);
}

h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.125rem);
  font-weight: 600;
}

h3 {
  font-size: 1.2rem;
  font-weight: 600;
}

h4 {
  font-size: 1rem;
  font-weight: 600;
}

p {
  max-width: 68ch;
}

ul {
  padding-left: 1.5rem;
}

.shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.ledger {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
  width: 100%;
}

.masthead {
  background-color: var(--clr-navy);
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.28);
}

.masthead__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.beacon {
  color: var(--clr-white);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  flex-shrink: 0;
}

.beacon:hover {
  color: var(--clr-amber);
  text-decoration: none;
}

.trail {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  list-style: none;
  flex-wrap: wrap;
  padding: 0;
}

.trail a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: color 0.15s, background-color 0.15s;
}

.trail a:hover {
  color: var(--clr-white);
  background-color: rgba(255, 255, 255, 0.09);
  text-decoration: none;
}

.trail a[aria-current="page"] {
  color: var(--clr-amber);
}

.trail a:focus-visible {
  outline: 2px solid var(--clr-amber);
  outline-offset: 0;
}

.folio-hero {
  padding: 5rem 0 4.5rem;
}

.folio-hero__split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.folio-hero__label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clr-amber);
  margin-bottom: 1.25rem;
}

.folio-hero__text h1 {
  margin-bottom: 1.25rem;
}

.folio-hero__text p {
  font-size: 1.1rem;
  color: var(--clr-slate);
  margin-bottom: 2.25rem;
  max-width: 52ch;
}

.folio-hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.folio-hero__visual {
  display: flex;
  justify-content: flex-end;
}

.folio-hero__visual img {
  width: 100%;
  max-width: 32rem;
  height: auto;
}

.btn-primary {
  display: inline-block;
  background-color: var(--clr-amber);
  color: var(--clr-white);
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background-color 0.15s;
  border: 2px solid var(--clr-amber);
}

.btn-primary:hover {
  background-color: var(--clr-amber-dark);
  border-color: var(--clr-amber-dark);
  text-decoration: none;
  color: var(--clr-white);
}

.btn-primary:focus-visible {
  outline: 2px solid var(--clr-amber);
  outline-offset: 3px;
}

.btn-secondary {
  display: inline-block;
  background-color: transparent;
  color: var(--clr-navy);
  padding: 0.7rem 1.75rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid var(--clr-navy);
  transition: background-color 0.15s, color 0.15s;
}

.btn-secondary:hover {
  background-color: var(--clr-navy);
  color: var(--clr-white);
  text-decoration: none;
}

.btn-secondary:focus-visible {
  outline: 2px solid var(--clr-amber);
  outline-offset: 3px;
}

.btn-outline-light {
  display: inline-block;
  background-color: transparent;
  color: var(--clr-white);
  padding: 0.7rem 1.75rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid rgba(255, 255, 255, 0.45);
  transition: background-color 0.15s, border-color 0.15s;
}

.btn-outline-light:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  color: var(--clr-white);
}

.btn-outline-light:focus-visible {
  outline: 2px solid var(--clr-amber);
  outline-offset: 3px;
}

.submit-btn {
  display: inline-block;
  background-color: var(--clr-amber);
  color: var(--clr-white);
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  font-family: var(--font-body);
  border: 2px solid var(--clr-amber);
  cursor: pointer;
  transition: background-color 0.15s;
}

.submit-btn:hover {
  background-color: var(--clr-amber-dark);
  border-color: var(--clr-amber-dark);
}

.submit-btn:focus-visible {
  outline: 2px solid var(--clr-amber);
  outline-offset: 3px;
}

.chapter {
  padding: 4.5rem 0;
}

.chapter--tinted {
  background-color: var(--clr-white);
}

.chapter--dark {
  background-color: var(--clr-navy);
  color: rgba(255, 255, 255, 0.85);
}

.chapter--dark h2,
.chapter--dark h3,
.chapter--dark h4 {
  color: var(--clr-white);
}

.chapter--dark p {
  color: rgba(255, 255, 255, 0.8);
}

.caps-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clr-amber);
  margin-bottom: 0.75rem;
}

.chapter__heading {
  margin-bottom: 0.5rem;
}

.chapter__sub {
  font-size: 1.05rem;
  color: var(--clr-slate);
  margin-bottom: 3rem;
  max-width: 62ch;
}

.chapter--dark .chapter__sub {
  color: rgba(255, 255, 255, 0.65);
}

.mosaic {
  display: grid;
  gap: 1.5rem;
}

.mosaic--three {
  grid-template-columns: repeat(3, 1fr);
}

.mosaic--two {
  grid-template-columns: repeat(2, 1fr);
}

.tile {
  background-color: var(--clr-paper);
  border: 1px solid var(--clr-rule);
  border-radius: var(--radius-md);
  padding: 2rem 1.75rem;
}

.tile__num {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clr-amber);
  background-color: rgba(196, 133, 58, 0.1);
  display: inline-block;
  padding: 0.25rem 0.55rem;
  border-radius: 3px;
  margin-bottom: 1rem;
}

.tile h3 {
  margin-bottom: 0.75rem;
}

.tile p {
  font-size: 0.93rem;
  color: var(--clr-slate);
  max-width: none;
}

.chapter--dark .tile {
  background-color: var(--clr-surface);
  border-color: rgba(255, 255, 255, 0.1);
}

.chapter--dark .tile h3 {
  color: var(--clr-white);
}

.chapter--dark .tile p {
  color: rgba(255, 255, 255, 0.7);
}

.plaque {
  background-color: var(--clr-navy);
  color: var(--clr-white);
  border-radius: var(--radius-md);
  padding: 3rem;
}

.plaque h2,
.plaque h3 {
  color: var(--clr-white);
  margin-bottom: 1rem;
}

.plaque p {
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 1.5rem;
  max-width: none;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.split--wide {
  grid-template-columns: 3fr 2fr;
}

.split--rev > *:first-child {
  order: 2;
}

.split--rev > *:last-child {
  order: 1;
}

.split__body h2 {
  margin-bottom: 0.75rem;
}

.split__body p {
  color: var(--clr-slate);
  margin-bottom: 1.25rem;
  max-width: none;
}

.split__body ul {
  color: var(--clr-slate);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.visual-wrap {
  border-radius: var(--radius-md);
  border: 1px solid var(--clr-rule);
  padding: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--clr-white);
}

.visual-wrap img {
  max-width: 100%;
  height: auto;
}

.sequence {
  list-style: none;
  padding: 0;
  counter-reset: step-counter;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.sequence__item {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  counter-increment: step-counter;
}

.sequence__item::before {
  content: counter(step-counter, decimal-leading-zero);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--clr-amber);
  background-color: rgba(196, 133, 58, 0.1);
  padding: 0.4rem 0.65rem;
  border-radius: 3px;
  flex-shrink: 0;
  margin-top: 0.15rem;
  min-width: 3rem;
  text-align: center;
}

.sequence__body h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.sequence__body p {
  font-size: 0.9rem;
  color: var(--clr-slate);
  max-width: none;
}

.page-header {
  background-color: var(--clr-navy);
  padding: 4rem 0 3.5rem;
  color: var(--clr-white);
}

.page-header h1 {
  color: var(--clr-white);
}

.page-header__sub {
  color: rgba(255, 255, 255, 0.72);
  margin-top: 1rem;
  font-size: 1.1rem;
  max-width: 58ch;
}

.link-panel {
  background-color: var(--clr-white);
  border: 1px solid var(--clr-rule);
  border-radius: var(--radius-md);
  padding: 2rem 2.25rem;
}

.link-panel h4 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clr-slate);
  margin-bottom: 1rem;
}

.link-panel ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.link-panel li a {
  font-size: 0.9rem;
  color: var(--clr-amber);
}

.link-panel li a:hover {
  text-decoration: underline;
}

.entry-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.entry-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.field label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--clr-navy);
}

.field--required label::after {
  content: " *";
  color: var(--clr-amber);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.65rem 1rem;
  border: 1px solid var(--clr-rule);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: var(--font-body);
  color: var(--clr-ink);
  background-color: var(--clr-white);
  transition: border-color 0.15s, box-shadow 0.15s;
  appearance: none;
  -webkit-appearance: none;
}

.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%234a5568' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--clr-amber);
  box-shadow: 0 0 0 3px rgba(196, 133, 58, 0.15);
}

.field textarea {
  min-height: 9rem;
  resize: vertical;
  line-height: 1.6;
}

.form-note {
  font-size: 0.82rem;
  color: var(--clr-slate);
  line-height: 1.55;
  max-width: none;
}

.form-intro {
  color: var(--clr-slate);
  margin-bottom: 2rem;
  max-width: 52ch;
}

.form-btn-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.contact-block {
  background-color: var(--clr-navy);
  color: var(--clr-white);
  border-radius: var(--radius-md);
  padding: 2.5rem;
}

.contact-block h2,
.contact-block h3 {
  color: var(--clr-white);
  margin-bottom: 0.5rem;
}

.contact-block__intro {
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 2rem;
  font-size: 0.95rem;
  max-width: none;
}

.contact-info {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-info__row {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.contact-info__label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clr-amber);
  min-width: 4.5rem;
  padding-top: 0.15rem;
  flex-shrink: 0;
}

.contact-info__value {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.55;
  max-width: none;
}

.contact-info__value a {
  color: rgba(255, 255, 255, 0.82);
}

.contact-info__value a:hover {
  color: var(--clr-amber);
}

.page-links {
  padding: 4.5rem 0;
  background-color: var(--clr-white);
}

.page-links__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.page-link-card {
  border: 1px solid var(--clr-rule);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.page-link-card:hover {
  border-color: var(--clr-amber);
  box-shadow: 0 2px 12px rgba(196, 133, 58, 0.12);
}

.page-link-card h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.page-link-card p {
  font-size: 0.875rem;
  color: var(--clr-slate);
  margin-bottom: 1.25rem;
  max-width: none;
}

.page-link-card a {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--clr-amber);
}

.rule-line {
  border: none;
  border-top: 1px solid var(--clr-rule);
  margin: 2.5rem 0;
}

.legal-intro {
  background-color: var(--clr-navy);
  padding: 3rem 0 2.75rem;
  color: var(--clr-white);
}

.legal-intro h1 {
  color: var(--clr-white);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}

.legal-intro p {
  color: rgba(255, 255, 255, 0.7);
  margin-top: 0.75rem;
  font-size: 0.95rem;
  max-width: 58ch;
}

.legal-content {
  padding: 3.5rem 0 5rem;
}

.legal-body {
  max-width: 65ch;
}

.legal-body h2 {
  font-size: 1.3rem;
  margin-top: 2.75rem;
  margin-bottom: 0.75rem;
  padding-top: 2rem;
  border-top: 1px solid var(--clr-rule);
}

.legal-body h2:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.legal-body h3 {
  font-size: 1.05rem;
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
}

.legal-body p {
  color: var(--clr-slate);
  margin-bottom: 1rem;
  font-size: 0.95rem;
  max-width: none;
}

.legal-body ul,
.legal-body ol {
  color: var(--clr-slate);
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding-left: 1.5rem;
}

.legal-body li {
  font-size: 0.93rem;
  line-height: 1.65;
  max-width: none;
}

.legal-nav {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--clr-rule);
}

.legal-nav p {
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
  color: var(--clr-navy);
  max-width: none;
}

.legal-nav ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
}

.legal-nav li a {
  font-size: 0.875rem;
  color: var(--clr-amber);
}

.folio-footer {
  background-color: var(--clr-navy);
  margin-top: auto;
}

.folio-footer__main {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding: 4rem 0 2.5rem;
}

.folio-footer__brand p {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.58);
  margin-top: 0.75rem;
  max-width: 28ch;
  line-height: 1.65;
}

.folio-footer__brand .beacon {
  font-size: 1.1rem;
}

.folio-footer__col h4 {
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.folio-footer__col ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.folio-footer__col li a {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.875rem;
  text-decoration: none;
  transition: color 0.15s;
}

.folio-footer__col li a:hover {
  color: var(--clr-amber);
}

.folio-footer__col address {
  font-style: normal;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.58);
  line-height: 1.75;
}

.folio-footer__col address a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
}

.folio-footer__col address a:hover {
  color: var(--clr-amber);
}

.folio-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.25rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.folio-footer__copy {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.38);
}

.folio-footer__legal {
  display: flex;
  gap: 1.5rem;
}

.folio-footer__legal a {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.38);
  text-decoration: none;
}

.folio-footer__legal a:hover {
  color: var(--clr-amber);
}

@media (max-width: 900px) {
  .folio-hero__split {
    grid-template-columns: 1fr;
  }

  .folio-hero__visual {
    display: none;
  }

  .mosaic--three {
    grid-template-columns: 1fr 1fr;
  }

  .split {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .split--wide {
    grid-template-columns: 1fr;
  }

  .split--rev > *:first-child {
    order: 0;
  }

  .split--rev > *:last-child {
    order: 0;
  }

  .page-links__grid {
    grid-template-columns: 1fr 1fr;
  }

  .folio-footer__main {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .folio-footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  .masthead__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    padding-top: 0.875rem;
    padding-bottom: 0.875rem;
  }

  .trail {
    gap: 0.1rem;
  }

  .trail a {
    padding: 0.35rem 0.6rem;
    font-size: 0.8rem;
  }

  .folio-hero {
    padding: 3rem 0 2.5rem;
  }

  .chapter {
    padding: 3rem 0;
  }

  .mosaic--three {
    grid-template-columns: 1fr;
  }

  .mosaic--two {
    grid-template-columns: 1fr;
  }

  .entry-form__row {
    grid-template-columns: 1fr;
  }

  .page-links__grid {
    grid-template-columns: 1fr;
  }

  .folio-footer__main {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-top: 2.5rem;
  }

  .folio-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .plaque {
    padding: 2rem 1.5rem;
  }

  .page-links {
    padding: 3rem 0;
  }
}
