:root {
  --paper: #f2f2f0;
  --ink: #262625;
  --muted: #5e605a;
  --line: #dadad6;
  --accent: #596245;
  --serif: Georgia,"Times New Roman",serif;
}

*,*::before,*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.65 system-ui,sans-serif;
}

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

a:focus-visible,summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}

.wrap {
  width: min(1136px,calc(100% - 112px));
  margin-inline: auto;
}

.skip {
  position: fixed;
  top: 8px;
  left: 12px;
  z-index: 20;
  transform: translateY(-150%);
  background: var(--paper);
  padding: 8px 16px;
}

.skip:focus {
  transform: none;
}

.mast,.foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}

.mast {
  height: 80px;
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 2;
}

.name {
  font-family: var(--serif);
  font-size: 22px;
  white-space: nowrap;
}

nav {
  display: flex;
  gap: clamp(15px,4vw,42px);
  color: var(--muted);
  font-size: 14px;
}

nav a,.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

nav a:hover,.text-link:hover {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 5px;
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: clamp(30px,7vw,98px);
  align-items: center;
  padding: 80px 0 92px;
}

h1,h2,h3,p,figure {
  margin: 0;
}

h1,h2,h3,.project-name {
  font-family: var(--serif);
  font-weight: 400;
}

h1 {
  font-size: clamp(58px,7.7vw,113px);
  line-height: .97;
  letter-spacing: -.075em;
}

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

.intro p {
  max-width: 34ch;
  margin-block: 27px 11px;
  color: var(--muted);
  font-size: clamp(16px,1.6vw,19px);
}

.text-link {
  gap: 14px;
  font-size: 14px;
  font-weight: 600;
}

.portrait {
  position: relative;
  isolation: isolate;
  justify-self: end;
  width: 100%;
  min-height: 410px;
  display: grid;
  place-items: center;
}

.section {
  border-top: 1px solid var(--line);
  padding: 56px 0 70px;
  scroll-margin-top: 26px;
}

h2 {
  font-size: clamp(39px,5vw,60px);
  line-height: 1.1;
  letter-spacing: -.055em;
}

.projects {
  margin-top: 28px;
}

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

summary {
  display: grid;
  grid-template-columns: 1fr minmax(155px,29%) 22px;
  gap: 14px;
  align-items: center;
  min-height: 76px;
  cursor: pointer;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

.project-name {
  font-size: clamp(26px,3vw,36px);
  line-height: 1.2;
  letter-spacing: -.025em;
}

summary:hover .project-name {
  color: var(--accent);
}

.kind {
  font-size: 14px;
  color: var(--muted);
}

.toggle::before {
  content: "+";
  font-size: 25px;
  color: var(--muted);
}

details[open] .toggle::before {
  content: "-";
}

.detail {
  padding: 0 0 26px;
  color: var(--muted);
}

.detail p,.split p {
  max-width: 58ch;
}

.project-link {
  display: inline-block;
  margin-top: 18px;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  gap: 28px;
}

.split h3 {
  font-size: 28px;
  line-height: 1.2;
  margin-bottom: 10px;
}

.split p,.foot {
  color: var(--muted);
}

.foot {
  border-top: 1px solid var(--line);
  padding: 15px 0;
  font-size: 14px;
}

@media(max-width:760px) {
  .wrap {
    width: calc(100% - 44px);
  }

  .mast {
    height: 68px;
  }

  .name {
    font-size: 19px;
  }

  nav {
    gap: 14px;
    font-size: 13px;
  }

  .hero {
    grid-template-columns: 1fr;
    padding: 50px 0;
    gap: 28px;
  }

  h1 {
    font-size: clamp(48px,11.5vw,80px);
  }

  .portrait {
    justify-self: start;
    max-width: 440px;
  }

  .section {
    padding: 39px 0 45px;
  }

  .split {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  summary {
    grid-template-columns: 1fr auto 17px;
    min-height: 67px;
  }

  .kind {
    font-size: 12px;
  }

}

@media(max-width:365px) {
  .wrap {
    width: calc(100% - 32px);
  }

  nav {
    gap: 9px;
  }

  .name {
    font-size: 17px;
  }

  .kind {
    max-width: 90px;
  }

}



.hero {
  position: relative;
  isolation: isolate;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  padding-block: clamp(58px, 9vw, 120px);
}

.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 calc((100% - 100vw) / 2);
  background: radial-gradient(ellipse at 77% 40%, #cbddea 0%, transparent 62%),
    radial-gradient(ellipse at 19% 7%, #e1e9ef 0%, transparent 57%);
}

.intro .greeting {
  margin: 0 0 12px;
  color: #47698a;
  font: italic 24px/1.25 var(--serif);
}

.hero h1 {
  color: #223b54;
}

.hero h1 em {
  color: #47698a;
  font-weight: 400;
}

.primary-link {
  background: #294963;
  color: white;
  padding-inline: 18px;
  border-radius: 100px;
}

.primary-link:hover {
  background: #365c79;
  color: white;
}

.sky-orbit {
  position: absolute;
  z-index: -1;
  width: min(94%, 390px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid #6d94b472;
  box-shadow: 0 0 0 19px #eaf4fc55, 0 0 0 20px #6d94b436;
  background: radial-gradient(circle at 38% 28%, #f5f8fb, #c2d8ea);
}

.sky-cloud {
  position: absolute;
  left: 4%;
  bottom: 13%;
  width: 44%;
  height: 46px;
  border-radius: 100px;
  background: #fafaf7;
  box-shadow: 0 10px 22px #4d6f8920;
}

.sky-cloud::before,
.sky-cloud::after {
  content: "";
  position: absolute;
  bottom: 12px;
  border-radius: 50%;
  background: inherit;
}

.sky-cloud::before { left: 12%; width: 41%; aspect-ratio: 1; }
.sky-cloud::after { right: 17%; width: 46%; aspect-ratio: 1; }

.sky-star {
  position: absolute;
  right: 8%;
  top: 13%;
  color: #547695;
  font-size: 27px;
}

.portrait-source {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: 10px;
  padding-inline: 16px;
  background: #f7f9fa;
  color: #294963;
  border-radius: 100px;
}

.portrait-source:hover { text-decoration: underline; }

#so-tay {
  background: #e8edf1;
  border: 0;
  border-radius: 30px;
  padding-inline: clamp(22px, 5vw, 62px);
  margin-block: 20px;
}

@media (prefers-reduced-motion: no-preference) and (pointer: fine) {
  .sky-cloud { animation: cloud-drift 8s ease-in-out infinite alternate; }
  @keyframes cloud-drift { to { transform: translate(14px, -6px); } }
}

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; }
  .portrait { min-height: 260px; justify-self: center; }
  .sky-orbit { width: 220px; }
  .sky-cloud { left: 13%; width: 34%; height: 34px; }
}
