:root {
  --paper: #f4f1ea;
  --ink: #17211e;
  --line: #c8c6be;
  --accent: #d85835;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Courier New", "Malgun Gothic", monospace;
}

a { color: inherit; }

.page {
  width: min(1120px, calc(100% - 48px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 28px 0 34px;
  display: flex;
  flex-direction: column;
}

.nav, .footer, .detail-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.brand {
  font-size: 1.45rem;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: -0.12em;
}

.contact-link, .github {
  font-size: .72rem;
  text-underline-offset: 5px;
}

.contact-link span, .github span { color: var(--accent); font-size: 1rem; }

.hero {
  padding: clamp(92px, 15vw, 165px) 0 clamp(60px, 10vw, 110px);
  border-bottom: 1px solid var(--line);
}

.eyebrow, .label {
  margin: 0;
  color: #5e6561;
  font-size: .68rem;
  letter-spacing: .08em;
}

h1 {
  margin: 20px 0 18px;
  font-family: "Batang", "Malgun Gothic", serif;
  font-size: clamp(4.2rem, 11vw, 8.6rem);
  line-height: .98;
  font-weight: 700;
  letter-spacing: -.09em;
}

h1 span { color: var(--accent); }

.intro {
  margin: 0;
  font-family: "Batang", "Malgun Gothic", serif;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  line-height: 1.65;
}

.school { margin: 34px 0 0; font-size: .73rem; color: #5e6561; }
.school span { color: var(--ink); margin-left: 12px; }

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

.detail-row { padding: 25px 0; border-bottom: 1px solid var(--line); }
.detail-row:last-child { border-bottom: 0; }
.content { width: 66%; margin: 0; font-size: .88rem; line-height: 1.6; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags span { border: 1px solid var(--ink); border-radius: 99px; padding: 4px 10px; }

.statement {
  padding: clamp(74px, 12vw, 135px) 0;
  flex: 1;
}

.statement p {
  margin: 0;
  font-family: "Batang", "Malgun Gothic", serif;
  font-size: clamp(1.9rem, 4.4vw, 3.8rem);
  line-height: 1.35;
  letter-spacing: -.07em;
}

.footer {
  padding-top: 20px;
  border-top: 1px solid var(--ink);
  gap: 24px;
}

.footer .label { margin-bottom: 9px; }
.footer a { font-size: .78rem; text-underline-offset: 5px; }
.github { text-align: right; }

@media (max-width: 560px) {
  .page { width: min(100% - 32px, 1120px); padding-top: 20px; }
  .hero { padding-top: 88px; }
  .detail-row { display: block; }
  .content { width: 100%; margin-top: 14px; }
  .footer { display: block; }
  .github { display: inline-block; margin-top: 24px; text-align: left; }
}
