@font-face {
  font-family: "Lexend";
  src: url("fonts/lexend.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

* { box-sizing: border-box }
:root {
  --line: #d5dde5;
  --edge: clamp(18px, 3.5vw, 64px);
  --side: clamp(24px, 5.5vw, 86px);
  --page-gutter: max(var(--side), calc((100% - 1440px) / 2));
  background: white;
  font: 16px/1.5 "Lexend", -apple-system, BlinkMacSystemFont, sans-serif;
}
html { scroll-behavior: smooth }
body { margin: 0 }
a { color: inherit; text-decoration: none }
a:hover { text-decoration: underline; text-underline-offset: .25em }
a:focus-visible { outline: 2px solid currentColor; outline-offset: 4px }
h1, h2, h3, p { margin: 0 }
.top, footer { padding-inline: var(--edge); display: flex; align-items: center; justify-content: space-between; gap: 16px }
.top { min-height: clamp(62px, 5.5vw, 76px); border-bottom: 1px solid var(--line) }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: clamp(21px, 2.1vw, 27px);
  line-height: 1;
  font-weight: 500;
  letter-spacing: -.03em;
}
.brand img { width: clamp(34px, 3.5vw, 43px); flex: none }
.brand > img + .brand-name { color: #9aacbf }
.brand > img + .brand-name > span { color: #788ba5 }
nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 36px); font-size: clamp(13px, 1.35vw, 16px); font-weight: 500 }
nav a { padding-block: 10px }
nav [aria-current="page"] { text-decoration: underline; text-underline-offset: .4em }
h1 { font-size: clamp(49px, 5.45vw, 86px); line-height: 1.06; letter-spacing: -.018em; font-weight: 500 }
h2 { font-size: clamp(28px, 3vw, 46px); line-height: 1.1; letter-spacing: -.018em; font-weight: 500 }
.app-icon { width: 100%; display: block; border-radius: 22% }
.status { display: block; font-size: 12px; margin-top: 10px }
.arrow { width: 18px; height: 18px; margin-block: 3px; transition: transform .18s }
.entry:hover .arrow { transform: translateX(3px) }
footer { min-height: 70px; border-top: 1px solid var(--line); font-size: 14px }
footer h2 { font: inherit; font-weight: 570; letter-spacing: -.015em }
footer a, .return { text-decoration: underline; text-underline-offset: .28em }
.detail main { max-width: 800px; margin: 0 auto; min-height: 70vh; padding: 52px var(--side) 68px }
.return { font-size: 14px }
.detail .app-icon { width: 96px; margin-block: 36px 24px }
.catalog h1, .detail h1, .links-page h1 {
  font-size: clamp(36px, 3.2vw, 48px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -.04em;
}
.detail .lead { font-size: 23px; margin-block: 18px 4px; line-height: 1.35 }
.detail .features { border-top: 1px solid var(--line); margin-top: 30px; padding: 20px 0 0 1.25em }
.detail li { margin: 8px 0 }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto } .arrow { transition: none } }

.home, .catalog, .links-page { min-height: 100svh; display: flex; flex-direction: column }
:is(.home, .catalog, .links-page) .top { padding-inline: var(--page-gutter) }
.home main { display: flex; flex-direction: column; flex: 1 }
.hero {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 5fr);
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
  flex: 1;
  min-height: clamp(390px, 54svh, 620px);
  padding: clamp(40px, 5.5svh, 68px) var(--page-gutter);
  background: #e4eef6;
}
.hero-art {
  display: block;
  justify-self: end;
  width: 100%;
  height: auto;
  max-width: 840px;
  max-height: 60svh;
  object-fit: contain;
  object-position: right center;
}
.hero h1 {
  font-size: clamp(43px, 3.9vw, 64px);
  font-weight: 620;
  line-height: 1.04;
  letter-spacing: -.045em;
}
.intro-copy {
  margin-top: clamp(19px, 2vw, 28px);
  max-width: 38ch;
  font-size: clamp(18px, 1.35vw, 21px);
  line-height: 1.6;
  letter-spacing: -.015em;
}
.signature { margin-top: 20px; font-size: 17px }
.explore {
  display: inline-block;
  margin-top: 24px;
  font-size: 16px;
  text-decoration: underline;
  text-underline-offset: .32em;
}
.studio {
  display: grid;
  grid-template-columns: minmax(max-content, 24%) 1fr;
  align-items: baseline;
  gap: clamp(12px, 2vw, 28px);
  padding: clamp(24px, 3vw, 38px) var(--page-gutter);
}
.studio h2 { font-size: clamp(24px, 2vw, 30px); font-weight: 580; letter-spacing: -.03em }
.studio p, .entry p { font-size: clamp(16px, 1.35vw, 18px); line-height: 1.55 }
.studio p { max-width: 72ch }
:is(.home, .catalog, .links-page) footer {
  min-height: 66px;
  margin-inline: var(--page-gutter);
  padding-inline: 0;
}
:is(.home, .catalog, .links-page) footer a { text-decoration: none }
:is(.home, .catalog, .links-page) footer a:hover { text-decoration: underline }
.catalog main, .links-page main {
  display: grid;
  align-content: start;
  flex: 1;
  padding: clamp(40px, 6svh, 68px) var(--page-gutter);
}
.catalog h1, .links-page h1 { margin-bottom: clamp(28px, 3vw, 44px) }
.entries { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(24px, 4vw, 64px) }
.entry {
  display: grid;
  grid-template-columns: clamp(62px, 6vw, 84px) minmax(0, 1fr) 18px;
  align-items: start;
  column-gap: clamp(14px, 1.6vw, 24px);
  padding-block: clamp(20px, 2vw, 28px);
  border-top: 1px solid var(--line);
}
.entry .app-icon { height: auto; aspect-ratio: 1 }
.entry h2 {
  font-size: clamp(20px, 1.6vw, 24px);
  font-weight: 560;
  line-height: 1.2;
  letter-spacing: -.025em;
}
.entry p { margin-top: 8px; max-width: 36ch }
.entry .status { font-size: 13px }
.links-page h2 {
  font-size: clamp(20px, 1.7vw, 26px);
  font-weight: 580;
  line-height: 1.2;
  letter-spacing: -.025em;
}
.github-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
}
.github-summary, .github-activity {
  padding: clamp(20px, 3vw, 40px);
}
.github-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  background: #edf3f8;
}
.github-identity {
  display: flex;
  align-items: center;
  gap: 16px;
}
.github-identity img { width: clamp(44px, 5vw, 64px); height: auto; flex: none }
.github-identity p { margin-top: 5px }
.github-actions { display: flex; flex-wrap: wrap; gap: 8px }
.github-activity { border-top: 1px solid var(--line) }
.github-activity h2 { font-size: 20px }
.activity-details {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 16px;
}
.activity-scroll { overflow-x: auto; margin-top: 20px; padding-bottom: 8px }
.activity-calendar {
  --activity-gap: clamp(3px, .35vw, 5px);
  min-width: 680px;
}
.activity-months, .activity-weeks {
  display: grid;
  grid-template-columns: repeat(var(--activity-weeks), minmax(0, 1fr));
  column-gap: var(--activity-gap);
}
.activity-months { margin-bottom: 6px; font-size: 12px }
.activity-weeks {
  margin: 0;
  padding: 0;
  list-style: none;
}
.activity-week {
  display: grid;
  grid-template-rows: repeat(7, minmax(0, 1fr));
  row-gap: var(--activity-gap);
}
.activity-day {
  display: block;
  aspect-ratio: 1;
  border-radius: 18%;
  border: 1px solid rgb(52 75 101 / 9%);
  background: #e8edf3;
}
.activity-day[data-level="1"] { background: #bdcddd }
.activity-day[data-level="2"] { background: #91abc4 }
.activity-day[data-level="3"] { background: #637f9f }
.activity-day[data-level="4"] { background: #3f5874 }
.activity-details { margin-top: 16px; font-size: 14px }
.activity-legend:not([hidden]) { display: flex; align-items: center; gap: 4px; font-size: 12px }
.activity-legend .activity-day { width: 12px }
.pill-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  max-width: 100%;
  overflow-wrap: anywhere;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
}
.pill-link:hover { border-color: currentColor }
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(24px, 4vw, 64px);
}
.contact-panel, .issue-guide { padding: clamp(20px, 2.5vw, 36px) }
.contact-panel { background: #edf3f8; border: 1px solid var(--line); border-radius: 20px }
.contact-panel p { margin-top: 12px; max-width: 48ch; line-height: 1.65 }
.contact-panel .pill-link { margin-top: 20px }
.issue-guide {
  padding-inline: 0;
  border-top: 1px solid var(--line);
}
.issue-guide p { margin-top: 8px }
.issue-guide ul { margin: 16px 0 0; padding-inline-start: 1.25em }
.issue-guide li + li { margin-top: 6px }
@media (max-width: 900px) {
  .desktop-break { display: none }
}
@media (max-width: 700px) {
  :is(.home, .catalog, .links-page) .top { padding-inline: var(--edge) }
  .hero { grid-template-columns: 1fr; gap: 18px; padding-block: 38px 24px }
  .hero-art { max-width: 400px; max-height: 210px }
  .studio { grid-template-columns: 1fr }
  .github-actions .pill-link { gap: 8px; padding-inline: 12px }
  .contact-grid { grid-template-columns: 1fr }
  .entries { grid-template-columns: 1fr }
  .entry { grid-template-columns: 56px minmax(0, 1fr) 18px }
}

.footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px }
.notice main { width: min(100%, 82ch); margin-inline: auto; padding: clamp(40px, 6vw, 80px) var(--side) }
.notice h1 { font-size: clamp(42px, 5vw, 68px); margin-bottom: 24px }
.notice h2 { font-size: clamp(22px, 2vw, 30px); margin: 32px 0 10px }
.notice p { line-height: 1.65 }
.notice main a { text-decoration: underline; text-underline-offset: .2em }

@media (max-width: 380px) {
  .top { flex-wrap: wrap; row-gap: 0; padding-block: 8px }
  .top nav { flex-basis: 100%; justify-content: space-between }
}
