@font-face { font-family: "Cormorant"; src: url("/fonts/cormorant-garamond-latin-300-normal.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant"; src: url("/fonts/cormorant-garamond-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant"; src: url("/fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  --bg: #ffffff;
  --text: #1a1a1a;
  --muted: #6b6b6b;
  --pencil: #c0392b;
  --pencil-hover: #8e1f14;
  --faint: #9a9a9a;
  --line: #e8e8e8;
  --display: "Cormorant", Georgia, "Times New Roman", serif;
  --name: clamp(40px, 13.5vw, 108px);
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111111;
    --text: #ededed;
    --muted: #a0a0a0;
    --pencil: #e5685a;
    --pencil-hover: #ff9a8e;
    --faint: #707070;
    --line: #2a2a2a;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  text-align: center;
}

a { color: inherit; text-decoration: none; border-bottom: 1px solid var(--line); transition: border-color .15s, color .15s; }
a:hover { border-color: var(--text); }

.topbar { max-width: 720px; margin: 0 auto; padding: 24px 24px 0; }
.topbar nav { display: flex; justify-content: center; gap: 8px 28px; flex-wrap: wrap; font-size: 14px; }
.topbar nav a { color: var(--muted); border: none; }
.topbar nav a:hover { color: var(--text); }

main { max-width: 720px; margin: 0 auto; padding: 0 24px; }

section { padding: 56px 0 8px; scroll-margin-top: 16px; }

.hero { padding-top: 96px; }

.lockup { display: inline-block; max-width: 100%; }
h1 {
  font-family: var(--display);
  font-weight: 300;
  font-size: var(--name);
  line-height: 1;
  letter-spacing: -0.01em;
  white-space: nowrap;
  margin: 0;
}
.role {
  margin: .15em 0 0;
  max-width: none;
  font-family: var(--display);
  font-weight: 300;
  font-size: calc(var(--name) * .49);
  line-height: 1.1;
  letter-spacing: .15em;
  margin-right: -.15em;
  text-align: justify;
  text-align-last: justify;
  color: var(--muted);
}
section p.meta { font-family: var(--sans); font-size: 14px; color: var(--faint); margin: 28px auto 2px; }
section p.status { font-family: var(--sans); font-size: 17px; color: var(--muted); margin: 0 auto 24px; }

.icons { list-style: none; padding: 0; margin: 0; display: flex; justify-content: center; gap: 22px; }
.icons a { display: inline-flex; border: none; color: var(--pencil); padding: 4px; transition: color .15s, transform .15s; }
.icons a:hover { color: var(--pencil-hover); transform: rotate(-4deg); }
.icons svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.35; stroke-linecap: round; stroke-linejoin: round; filter: url(#pencil); }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }

h2 { font-family: var(--display); font-weight: 400; font-size: 34px; line-height: 1.2; margin: 0 0 20px; }
h3 { font-size: 16px; font-weight: 600; margin: 0 0 4px; }
h3 span { font-weight: 400; color: var(--muted); }

section p { margin: 0 auto 12px; max-width: 600px; font-family: var(--display); font-size: 20px; line-height: 1.6; }


.company { max-width: 560px; margin: 0 auto 32px; text-align: left; }
.company-top { display: flex; align-items: center; gap: 16px; }
@media (min-width: 640px) { .company-top { margin-left: -40px; } }
.company-lines { flex: 1; min-width: 0; display: grid; gap: 4px; }
.company-row { display: flex; justify-content: space-between; align-items: baseline; gap: 4px 16px; flex-wrap: wrap; }
.company-row h3 { margin: 0; font-size: 17px; font-weight: 700; }
.company-row .place { font-size: 14px; color: var(--faint); white-space: nowrap; }
.company-meta { font-size: 15px; color: var(--muted); }
.company-meta .when { font-size: 13px; letter-spacing: .08em; color: var(--faint); white-space: nowrap; }
.role-item { margin-top: 22px; padding-left: 16px; border-left: 1px solid var(--line); }
.role-item .degree { margin: 0; }
.role-title { font-weight: 600; }
.role-item ul { list-style: none; margin: 6px 0 0; padding: 0; color: var(--muted); font-size: 15px; line-height: 1.65; }
.role-item li { position: relative; padding-left: 14px; margin-bottom: 4px; }
.role-item li::before { content: "–"; position: absolute; left: 0; color: var(--faint); }
.school { max-width: 560px; margin: 0 auto 32px; text-align: left; }
.school-head { display: flex; align-items: center; gap: 12px; }
.school-head h3 { margin: 0; font-size: 17px; font-weight: 700; }
.school-head .place { margin-left: auto; font-size: 14px; color: var(--faint); white-space: nowrap; }
.logo { flex: none; display: flex; width: 54px; height: 38px; }
.logo-wide { width: 104px; height: 14px; }
.logo img { width: 100%; height: 100%; object-fit: contain; }
.degree { display: flex; justify-content: space-between; align-items: baseline; gap: 4px 16px; flex-wrap: wrap; margin: 10px 0 0 66px; font-size: 15px; color: var(--text); }
.degree .when { font-size: 13px; letter-spacing: .08em; color: var(--faint); white-space: nowrap; }
.school ul { list-style: none; margin: 4px 0 0 66px; padding: 0; color: var(--muted); font-size: 15px; line-height: 1.8; }

section p.mails { font-family: var(--sans); font-size: 16px; }

footer { max-width: 720px; margin: 72px auto 0; padding: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--faint); }
footer p { margin: 0; }

@media (max-width: 560px) {
  .hero { padding-top: 64px; }
  .degree, .school ul { margin-left: 0; }
  .school-head h3 { flex: 1; min-width: 0; }
}
