/* ============================================================
   SEMANTIS — MAIN DESIGN SYSTEM
   Structural layout, typography, components, responsive rules.
   Theme values are supplied separately.
   ============================================================ */

/* RESET + BASE */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--fg);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
}

button,
input,
textarea,
select {
  font: inherit;
}

.shell {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
}

/* TYPOGRAPHY */

.eyebrow {
  margin: 0 0 26px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.display-title,
.section-title,
.principle-text {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

.display-title {
  font-size: clamp(54px, 7vw, 96px);
  line-height: .96;
  letter-spacing: -.045em;
}

.section-title {
  font-size: clamp(36px, 4.8vw, 66px);
  line-height: 1.06;
  letter-spacing: -.025em;
}

.section-title--medium {
  font-size: clamp(36px, 4.5vw, 60px);
  line-height: 1.08;
}

.body-copy {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.lede {
  max-width: 690px;
  margin: 34px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.52;
}

.lede strong {
  color: var(--fg);
  font-weight: 650;
}

.micro {
  display: block;
  margin: 0 0 20px;
  color: var(--soft);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

/* HEADER + NAVIGATION */

.site-header {
  border-bottom: 1px solid var(--line);
}

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

.brand {
  color: var(--fg);
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  transition: color 140ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--fg);
}

/* HERO */

.hero {
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(380px, .95fr);
  min-height: 660px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding:
    clamp(72px, 9vw, 128px)
    clamp(36px, 5vw, 74px)
    clamp(72px, 9vw, 128px)
    0;
}

.hero-media {
  position: relative;
  min-height: 100%;
  overflow: hidden;
  border-left: 1px solid var(--line);
  background: var(--hero-media-bg);
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      110deg,
      var(--hero-tint-a),
      var(--hero-tint-b) 48%,
      var(--hero-tint-c)
    );
  pointer-events: none;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(
      90deg,
      var(--hero-fade),
      transparent 22%
    );
  pointer-events: none;
}

.hero-mark {
  position: absolute;
  z-index: 3;
  left: 22px;
  bottom: 22px;
  color: var(--hero-mark);
  font-size: 10px;
  letter-spacing: .17em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.hero-media--contain img {
  object-fit: contain;
  background: var(--hero-media-bg);
}

/* SECTION SYSTEM */

.section {
  position: relative;
  border-bottom: 1px solid var(--line);
}

.section-inner {
  padding: clamp(64px, 8vw, 108px) 0;
}

.section-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 42px;
}

.section-index {
  flex: 0 0 auto;
  color: var(--accent);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
  font-style: normal;
  line-height: 1;
  text-decoration: none;
}

.section-label {
  margin: 0;
  color: var(--fg);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .17em;
  text-transform: uppercase;
  white-space: nowrap;
}

.section-head::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--line-strong);
}

section[id] {
  scroll-margin-top: 24px;
}

/* LAYOUT PRIMITIVES */

.split {
  display: grid;
  gap: clamp(42px, 6vw, 82px);
  align-items: start;
}

.split--principle {
  grid-template-columns: minmax(0, 1fr) 430px;
  gap: clamp(42px, 5vw, 72px);
}

.split--sidebar {
  grid-template-columns: minmax(0, .78fr) minmax(260px, .42fr);
  gap: clamp(46px, 8vw, 110px);
}

.stack > * + * {
  margin-top: 26px;
}

/* PRINCIPLE BOX */

.principle-box {
  position: relative;
  padding: 28px;
  border: 1px solid var(--line-strong);
  background: var(--surface-soft);
}

.principle-box::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  width: 44px;
  height: 4px;
  background:
    linear-gradient(
      90deg,
      var(--accent-light),
      var(--accent-secondary)
    );
}

.principle-text {
  color: var(--fg);
  font-size: 32px;
  line-height: 1.4;
}

/* RULE GRID */

.rule-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.rule-item {
  min-height: 150px;
  padding: 26px 22px 28px;
}

.rule-item + .rule-item {
  border-left: 1px solid var(--line);
}

.rule-number {
  display: block;
  margin-bottom: 22px;
  color: var(--accent);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 23px;
}

.rule-item strong {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.48;
}

/* STATUS */

.status {
  padding-left: 28px;
  border-left: 1px solid var(--line-strong);
}

.status-row {
  padding: 0 0 22px;
  margin: 0 0 22px;
  border-bottom: 1px solid var(--line);
}

.status-row:last-child {
  margin-bottom: 0;
}

.status-label {
  display: block;
  margin-bottom: 6px;
  color: var(--soft);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.status-value {
  font-size: 15px;
  font-weight: 650;
  line-height: 1.45;
}

/* ACTIONS + LINKS */

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.btn {
  display: inline-flex;
  min-height: 46px;
  padding: 0 18px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--fg);
  background: transparent;
  color: var(--fg);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  transition:
    color 140ms ease,
    background 140ms ease,
    border-color 140ms ease;
}

.btn--primary {
  background: var(--fg);
  color: var(--bg);
}

.btn:hover,
.btn:focus-visible {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.text-link {
  display: inline-block;
  margin-top: 30px;
  padding-bottom: 3px;
  color: var(--accent);
  border-bottom: 1px solid currentColor;
  text-decoration: none;
  font-size: 14px;
  font-weight: 750;
}

.text-link:hover,
.text-link:focus-visible {
  color: var(--fg);
}


/* PUBLICATION LIST */

.publication-list {
  border-top: 1px solid var(--line-strong);
}

.publication-item {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr) auto;
  gap: 28px;
  align-items: start;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}

.publication-type {
  color: var(--soft);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.publication-title {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(24px, 2.5vw, 34px);
  font-weight: 400;
  line-height: 1.2;
}

.publication-copy {
  max-width: 700px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.publication-link {
  align-self: center;
  padding-bottom: 3px;
  color: var(--accent);
  border-bottom: 1px solid currentColor;
  text-decoration: none;
  font-size: 13px;
  font-weight: 750;
  white-space: nowrap;
}

.publication-link:hover,
.publication-link:focus-visible {
  color: var(--fg);
}

/* CONTACT */

.contact {
  background:
    linear-gradient(
      135deg,
      var(--contact-tint-a),
      var(--contact-tint-b)
    ),
    var(--surface);
}

.contact .body-copy {
  max-width: 650px;
  margin: 24px 0 0;
}

/* FOOTER */

.site-footer {
  border-top: 1px solid var(--line);
}

.footer-inner {
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--soft);
  font-size: 12px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.footer-links a {
  color: inherit;
  text-decoration: none;
}

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

/* TABLET */

@media (max-width: 900px) {
  .publication-item {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .publication-link {
    justify-self: start;
    margin-top: 4px;
  }

  .hero-grid,
  .split,
  .split--principle,
  .split--sidebar {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    min-height: auto;
  }

  .hero-copy {
    padding-right: 0;
  }

  .hero-media {
    min-height: 380px;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .hero-media::after {
    background:
      linear-gradient(
        180deg,
        var(--hero-fade-mobile),
        transparent 28%
      );
  }

  .status {
    padding: 28px 0 0;
    border-top: 1px solid var(--line-strong);
    border-left: 0;
  }

  .rule-grid {
    grid-template-columns: 1fr 1fr;
  }

  .rule-item:nth-child(odd) {
    border-left: 0;
  }

  .rule-item:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
}

/* MOBILE */

@media (max-width: 620px) {
  .shell {
    width: min(calc(100% - 28px), var(--max));
  }

  .header-inner {
    min-height: 66px;
  }

  .site-nav {
    gap: 14px;
  }

  .site-nav a {
    font-size: 13px;
  }

  .nav-optional {
    display: none;
  }

  .hero-copy {
    padding-top: 70px;
    padding-bottom: 64px;
  }

  .hero-media {
    min-height: 300px;
  }

  .section-inner {
    padding: 58px 0;
  }

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

  .section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 14px;
    right: 14px;
    height: 1px;
    background: var(--line-strong);
  }

  .principle-box {
    padding: 24px;
  }

  .principle-text {
    font-size: clamp(24px, 7vw, 34px);
    line-height: 1.38;
  }

  .rule-grid {
    grid-template-columns: 1fr;
  }

  .rule-item,
  .rule-item + .rule-item,
  .rule-item:nth-child(n + 3) {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .rule-item:first-child {
    border-top: 0;
  }

  .actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 26px 0;
  }
}

/* REDUCED MOTION */

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

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
