:root {
  --bg: #f3f4f3;
  --bg-deep: #e8ebe8;
  --surface: #ffffff;
  --ink: #1f2622;
  --ink-soft: #4a534d;
  --muted: #6d756f;
  --line: #d5dad5;
  --accent: #3d5348;
  --accent-deep: #2c3c34;
  --accent-soft: #c5d0c8;
  --highlight: #8b7355;
  --success: #2f5d45;
  --error: #8a3b32;
  --shadow: 0 18px 40px rgba(31, 38, 34, 0.08);
  --radius: 4px;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Karla", Helvetica, Arial, sans-serif;
  --shell: min(1120px, calc(100% - 2.5rem));
  --header-h: 4.5rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(197, 208, 200, 0.45), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(139, 115, 85, 0.08), transparent 45%),
    linear-gradient(180deg, #f7f8f7 0%, var(--bg) 28%, #eef0ee 100%);
  min-height: 100vh;
}

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

a {
  color: var(--accent-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 0.6em;
}

h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

h3 {
  font-size: clamp(1.35rem, 2vw, 1.7rem);
}

p {
  margin: 0 0 1rem;
}

ul {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 1000;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(243, 244, 243, 0.92);
  border-bottom: 1px solid rgba(213, 218, 213, 0.8);
}

.header-inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
  max-width: min(100%, 18rem);
}

.brand-mark {
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 0.35rem;
  background:
    linear-gradient(145deg, var(--accent) 0%, var(--accent-deep) 100%);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.12);
  flex-shrink: 0;
}

.brand-text {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.2;
}

.site-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.2rem 1.1rem;
  margin: 0;
  padding: 0;
}

.site-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 0.95rem;
}

.site-nav a:hover {
  color: var(--ink);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 0.95rem;
  border-radius: var(--radius);
  background: var(--accent);
  color: #fff !important;
}

.nav-cta:hover {
  background: var(--accent-deep);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 0.45rem 0.7rem;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font: inherit;
  color: var(--ink);
}

.nav-toggle-bars {
  width: 1.1rem;
  height: 0.85rem;
  background:
    linear-gradient(var(--ink), var(--ink)) 0 0 / 100% 2px no-repeat,
    linear-gradient(var(--ink), var(--ink)) 0 50% / 100% 2px no-repeat,
    linear-gradient(var(--ink), var(--ink)) 0 100% / 100% 2px no-repeat;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.8rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-deep);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent-deep);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.section {
  padding: 4.5rem 0;
}

.section-tight {
  padding: 3rem 0;
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2rem;
}

.section-head p {
  color: var(--ink-soft);
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--highlight);
  font-weight: 600;
  margin-bottom: 0.8rem;
}

.lede {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 38rem;
}

.hero-home {
  position: relative;
  min-height: min(88vh, 760px);
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #f7f8f7;
}

.hero-home-media {
  position: absolute;
  inset: 0;
}

.hero-home-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: heroRise 1.2s ease-out both;
}

.hero-home-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(20, 28, 24, 0.78) 0%, rgba(20, 28, 24, 0.45) 48%, rgba(20, 28, 24, 0.2) 100%),
    linear-gradient(0deg, rgba(20, 28, 24, 0.55) 0%, transparent 45%);
}

.hero-home-content {
  position: relative;
  z-index: 1;
  padding: 5rem 0 4rem;
  max-width: 36rem;
  animation: fadeUp 0.9s ease 0.15s both;
}

.hero-home h1 {
  color: #fff;
  margin-bottom: 0.8rem;
}

.hero-home .lede {
  color: rgba(247, 248, 247, 0.88);
}

.hero-page {
  padding: 3.5rem 0 2rem;
}

.hero-page-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: end;
}

.hero-page-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  animation: fadeUp 0.8s ease both;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem;
}

.offer-strip {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: center;
}

.offer-strip img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  border-radius: var(--radius);
}

.course-list {
  display: grid;
  gap: 1.25rem;
}

.course-row {
  display: grid;
  grid-template-columns: 180px 1fr auto;
  gap: 1.25rem;
  align-items: center;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.course-row:hover {
  border-color: var(--accent-soft);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.course-row img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: calc(var(--radius) - 1px);
}

.course-row h3 {
  margin-bottom: 0.35rem;
}

.course-row p {
  margin: 0;
  color: var(--ink-soft);
}

.course-meta {
  font-size: 0.9rem;
  color: var(--muted);
  white-space: nowrap;
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.course-tile {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.course-tile:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.course-tile img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.course-tile-body {
  padding: 1.15rem 1.2rem 1.35rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.course-tile-body p {
  color: var(--ink-soft);
  flex: 1;
}

.quote-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.25rem;
}

.quote {
  background: var(--surface);
  border-left: 3px solid var(--accent);
  padding: 1.4rem 1.5rem;
}

.quote p {
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1.35;
  margin-bottom: 1rem;
}

.quote footer {
  color: var(--muted);
  font-size: 0.92rem;
}

.journal-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.journal-card {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1rem;
  text-decoration: none;
  color: inherit;
  padding: 0.85rem;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.journal-card img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  border-radius: calc(var(--radius) - 1px);
}

.journal-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.35rem;
}

.journal-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.prose {
  max-width: 42rem;
}

.prose h2 {
  margin-top: 2rem;
}

.detail-layout {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 2rem;
  align-items: start;
}

.detail-hero img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
  margin: 1.5rem 0;
}

.side-panel {
  position: sticky;
  top: calc(var(--header-h) + 1rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem;
}

.side-panel dl {
  margin: 0 0 1.2rem;
}

.side-panel dt {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-top: 0.85rem;
}

.side-panel dd {
  margin: 0.2rem 0 0;
}

.fee-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--line);
}

.fee-table th,
.fee-table td {
  text-align: left;
  padding: 0.95rem 1rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.fee-table th {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
}

.fee-note {
  color: var(--ink-soft);
  margin-top: 1rem;
}

.story-block {
  margin-top: 2rem;
  padding: 1.6rem;
  background: var(--bg-deep);
  border-radius: var(--radius);
}

.campus-gallery {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1rem;
}

.campus-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  min-height: 220px;
}

.campus-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.feature {
  padding: 1.25rem;
  background: var(--surface);
  border-top: 3px solid var(--accent);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 2rem;
}

.field {
  margin-bottom: 1rem;
}

.field label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font: inherit;
  background: #fff;
  color: var(--ink);
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.field-error {
  min-height: 1.2em;
  color: var(--error);
  font-size: 0.9rem;
  margin-top: 0.25rem;
}

.form-status {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
}

.form-status-success {
  background: rgba(47, 93, 69, 0.12);
  color: var(--success);
}

.form-status-error {
  background: rgba(138, 59, 50, 0.1);
  color: var(--error);
}

.legal {
  max-width: 46rem;
}

.legal h2 {
  margin-top: 2rem;
}

.cookie-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  margin: 1rem 0 1.5rem;
}

.cookie-table th,
.cookie-table td {
  border: 1px solid var(--line);
  padding: 0.7rem 0.8rem;
  text-align: left;
  vertical-align: top;
  background: var(--surface);
}

.site-footer {
  margin-top: 3rem;
  padding: 3rem 0 1.5rem;
  background: #1f2622;
  color: rgba(247, 248, 247, 0.86);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 1.5rem;
}

.footer-name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: #fff;
  margin-bottom: 0.5rem;
}

.footer-label {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-soft);
  margin-bottom: 0.6rem;
}

.footer-address,
.footer-tag {
  color: rgba(247, 248, 247, 0.78);
}

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

.site-footer a:hover {
  text-decoration: underline;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.4rem;
}

.footer-base {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.9rem;
  color: rgba(247, 248, 247, 0.6);
}

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
  background: rgba(31, 38, 34, 0.96);
  color: #f7f8f7;
  padding: 1rem 0;
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.18);
  animation: fadeUp 0.4s ease both;
}

.cookie-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cookie-inner p {
  margin: 0;
  max-width: 48rem;
}

.cookie-inner a {
  color: var(--accent-soft);
}

.cookie-actions {
  display: flex;
  gap: 0.6rem;
  flex-shrink: 0;
}

.cookie-banner .btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

.cookie-banner .btn-primary {
  background: var(--accent-soft);
  color: var(--accent-deep);
}

.page-404 {
  min-height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 4rem 1rem;
}

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

.split-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroRise {
  from {
    transform: scale(1.06);
    opacity: 0.7;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

@media (max-width: 920px) {
  .hero-page-grid,
  .offer-strip,
  .quote-grid,
  .detail-layout,
  .contact-grid,
  .campus-gallery,
  .footer-grid,
  .course-grid,
  .campus-features,
  .split-list,
  .journal-grid {
    grid-template-columns: 1fr;
  }

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

  .course-meta {
    white-space: normal;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: rgba(247, 248, 247, 0.98);
    border-bottom: 1px solid var(--line);
    display: none;
    padding: 0.75rem 1.25rem 1.25rem;
  }

  .site-nav.is-open {
    display: block;
    animation: fadeUp 0.25s ease both;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: flex-start;
  }

  .cookie-inner {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
