@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts/dm-sans-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("assets/fonts/newsreader-latin.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --paper: #f6f3ed;
  --ink: #302c2b;
  --muted: #766f69;
  --wine: #870d30;
  --gold: #aa8751;
  --line: #e3dcd1;
  font-family: "DM Sans", sans-serif;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }

body {
  min-width: 280px;
  margin: 0;
  position: relative;
  isolation: isolate;
  background: radial-gradient(ellipse at 50% 30%, #fffaf2 0, transparent 65%);
}

body::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--wine) 0 48%, var(--gold) 48% 52%, var(--wine) 52% 100%);
}

.page {
  width: min(100% - 96px, 1120px);
  min-height: 100vh;
  min-height: 100svh;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
}

.masthead {
  min-height: 106px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .015em;
}

.calendar-mark { width: 30px; height: 30px; color: var(--wine); }
.masthead-domain { font-size: 12px; letter-spacing: .035em; color: var(--muted); }

main {
  width: min(100%, 904px);
  flex: 1;
  margin-inline: auto;
  padding: 65px 0 54px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.intro { text-align: center; margin-bottom: 43px; }

.eyebrow {
  margin: 0 0 21px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--wine);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.eyebrow span { width: 25px; height: 1px; background: #c8b293; }

h1, h2 { font-family: "Newsreader", Georgia, serif; font-weight: 400; }
h1 { margin: 0; font-size: clamp(64px, 7.5vw, 92px); line-height: 1.08; letter-spacing: -.055em; }
.heading-dot { color: var(--wine); }
.intro-description { margin: 14px 0 0; color: var(--muted); font-size: 16px; line-height: 1.6; }

.school-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }

.school-card {
  display: flex;
  flex-direction: column;
  padding: 30px 32px 26px;
  position: relative;
  overflow: hidden;
  color: var(--ink);
  text-decoration: none;
  border: 1px solid #ded6cb;
  border-radius: 15px;
  background: #fffdfa;
  box-shadow: 0 4px 6px -5px #42312012, 0 14px 32px -20px #42312025;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
  -webkit-tap-highlight-color: #870d3015;
}

.school-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--wine);
}

.school-card-pmk::before { background: var(--gold); }
.card-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 22px; }
.crest-wrap { display: flex; align-items: center; justify-content: center; width: 76px; height: 90px; }
.school-crest { display: block; width: 76px; height: 90px; }

.school-abbreviation {
  margin-top: 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 5px 9px;
  font-size: 10px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--muted);
}

.school-info { flex: 1; }
h2 { margin: 0; font-size: clamp(29px, 3vw, 36px); line-height: 1.1; letter-spacing: -.03em; }
.school-address { margin: 13px 0 28px; font-size: 12px; letter-spacing: .025em; color: var(--muted); }

.card-action {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 18px;
  border: 1px solid var(--wine);
  border-radius: 8px;
  background: var(--wine);
  color: #fffdfa;
  font-size: 14px;
  font-weight: 500;
  transition: background 220ms ease, color 220ms ease;
}

.school-card-pmk .card-action { background: #faf4e9; color: #704e20; border-color: #e5d5bc; }
.action-arrow { display: flex; transition: transform 220ms ease; }
.action-arrow svg { width: 22px; height: 22px; }

.school-card:focus-visible { outline: 3px solid var(--wine); outline-offset: 5px; }
.school-card:active { transform: translateY(-1px); }

@media (hover: hover) {
  .school-card:hover { transform: translateY(-5px); border-color: #c6ad98; box-shadow: 0 12px 35px -15px #56352335; }
  .school-card:hover .action-arrow { transform: translateX(4px); }
  .school-card-vhk:hover .card-action { background: #6c0926; }
  .school-card-pmk:hover .card-action { background: #f1e6d4; }
}

.day-wish { display: flex; align-items: center; justify-content: center; gap: 9px; margin: 30px 0 0; font-size: 12px; color: var(--muted); }
.day-wish svg { width: 19px; height: 19px; color: var(--gold); }

.footer {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .025em;
}

.footer-divider { color: var(--gold); }
.skyline { position: absolute; z-index: -1; inset: auto 0 0; width: 100%; height: 230px; object-fit: cover; object-position: center bottom; opacity: .11; pointer-events: none; }

@media (min-width: 1600px) { main { flex-grow: 0; margin-block: auto; } }

@media (min-width: 701px) and (max-height: 850px) {
  .masthead { min-height: 80px; }
  main { padding: 32px 0; }
  .intro { margin-bottom: 30px; }
  .eyebrow { margin-bottom: 16px; }
  h1 { font-size: 76px; }
  .intro-description { margin-top: 10px; }
  .school-card { padding: 26px 30px 22px; }
  .card-top { margin-bottom: 18px; }
  .school-crest, .crest-wrap { width: 64px; height: 76px; }
  h2 { font-size: clamp(28px, 3vw, 32px); }
  .school-address { margin: 12px 0 23px; }
  .card-action { min-height: 50px; }
  .day-wish { margin-top: 26px; }
  .footer { min-height: 64px; }
}

@media (max-width: 700px) {
  .page { width: calc(100% - 40px); }
  .masthead { min-height: 78px; }
  .wordmark { gap: 8px; font-size: 12px; }
  .calendar-mark { width: 25px; height: 25px; }
  .masthead-domain { font-size: 10px; letter-spacing: 0; }
  main { padding: 40px 0 34px; }
  .intro { margin-bottom: 29px; }
  .eyebrow { font-size: 9px; letter-spacing: .13em; gap: 10px; margin-bottom: 17px; }
  .eyebrow span { width: 17px; }
  h1 { font-size: clamp(58px, 12vw, 76px); }
  .intro-description { font-size: 14px; margin-top: 8px; }
  .school-options { gap: 17px; }
  .school-card { padding: 23px 23px 21px; }
  .card-top { margin-bottom: 17px; }
  .school-crest, .crest-wrap { width: 60px; height: 71px; }
  h2 { font-size: 28px; }
  .school-address { margin: 11px 0 21px; font-size: 11px; }
  .card-action { padding: 0 14px; font-size: 13px; }
  .footer { min-height: 65px; font-size: 9px; gap: 8px; }
}

@media (max-width: 620px) {
  .school-options { grid-template-columns: 1fr; }
  .school-card { display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 0 20px; padding: 22px; }
  .card-top { align-items: center; margin: 0; }
  .school-abbreviation { display: none; }
  .school-info { align-self: center; }
  h2 { font-size: clamp(24px, 6.1vw, 31px); }
  .school-address { margin: 9px 0 0; font-size: 10px; }
  .card-action { grid-column: 1 / -1; margin-top: 21px; min-height: 48px; }
  .day-wish { margin-top: 25px; }
  .footer { flex-wrap: wrap; align-content: center; row-gap: 5px; padding-block: 18px; }
}

@media (max-width: 360px) {
  .masthead-domain { display: none; }
  .school-card { padding: 19px 17px; grid-template-columns: 51px minmax(0, 1fr); column-gap: 14px; }
  .school-crest, .crest-wrap { width: 51px; height: 61px; }
  h2 { font-size: 24px; }
  .footer { flex-direction: column; gap: 4px; }
  .footer-divider { display: none; }
}

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