@font-face {
  font-family: "Austin Pen Web";
  src: url("./assets/fonts/Austin_Pen.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f7f3e8;
  --ink: #171717;
  --muted: #68635b;
  --line: #222;
  --sage: #c7d5c1;
  --blue: #b8d0dd;
  --rose: #e8c5b5;
  --gold: #d7b85b;
  --address-yellow: #f4ce94;
  --highlight-yellow: #e7b76b;
  --font-main: "DIN Alternate", "DINAlternate-Bold", "DIN Condensed", "Arial Narrow", Arial, sans-serif;
  --font-script: "Austin Pen Web", "Austin Pen", "AustinPen", "Snell Roundhand", "Brush Script MT", cursive;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-main);
  font-weight: 700;
  overflow-x: hidden;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  min-height: 74px;
  padding: 14px clamp(18px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
  background: rgba(247, 243, 232, 0.94);
  backdrop-filter: blur(10px);
}

.brand,
.site-nav,
.lang-toggle,
.institution,
.site-footer {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 9px;
}

.brand-logo {
  display: block;
  width: auto;
  height: 44px;
  aspect-ratio: 1;
  object-fit: contain;
  object-position: center;
}

.brand-title {
  display: block;
  width: auto;
  height: 18px;
  object-fit: contain;
  object-position: left center;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: clamp(12px, 2.2vw, 28px);
  color: #252525;
}

.lang-toggle {
  display: inline-flex;
  justify-self: end;
  gap: 0;
  padding: 0;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.lang-toggle span {
  padding: 9px 11px;
}

.lang-toggle span:first-child {
  border-right: 1px solid var(--line);
}

.lang-toggle span.is-active {
  background: var(--ink);
  color: var(--paper);
}

.hero {
  min-height: calc(100vh - 74px);
  padding: clamp(58px, 8vw, 112px) clamp(18px, 4vw, 48px) 42px;
  border-bottom: 1px solid var(--line);
}

.institution {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 26px;
}

.hero-grid {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}

.kicker {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  width: calc(100vw - clamp(36px, 8vw, 96px));
  max-width: none;
  margin-bottom: clamp(26px, 4vw, 52px);
}

.hero-title-img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: left center;
}

.lead-wrap {
  position: relative;
  width: 100%;
  margin: clamp(2px, 0.6vw, 8px) 0 0;
  padding: clamp(18px, 2.2vw, 30px) 0 clamp(14px, 1.7vw, 22px);
}

.lead-bg {
  position: absolute;
  inset: 0 auto auto 0;
  z-index: 0;
  width: 100%;
  margin: 0;
  color: rgba(23, 23, 23, 0.23);
  font-family: var(--font-script);
  font-size: clamp(27px, 4.2vw, 58px);
  font-weight: 400;
  line-height: 1.02;
  text-transform: none;
  transform: translateY(-2%);
  pointer-events: none;
  user-select: none;
}

.lead {
  width: 100%;
  max-width: none;
  position: relative;
  z-index: 1;
  margin: 0;
  font-family: var(--font-main);
  font-size: clamp(18px, 2.6vw, 34px);
  font-weight: 700;
  line-height: 1.16;
  text-transform: uppercase;
  overflow-wrap: normal;
  word-break: normal;
}

.lead span {
  background: #f4ce94;
}

.hero-figure {
  display: grid;
  align-items: start;
  justify-items: center;
  min-height: 0;
  padding-top: clamp(20px, 4vw, 52px);
}

.hero-figure img {
  display: block;
  width: min(100%, 1160px);
  height: auto;
  object-fit: contain;
}

.content-band {
  display: grid;
  grid-template-columns: minmax(260px, 0.52fr) minmax(320px, 1fr);
  gap: clamp(24px, 5vw, 72px);
  padding: clamp(54px, 9vw, 110px) clamp(18px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
}

.content-band.alt {
  background: #efeadb;
}

.section-heading p {
  margin-bottom: 12px;
  color: var(--muted);
  font-weight: 700;
}

h2 {
  max-width: 720px;
  font-family: var(--font-main);
  font-size: clamp(34px, 4.8vw, 72px);
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.section-body {
  max-width: 920px;
  font-size: clamp(18px, 2.1vw, 28px);
  line-height: 1.34;
}

.columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.columns article {
  display: flex;
  flex-direction: column;
  min-height: 220px;
  padding: 22px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.extra-copy[hidden] {
  display: none;
}

.extra-copy {
  font-family: Arial, sans-serif;
  font-size: clamp(15px, 1.45vw, 20px);
  font-weight: 400;
  line-height: 1.45;
}

.text-link,
.highlight-text {
  color: var(--highlight-yellow);
}

.text-link {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.14em;
}

.columns .extra-copy {
  font-size: 16px;
  line-height: 1.34;
}

.exchange-forum {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 6px;
  padding: 22px;
  border: 1px solid var(--line);
  background: #efeadb;
}

.exchange-forum[hidden] {
  display: none;
}

.exchange-forum h3 {
  margin-bottom: 0;
}

.forum-fields {
  display: grid;
  grid-template-columns: minmax(180px, 0.32fr) minmax(180px, 0.32fr) 1fr;
  gap: 14px;
}

.exchange-forum label,
.exchange-forum button,
.forum-reply {
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.exchange-forum label {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.exchange-forum input,
.exchange-forum textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 12px;
  background: var(--paper);
  color: var(--ink);
  font: 400 15px/1.4 Arial, sans-serif;
}

.exchange-forum input {
  min-height: 44px;
}

.exchange-forum textarea {
  min-height: 170px;
  resize: vertical;
}

.forum-privacy-note {
  max-width: 760px;
  margin: -4px 0 0;
  color: var(--muted);
  font: 400 13px/1.4 Arial, sans-serif;
  text-transform: none;
}

.exchange-forum button,
.forum-reply {
  align-self: flex-start;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
}

.exchange-forum button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.newsletter button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.newsletter-status {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font: 400 13px/1.4 Arial, sans-serif;
  text-transform: none;
}

.forum-reply {
  min-height: 34px;
  margin-top: 12px;
  padding: 0 12px;
  background: transparent;
  color: var(--ink);
}

.forum-posts {
  display: grid;
  gap: 12px;
  margin-top: 4px;
}

.forum-posts article,
.forum-empty {
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  background: var(--paper);
  font: 400 15px/1.42 Arial, sans-serif;
}

.forum-topic-title {
  margin-bottom: 12px !important;
  font-family: var(--font-main) !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  line-height: 1.1 !important;
  text-transform: uppercase;
}

.forum-thread {
  display: grid;
  gap: 10px;
}

.forum-replies {
  display: grid;
  gap: 8px;
}

.forum-reply-entry {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.forum-posts article p,
.forum-reply-entry p {
  margin-bottom: 0;
}

.forum-post-meta {
  margin-bottom: 6px !important;
  color: var(--muted);
  font-family: var(--font-main) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  text-transform: uppercase;
}

.expand-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  width: 34px;
  height: 34px;
  margin-top: 18px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 24px;
  line-height: 0;
  cursor: pointer;
}

.section-body > .expand-toggle {
  margin-top: 8px;
}

.columns article:nth-child(2) {
  background: #e8dfcf;
}

h3 {
  font-size: 18px;
  text-transform: uppercase;
}

.columns p {
  font-size: 16px;
}

.newsletter {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 560px);
  align-items: end;
  gap: 32px;
  padding: clamp(50px, 8vw, 90px) clamp(18px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
  background: var(--ink);
  color: var(--paper);
}

.newsletter form {
  display: flex;
  border: 1px solid var(--paper);
}

.newsletter input,
.newsletter button {
  min-height: 54px;
  border: 0;
  border-radius: 0;
  font: inherit;
}

.newsletter input {
  width: 100%;
  padding: 0 16px;
  background: transparent;
  color: var(--paper);
}

.newsletter button {
  padding: 0 18px;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 22px clamp(18px, 4vw, 48px);
}

.site-footer a {
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}

.site-address {
  padding: 14px clamp(18px, 4vw, 48px);
  background: var(--address-yellow);
  text-align: center;
  font-size: 13px;
  font-weight: 700;
}

@media (max-width: 880px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero-grid,
  .content-band,
  .newsletter {
    grid-template-columns: 1fr;
  }

  .hero-figure {
    min-height: 520px;
  }

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

  .forum-fields {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 540px) {
  .site-header {
    grid-template-columns: 1fr;
    gap: 24px;
    min-height: 0;
    padding: 22px 18px 28px;
  }

  .brand {
    justify-self: center;
    max-width: 100%;
  }

  .brand-logo {
    flex: 0 0 auto;
    height: 42px;
  }

  .brand-title {
    max-width: calc(100vw - 88px);
    height: 20px;
    object-fit: contain;
    object-position: left center;
  }

  .site-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 22px;
    width: 100%;
    overflow: visible;
    padding-bottom: 0;
    font-size: 14px;
    line-height: 1.15;
  }

  .site-nav a {
    min-width: 0;
  }

  .lang-toggle {
    justify-self: start;
    width: auto;
  }

  .lang-toggle span {
    min-width: 58px;
    padding: 12px 16px;
  }

  .lang-toggle span:last-child {
    text-align: left;
  }

  .hero {
    min-height: auto;
    padding: 56px 18px 36px;
  }

  .institution,
  .site-footer {
    flex-direction: column;
  }

  h1 {
    width: calc(100vw - 36px);
    margin-bottom: 30px;
  }

  .hero-title-img {
    width: 100%;
    max-width: 100%;
  }

  .lead-wrap {
    margin-top: 2px;
    padding: 14px 0 12px;
  }

  .lead-bg {
    font-size: clamp(22px, 6.9vw, 30px);
    line-height: 1.02;
    transform: translateY(-1%);
  }

  .lead {
    max-width: calc(100vw - 36px);
    font-size: clamp(13px, 4.05vw, 16px);
    line-height: 1.18;
    overflow-wrap: anywhere;
    word-break: normal;
  }

  .hero-figure {
    min-height: 420px;
    padding-top: 24px;
  }

  .hero-figure img {
    width: min(100%, 760px);
  }

  .newsletter form {
    flex-direction: column;
  }
}
