@font-face {
  font-family: "Be Vietnam Pro";
  src: url("./fonts/BeVietnamPro-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Be Vietnam Pro";
  src: url("./fonts/BeVietnamPro-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Be Vietnam Pro";
  src: url("./fonts/BeVietnamPro-ExtraBold.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Lora";
  src: url("./fonts/Lora-Variable.ttf") format("truetype");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f4efe5;
  --paper-light: #fbf8f1;
  --ink: #172321;
  --muted: #5f6b67;
  --accent: #d85e3d;
  --accent-dark: #a93d24;
  --teal: #285964;
  --line: #d9d0c1;
  --white: #fffdf8;
  --shadow: 0 18px 50px rgba(31, 42, 38, 0.09);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper-light);
  font-family: "Be Vietnam Pro", sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

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

h1,
h2,
h3,
p {
  overflow-wrap: normal;
  word-break: normal;
}

h1,
h2 {
  font-family: "Lora", serif;
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1.16;
  text-wrap: balance;
}

h3 {
  line-height: 1.3;
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

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

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

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

.site-header {
  position: relative;
  z-index: 10;
  border-bottom: 1px solid rgba(23, 35, 33, 0.1);
  background: rgba(251, 248, 241, 0.96);
}

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

.brand {
  flex: none;
  font-family: "Lora", serif;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.brand span {
  color: var(--accent);
}

.header-inner nav {
  min-width: 0;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list a {
  position: relative;
  display: block;
  padding: 0.55rem 0.65rem;
  border-radius: 999px;
  color: #43504d;
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.nav-list a:hover {
  color: var(--teal);
  background: rgba(40, 89, 100, 0.08);
}

.nav-list a[aria-current="page"] {
  color: white;
  background: var(--teal);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1rem;
  color: var(--accent-dark);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 1.6rem;
  height: 2px;
  background: currentColor;
  content: "";
}

.section {
  padding: clamp(4rem, 8vw, 6.5rem) 0;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.7rem 1.1rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
}

.button-primary {
  color: white;
  border-color: var(--ink);
  background: var(--ink);
}

.button-primary:hover {
  border-color: var(--accent-dark);
  background: var(--accent-dark);
}

.button-secondary {
  background: transparent;
}

.button-secondary:hover {
  color: var(--teal);
  border-color: var(--teal);
  background: var(--white);
}

.scroll-link span,
.page-link span {
  font-size: 1.05rem;
}

.page-hero {
  padding: clamp(4.5rem, 9vw, 7rem) 0 clamp(3.5rem, 7vw, 5.5rem);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 88% 20%, rgba(154, 173, 145, 0.2), transparent 23rem),
    var(--paper-light);
}

.page-hero h1 {
  max-width: 17ch;
  margin: 0;
  font-size: clamp(2.45rem, 6vw, 4.6rem);
}

.page-hero p:last-child {
  max-width: 68ch;
  margin: 1.25rem 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.article-layout,
.contact-layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(2rem, 7vw, 5.5rem);
}

.article-aside,
.contact-note {
  align-self: start;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.article-aside p,
.contact-note li,
.contact-panel > p {
  color: var(--muted);
}

.article-aside p:last-child {
  margin-bottom: 0;
}

.prose {
  max-width: 720px;
}

.prose h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.8rem, 4vw, 2.65rem);
}

.prose h2:not(:first-child) {
  margin-top: 2.75rem;
}

.prose li + li {
  margin-top: 0.6rem;
}

.prose .button {
  margin-top: 1.25rem;
}

.cooperation-summary {
  color: white;
  background: var(--teal);
}

.cooperation-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  align-items: center;
  gap: clamp(2rem, 7vw, 6rem);
}

.cooperation-panel h2 {
  max-width: 18ch;
  margin: 0;
  font-size: clamp(2.1rem, 4.5vw, 3.7rem);
}

.cooperation-panel .eyebrow {
  color: #f3c0af;
}

.cooperation-panel p {
  max-width: 62ch;
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
}

.cooperation-panel .button-primary {
  color: var(--ink);
  border-color: white;
  background: white;
}

.cooperation-panel .button-secondary {
  color: white;
  border-color: rgba(255, 255, 255, 0.68);
}

.contact-layout {
  grid-template-columns: minmax(0, 1.25fr) minmax(240px, 0.75fr);
}

.contact-panel {
  padding: clamp(1.6rem, 5vw, 3rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.contact-address {
  display: block;
  width: fit-content;
  margin-bottom: 1rem;
  color: var(--teal);
  font-family: "Lora", serif;
  font-size: clamp(1.35rem, 4vw, 2.25rem);
  font-weight: 650;
  line-height: 1.3;
  overflow-wrap: anywhere;
  text-underline-offset: 0.25rem;
}

.contact-note ul {
  margin-bottom: 0;
  padding-left: 1.2rem;
}

.simple-page main {
  min-height: 62vh;
}

.content-page {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(230px, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(2rem, 7vw, 5rem);
}

.update-box {
  align-self: start;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.update-box p:last-child {
  margin-bottom: 0;
}

.content-copy h2 {
  margin-top: 0;
  font-size: clamp(1.8rem, 4vw, 2.7rem);
}

.content-copy h3 {
  margin-top: 2rem;
}

.content-copy li + li {
  margin-top: 0.55rem;
}

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

.footer-main {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding-block: 2.75rem;
}

.footer-main p {
  max-width: 42ch;
  margin: 0.65rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(150px, 1fr));
  gap: 0.55rem 1.5rem;
}

.footer-links a,
.footer-bottom a {
  color: var(--muted);
  font-size: 0.86rem;
  text-underline-offset: 0.2rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.84rem;
}

@media (max-width: 860px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    padding-block: 1rem;
  }

  .header-inner nav,
  .nav-list {
    width: 100%;
  }

  .nav-list {
    justify-content: flex-start;
  }

  .article-layout,
  .contact-layout,
  .cooperation-panel,
  .content-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 1.25rem, 1120px);
  }

  .nav-list a {
    padding: 0.48rem 0.56rem;
    font-size: 0.78rem;
  }

  .button-row,
  .button {
    width: 100%;
  }

  .footer-main,
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

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

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
