:root {
  --paper: #f4f0e5;
  --surface: #fffdf7;
  --ink: #17231e;
  --muted: #647068;
  --forest: #173a31;
  --forest-light: #235545;
  --gold: #bd8f42;
  --line: #d7d0c0;
  --shadow: 0 18px 48px rgba(23, 58, 49, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(23, 58, 49, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 58, 49, 0.035) 1px, transparent 1px),
    var(--paper);
  background-size: 32px 32px;
  font-family: Georgia, 'Times New Roman', serif;
}

a {
  color: inherit;
}

.site-header,
main,
footer {
  width: min(1120px, calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 96px;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 10px;
  color: var(--forest);
  text-decoration: none;
}

.wordmark-mark {
  display: grid;
  width: 35px;
  height: 35px;
  place-items: center;
  color: var(--surface);
  background: var(--forest);
  border-radius: 50%;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 22px;
}

.wordmark strong,
.wordmark small {
  display: block;
  line-height: 1;
}

.wordmark strong {
  font-size: 18px;
}

.wordmark small,
.product-label,
.site-header nav,
.eyebrow,
.term-card p,
.term-card span,
.portal-status,
footer,
.search-form label,
.search-form input,
.search-form button {
  font-family: 'Avenir Next', Avenir, 'Trebuchet MS', sans-serif;
}

.wordmark small {
  margin-top: 3px;
  font-size: 9px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.product-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.site-header nav {
  display: flex;
  justify-content: flex-end;
  gap: 24px;
  font-size: 13px;
}

.site-header nav a {
  color: var(--muted);
  text-decoration: none;
}

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

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 56px;
  align-items: end;
  padding: 104px 0 72px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--forest-light);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

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

h1 {
  max-width: 720px;
  margin-bottom: 22px;
  color: var(--forest);
  font-size: 72px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 0.96;
}

.lede {
  max-width: 550px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.term-card {
  padding: 24px;
  color: var(--surface);
  background: var(--forest);
  box-shadow: var(--shadow);
}

.term-card p {
  margin-bottom: 20px;
  color: #d6e0d9;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.term-card strong,
.term-card span {
  display: block;
}

.term-card strong {
  margin-bottom: 8px;
  font-size: 25px;
  font-weight: 400;
}

.term-card span {
  color: #d6e0d9;
  font-size: 12px;
}

.directory-section {
  padding: 44px;
  background: var(--surface);
  border-top: 4px solid var(--gold);
  box-shadow: var(--shadow);
}

.section-heading {
  max-width: 600px;
}

h2 {
  margin-bottom: 10px;
  color: var(--forest);
  font-size: 35px;
  font-weight: 400;
}

.section-heading > p:last-child {
  margin-bottom: 30px;
  color: var(--muted);
  line-height: 1.55;
}

.search-form label {
  display: block;
  margin-bottom: 9px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.search-control {
  display: flex;
  gap: 10px;
}

.search-form input {
  min-width: 0;
  flex: 1;
  padding: 15px 16px;
  color: var(--ink);
  background: #fffefa;
  border: 1px solid #b9b2a2;
  border-radius: 0;
  font-size: 16px;
}

.search-form input:focus {
  outline: 3px solid rgba(189, 143, 66, 0.35);
  border-color: var(--gold);
}

.search-form button {
  padding: 0 22px;
  color: var(--surface);
  background: var(--forest);
  border: 0;
  border-radius: 0;
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
}

.search-form button:hover {
  background: var(--forest-light);
}

.portal-status {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 56px 0;
}

.portal-status > div {
  display: grid;
  gap: 8px;
  padding-left: 18px;
  border-left: 2px solid var(--gold);
}

.status-value {
  color: var(--forest);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 30px;
}

.status-label {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.search-page {
  padding: 72px 0;
}

.search-panel,
.search-results {
  padding: 40px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.search-panel {
  border-top: 4px solid var(--gold);
}

.search-panel h1 {
  margin-bottom: 30px;
  font-size: 52px;
}

.search-results {
  margin-top: 24px;
}

.search-results > p {
  color: var(--muted);
  line-height: 1.55;
}

.results-list {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.search-result {
  display: grid;
  gap: 5px;
  padding: 20px 22px;
  color: var(--ink);
  border: 1px solid var(--line);
}

.search-result strong {
  color: var(--forest);
  font-size: 20px;
  font-weight: 400;
}

.search-result span {
  color: var(--muted);
  font-family: 'Avenir Next', Avenir, 'Trebuchet MS', sans-serif;
  font-size: 13px;
}

.search-result .record-reference {
  margin-top: 6px;
  color: var(--forest);
  font-weight: 800;
}

.record-page {
  padding: 72px 0;
}

.record-heading,
.record-details,
.not-found {
  padding: 40px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.record-heading {
  border-top: 4px solid var(--gold);
}

.record-label,
.student-number,
.student-details dt,
.student-details dd,
.feedback h3,
.feedback p,
.return-link {
  font-family: 'Avenir Next', Avenir, 'Trebuchet MS', sans-serif;
}

.record-label {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 14px;
}

.record-heading h1,
.not-found h1 {
  margin-bottom: 12px;
  font-size: 52px;
}

.student-number {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.record-heading .record-reference {
  margin: 8px 0 0;
  color: var(--forest);
  font-family: 'Avenir Next', Avenir, 'Trebuchet MS', sans-serif;
  font-size: 13px;
  font-weight: 800;
}

.record-details {
  display: grid;
  grid-template-columns: minmax(180px, 0.6fr) minmax(0, 1.4fr);
  gap: 48px;
  margin-top: 24px;
}

.student-details {
  display: grid;
  align-content: start;
  gap: 24px;
  margin: 0;
}

.student-details div {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.student-details dt {
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.student-details dd {
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
}

.course-record {
  min-width: 0;
}

.course-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.course-heading h2 {
  margin-bottom: 0;
  font-size: 30px;
  line-height: 1.15;
}

.grade {
  display: grid;
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  place-items: center;
  color: var(--surface);
  background: var(--forest);
  font-size: 28px;
}

.feedback {
  padding-top: 28px;
}

.feedback h3 {
  margin: 0 0 10px;
  color: var(--forest);
  font-size: 13px;
  text-transform: uppercase;
}

.feedback p,
.not-found > p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.6;
}

.not-found {
  border-top: 4px solid var(--gold);
}

.return-link {
  display: inline-block;
  margin-top: 28px;
  color: var(--forest);
  font-weight: 800;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 0 30px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 11px;
}

@media (max-width: 700px) {
  .site-header,
  main,
  footer {
    width: min(100% - 32px, 1120px);
  }

  .site-header {
    grid-template-columns: 1fr auto;
    min-height: 80px;
  }

  .product-label {
    display: none;
  }

  .site-header nav {
    gap: 14px;
    font-size: 12px;
  }

  .intro {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 66px 0 48px;
  }

  h1 {
    font-size: 48px;
  }

  .term-card {
    max-width: none;
  }

  .directory-section {
    margin-inline: -16px;
    padding: 28px 16px;
  }

  .search-page {
    padding: 40px 0;
  }

  .search-panel,
  .search-results {
    padding: 28px 16px;
  }

  .search-panel h1 {
    font-size: 42px;
  }

  .record-page {
    padding: 40px 0;
  }

  .record-heading,
  .record-details,
  .not-found {
    padding: 28px 16px;
  }

  .record-heading h1,
  .not-found h1 {
    font-size: 42px;
  }

  .record-details {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .course-heading {
    align-items: flex-start;
  }

  .search-control {
    flex-direction: column;
  }

  .search-form button {
    min-height: 52px;
  }

  .portal-status {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 42px 0;
  }

  footer {
    flex-wrap: wrap;
  }
}