:root {
  --cream: #f4efe4;
  --paper: #fbf8f1;
  --denim: #233a50;
  --deep-navy: #172838;
  --charcoal: #2d2b28;
  --rust: #a55332;
  --gold: #b28a4a;
  --border: #d8ccb9;
  --ink-soft: #5b5349;
  --white-thread: #fff9ed;
  --shadow: 0 20px 50px rgba(23, 40, 56, 0.16);
  --max: 1160px;
  --serif: Georgia, "Times New Roman", Times, serif;
  --sans: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

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

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

body {
  margin: 0;
  color: var(--charcoal);
  background:
    radial-gradient(circle at 20% 8%, rgba(178, 138, 74, 0.12), transparent 26rem),
    linear-gradient(90deg, rgba(35, 58, 80, 0.035) 1px, transparent 1px),
    linear-gradient(var(--cream), var(--cream));
  background-size: auto, 28px 28px, auto;
  font-family: var(--sans);
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

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

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  transform: translateY(-180%);
  padding: 0.75rem 1rem;
  color: var(--paper);
  background: var(--deep-navy);
  border: 2px solid var(--gold);
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
}

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

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

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

.section-tight {
  padding: clamp(2rem, 5vw, 4rem) 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(251, 248, 241, 0.94);
  border-bottom: 1px solid rgba(216, 204, 185, 0.9);
  backdrop-filter: blur(14px);
}

.header-inner {
  width: min(calc(100% - 1.5rem), var(--max));
  min-height: 76px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--deep-navy);
  font-family: var(--serif);
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 700;
  line-height: 1.1;
  text-decoration: none;
}

.brand img {
  width: clamp(3.25rem, 8vw, 4.75rem);
  aspect-ratio: 64 / 47;
  height: auto;
  border: 1px solid var(--border);
  border-radius: 5px;
}

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.78rem 1rem;
  border: 2px solid transparent;
  border-radius: 6px;
  font-size: 0.96rem;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  transition: transform 160ms ease, background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

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

.button-small {
  flex: 0 0 auto;
  color: var(--paper);
  background: var(--denim);
  border-color: var(--deep-navy);
  box-shadow: 0 6px 0 rgba(23, 40, 56, 0.16);
}

.button-primary {
  color: var(--paper);
  background: var(--rust);
  border-color: #814125;
}

.button-secondary {
  color: var(--deep-navy);
  background: transparent;
  border-color: var(--denim);
}

.button-light {
  color: var(--deep-navy);
  background: var(--paper);
  border-color: var(--white-thread);
}

.hero {
  position: relative;
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
  background:
    linear-gradient(180deg, rgba(251, 248, 241, 0.9), rgba(244, 239, 228, 0.78)),
    repeating-linear-gradient(0deg, transparent 0 17px, rgba(45, 43, 40, 0.035) 18px 19px);
}

.hero-copy {
  position: relative;
  max-width: 900px;
}

.eyebrow,
.section-label,
.closing-mark,
.notice-kicker {
  margin: 0 0 0.85rem;
  color: var(--rust);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--deep-navy);
  font-family: var(--serif);
  line-height: 1.05;
}

h1 {
  max-width: 850px;
  font-size: clamp(2.65rem, 7vw, 5.85rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.35rem);
}

h3 {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
}

.hero-intro {
  max-width: 770px;
  margin: 1.35rem 0 0;
  color: var(--ink-soft);
  font-size: clamp(1.06rem, 2vw, 1.28rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.tag-detail {
  width: fit-content;
  max-width: min(100%, 26rem);
  margin: 2rem 0 0;
  padding: 0.52rem 0.85rem;
  color: var(--deep-navy);
  background: #efe3d0;
  border: 1px dashed var(--rust);
  border-radius: 4px;
  box-shadow: 5px 5px 0 rgba(35, 58, 80, 0.12);
  font-family: var(--serif);
  font-size: 0.95rem;
  transform: rotate(-1.2deg);
}

.faculty-photo-section {
  padding: 0 0 clamp(2rem, 4vw, 3rem);
}

.faculty-photo-frame {
  position: relative;
  margin: 0;
  padding: clamp(0.45rem, 1.5vw, 0.75rem);
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 6px;
  box-shadow: var(--shadow);
}

.faculty-photo-frame::before {
  content: "";
  position: absolute;
  inset: 0.45rem;
  pointer-events: none;
  border: 1px dashed rgba(165, 83, 50, 0.75);
  border-radius: 4px;
}

.faculty-photo-frame img {
  width: 100%;
  height: auto;
  border-radius: 3px;
}

.notice {
  position: relative;
  max-width: 880px;
  margin-inline: auto;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  background: var(--paper);
  border: 1px solid var(--border);
  border-left: 0.5rem solid var(--rust);
  border-radius: 6px;
  box-shadow: 0 12px 26px rgba(23, 40, 56, 0.1);
}

.notice p:last-child,
.section-copy p:last-child,
.paper-note p:last-child,
.faculty-card p:last-child,
.closing-panel p:last-of-type,
.footer-inner p {
  margin-bottom: 0;
}

.notice h2 {
  font-size: clamp(1.55rem, 3vw, 2.2rem);
}

.notice p {
  margin: 0.7rem 0 0;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(2rem, 6vw, 4rem);
  align-items: start;
}

.section-copy {
  max-width: 620px;
}

.section-copy.narrow {
  max-width: 760px;
  margin-bottom: clamp(1.75rem, 4vw, 2.5rem);
}

.section-copy p:not(.section-label) {
  color: var(--ink-soft);
  font-size: 1.06rem;
}

.note-grid {
  display: grid;
  gap: 1rem;
}

.paper-note,
.faculty-card {
  position: relative;
  padding: 1.15rem;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 6px;
  box-shadow: 8px 8px 0 rgba(35, 58, 80, 0.08);
}

.paper-note::before {
  content: "";
  position: absolute;
  top: -0.55rem;
  left: 1.25rem;
  width: 4.5rem;
  height: 1.05rem;
  background: rgba(216, 204, 185, 0.7);
  border: 1px solid rgba(178, 138, 74, 0.45);
  transform: rotate(-2deg);
}

.paper-note h3,
.faculty-card h3 {
  margin-bottom: 0.45rem;
  font-family: var(--sans);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
}

.paper-note p,
.faculty-card p {
  margin: 0;
  color: var(--ink-soft);
}

.faculty {
  background:
    linear-gradient(180deg, rgba(251, 248, 241, 0.62), rgba(244, 239, 228, 0.92)),
    repeating-linear-gradient(90deg, transparent 0 34px, rgba(35, 58, 80, 0.04) 35px 36px);
  border-block: 1px solid rgba(216, 204, 185, 0.8);
}

.faculty-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.faculty-card {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  border-top: 4px solid var(--denim);
}

.faculty-initials {
  width: 3rem;
  min-height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 0.35rem;
  color: var(--deep-navy);
  background: #eadbc3;
  border: 1px dashed var(--rust);
  border-radius: 3px;
  font-family: var(--serif);
  font-weight: 700;
}

.department {
  color: var(--rust) !important;
  font-weight: 900;
}

.dean-card {
  background: #f7f0df;
  border-top-color: var(--rust);
}

.learning-areas {
  background: var(--paper);
}

.subject-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.subject-tabs li {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 0.85rem;
  color: var(--deep-navy);
  background: var(--cream);
  border: 1px solid var(--border);
  border-bottom: 3px solid var(--gold);
  border-radius: 5px 5px 2px 2px;
  font-weight: 800;
}

.areas-note {
  max-width: 760px;
  margin: 1.5rem 0 0;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.closing {
  padding-top: clamp(2.5rem, 5vw, 4rem);
}

.closing-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(1.5rem, 5vw, 3rem);
  color: var(--paper);
  background:
    linear-gradient(135deg, rgba(165, 83, 50, 0.26), transparent 44%),
    var(--denim);
  border: 1px solid var(--deep-navy);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.closing-panel::before {
  content: "";
  position: absolute;
  inset: 0.65rem;
  pointer-events: none;
  border: 1px dashed rgba(255, 249, 237, 0.55);
  border-radius: 5px;
}

.closing-panel > * {
  position: relative;
}

.closing-panel h2 {
  max-width: 780px;
  color: var(--paper);
}

.closing-panel p {
  max-width: 660px;
  color: #f3ead7;
  font-size: 1.08rem;
}

.closing-panel .button {
  margin-top: 1rem;
}

.closing-mark {
  color: #f3d9a5;
}

.site-footer {
  padding: 2rem 0;
  color: var(--paper);
  background: var(--deep-navy);
}

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

.footer-title {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 700;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.75rem 1rem;
  color: #efe3d0;
}

.footer-links a {
  font-weight: 800;
}

@media (max-width: 980px) {
  .split {
    grid-template-columns: 1fr;
  }

  .faculty-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

  .header-inner {
    min-height: 68px;
    width: min(calc(100% - 1rem), var(--max));
  }

  .brand {
    gap: 0.55rem;
  }

  .brand span {
    max-width: 9.5rem;
  }

  .button-small {
    max-width: 8.75rem;
    padding-inline: 0.7rem;
    font-size: 0.86rem;
  }

  .hero {
    padding-top: 3.1rem;
  }

  .hero-actions,
  .hero-actions .button,
  .closing-panel .button {
    width: 100%;
  }

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

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 350px) {
  .brand span {
    max-width: 7.5rem;
    font-size: 0.93rem;
  }

  .button-small {
    max-width: 7.4rem;
    font-size: 0.78rem;
  }

  .faculty-card,
  .paper-note,
  .notice {
    padding: 1rem;
  }
}
