:root {
  color-scheme: light;
  --paper: #f7f2e8;
  --paper-strong: #fffaf0;
  --ink: #1b1a17;
  --muted: #68635b;
  --line: #d9d0bf;
  --green: #24745a;
  --green-deep: #123f33;
  --coral: #d65f4d;
  --blue: #315c96;
  --shadow: 0 24px 70px rgba(36, 47, 43, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(90deg, rgba(27, 26, 23, 0.035) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(rgba(27, 26, 23, 0.035) 1px, transparent 1px) 0 0 / 48px 48px,
    var(--paper);
  color: var(--ink);
  font-family:
    "Inter", "Hiragino Sans", "Yu Gothic UI", "Yu Gothic", Meiryo, system-ui,
    sans-serif;
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(20px, 5vw, 64px);
  border-bottom: 1px solid rgba(27, 26, 23, 0.08);
  background: rgba(247, 242, 232, 0.88);
  backdrop-filter: blur(18px);
}

.brand,
.nav,
.hero-actions,
.site-footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
}

.brand img {
  width: 36px;
  height: 36px;
}

.nav {
  gap: clamp(14px, 3vw, 30px);
  color: var(--muted);
  font-size: 0.94rem;
}

.nav a {
  border-bottom: 1px solid transparent;
}

.nav a:hover {
  border-color: currentColor;
  color: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
  align-items: center;
  gap: clamp(32px, 7vw, 96px);
  min-height: calc(100vh - 70px);
  padding: clamp(56px, 8vw, 96px) clamp(20px, 5vw, 64px) clamp(48px, 7vw, 88px);
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(4.5rem, 8rem, 8rem);
  line-height: 0.94;
}

.lead {
  max-width: 650px;
  margin: 28px 0 0;
  color: #34312c;
  font-size: clamp(1.05rem, 1.16rem, 1.16rem);
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 18px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  font-weight: 800;
}

.button.primary {
  background: var(--ink);
  color: var(--paper-strong);
}

.button.secondary {
  background: rgba(255, 250, 240, 0.56);
}

.button:hover,
.link-card:hover {
  transform: translateY(-2px);
}

.hero-visual {
  margin: 0;
  justify-self: center;
  width: min(100%, 420px);
  aspect-ratio: 1;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  filter: drop-shadow(var(--shadow));
}

.section {
  padding: clamp(56px, 8vw, 96px) clamp(20px, 5vw, 64px);
  border-top: 1px solid rgba(27, 26, 23, 0.08);
}

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

h2 {
  margin: 0;
  font-size: clamp(2rem, 2.8rem, 2.8rem);
  line-height: 1.18;
}

.profile-grid,
.links-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 30px;
}

.profile-card,
.link-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.68);
  box-shadow: 0 12px 32px rgba(27, 26, 23, 0.05);
}

.profile-card {
  min-height: 180px;
  padding: 22px;
}

h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
  line-height: 1.35;
}

.profile-card p,
.note-item p {
  margin: 0;
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 78px);
  background: rgba(255, 250, 240, 0.38);
}

.note-list {
  display: grid;
  gap: 12px;
}

.note-item {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.note-number {
  color: var(--coral);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-weight: 800;
}

.links-section {
  background:
    linear-gradient(135deg, rgba(36, 116, 90, 0.12), transparent 42%),
    linear-gradient(315deg, rgba(49, 92, 150, 0.12), transparent 48%),
    var(--paper);
}

.link-card {
  display: grid;
  gap: 8px;
  min-height: 124px;
  padding: 20px;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.link-card span {
  color: var(--muted);
  font-size: 0.88rem;
}

.link-card strong {
  color: var(--green-deep);
  font-size: 1.15rem;
}

.link-card:hover {
  border-color: var(--green);
  background: var(--paper-strong);
}

.site-footer {
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(20px, 5vw, 64px);
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  font-weight: 800;
}

@media (max-width: 820px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero,
  .split {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-visual {
    order: -1;
    width: min(82vw, 330px);
  }

  .profile-grid,
  .links-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: clamp(3.5rem, 5.2rem, 5.2rem);
  }
}

@media (max-width: 520px) {
  .nav {
    width: 100%;
    justify-content: space-between;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .note-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}
