:root {
  --ink: #172126;
  --muted: #5b686e;
  --accent: #0f596b;
  --accent-dark: #0a3d49;
  --paper: #ffffff;
  --wash: #f3f7f8;
  --line: #d8e1e4;
  --max: 1120px;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.68;
  text-rendering: optimizeLegibility;
}
a { color: var(--accent); text-decoration-thickness: .08em; text-underline-offset: .16em; }
a:hover { color: var(--accent-dark); }
img { max-width: 100%; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  max-width: var(--max);
  margin: 0 auto;
  min-height: 68px;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.18rem;
  color: var(--ink);
  text-decoration: none;
}
.nav-links { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: .94rem; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--accent); }

main { min-height: calc(100vh - 180px); }
.container { max-width: var(--max); margin: 0 auto; padding: 0 28px; }
.hero {
  padding: 90px 0 76px;
  background: linear-gradient(135deg, #ffffff 0%, #f4f8f9 100%);
  border-bottom: 1px solid var(--line);
}
.hero-grid {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 54px;
  align-items: center;
}
.portrait-wrap {
  width: 190px;
  aspect-ratio: 4/5;
  overflow: hidden;
  border-radius: 4px;
  box-shadow: 0 18px 45px rgba(20,45,54,.16);
  background: var(--wash);
}
.portrait {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 38%;
}
.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: .78rem;
}
h1, h2, h3 { font-family: var(--serif); line-height: 1.18; }
h1 { margin: 0 0 12px; font-size: clamp(2.7rem, 6vw, 4.7rem); letter-spacing: -.025em; }
h2 { margin: 0 0 20px; font-size: clamp(1.9rem, 4vw, 2.65rem); }
h3 { margin: 0 0 10px; font-size: 1.35rem; }
.position { margin: 0 0 20px; color: var(--muted); font-size: 1.12rem; }
.summary { max-width: 760px; font-size: 1.08rem; }
.fields { color: var(--muted); }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 17px;
  border: 1px solid var(--accent);
  border-radius: 3px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
  font-size: .94rem;
}
.button.primary { background: var(--accent); color: white; }
.button:hover { transform: translateY(-1px); }

.section { padding: 68px 0; }
.section.alt { background: var(--wash); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-heading { max-width: 780px; margin-bottom: 30px; }
.section-heading p { color: var(--muted); margin-bottom: 0; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.card {
  background: white;
  border: 1px solid var(--line);
  padding: 26px;
  border-radius: 4px;
}
.card p:last-child { margin-bottom: 0; }
.meta { color: var(--accent); font-weight: 700; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; }
.paper { padding: 28px 0; border-top: 1px solid var(--line); }
.paper:first-of-type { border-top: 0; padding-top: 0; }
.paper-title { font-size: 1.45rem; margin-bottom: 5px; }
.paper-status { color: var(--muted); font-size: .91rem; margin: 0 0 12px; }
.paper-links { display: flex; gap: 18px; flex-wrap: wrap; font-weight: 700; font-size: .92rem; }
.page-header { padding: 64px 0 42px; border-bottom: 1px solid var(--line); background: var(--wash); }
.page-header p { max-width: 760px; color: var(--muted); font-size: 1.05rem; }
.list-clean { padding: 0; margin: 0; list-style: none; }
.list-clean li { padding: 18px 0; border-top: 1px solid var(--line); }
.list-clean li:first-child { border-top: 0; }
.course-title { display: flex; justify-content: space-between; gap: 24px; font-weight: 700; }
.course-title span:last-child { color: var(--muted); font-weight: 500; text-align: right; }
.pdf-frame { width: 100%; height: 78vh; border: 1px solid var(--line); background: white; }
.notice { padding: 16px 18px; background: #eef6f8; border-left: 4px solid var(--accent); }

.site-footer { border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); font-size: .9rem; }
.footer-row { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }

@media (max-width: 760px) {
  .nav { min-height: auto; padding-top: 16px; padding-bottom: 16px; align-items: flex-start; flex-direction: column; }
  .nav-links { gap: 14px 18px; }
  .hero { padding: 58px 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .portrait-wrap { width: 150px; }
  .grid-2 { grid-template-columns: 1fr; }
  .course-title { flex-direction: column; gap: 2px; }
  .course-title span:last-child { text-align: left; }
}
.tool-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.tool-card {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  border: 1px solid #d9dee5;
  border-radius: 12px;
  background: #ffffff;
}

.tool-card h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.tool-card p {
  flex-grow: 1;
  margin-bottom: 1.25rem;
}

.tool-card .button {
  align-self: flex-start;
  text-decoration: none;
}

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