@font-face {
  font-family: "Young Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/young-serif-latin.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --paper: #EFF4F1;
  --surface: #ececea;
  --ink: #0d0d0d;
  --muted: #5c5c59;
  --line: rgba(13, 13, 13, 0.28);
  --baduk-win: #4f7648;
  --baduk-loss: #a94b45;
  --max-width: 860px;
  --signature-filter: invert(1);
  --app-icon-spring: cubic-bezier(0.22, 1.65, 0.36, 1);
}

@supports (transition-timing-function: linear(0, 1)) {
  :root {
    --app-icon-spring: linear(
      0, 0.1696, 0.5205, 0.8641,
      1.0975, 1.1974, 1.1921, 1.1298,
      1.055, 0.9964, 0.9648, 0.9581,
      0.9673, 0.9825, 0.9964, 1.0052,
      1.0086, 1.0078, 1.0049, 1.0018, 1
    );
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #0D0D0D;
  --surface: #1d1d1b;
  --ink: #f2f2ee;
  --muted: #aaa9a3;
  --line: rgba(242, 242, 238, 0.24);
  --baduk-win: #8db383;
  --baduk-loss: #e18079;
  --signature-filter: none;
}

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

html {
  overflow-y: scroll;
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

body {
  position: relative;
  isolation: isolate;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Menlo, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 16px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.speed-field {
  position: fixed;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 180ms ease, visibility 0s linear 180ms;
}

.speed-field.is-active {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

a:focus-visible {
  border-radius: 1px;
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 8px 12px;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.78rem;
  font-weight: 750;
  transform: translateY(-160%);
  transition: transform 150ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header,
.hero,
.baduk-tabs,
.baduk-games,
.works,
.signature,
.site-footer,
.colophon-main,
.notes-main,
.note-main {
  width: min(calc(100% - 40px), var(--max-width));
  margin-inline: auto;
}

.site-header {
  display: flex;
  min-height: 74px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand a {
  text-decoration: none;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  filter: grayscale(1) contrast(1.08);
  object-fit: cover;
  transition: filter 220ms ease, transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.brand:hover img,
.brand-avatar:focus-visible img {
  filter: grayscale(0);
  transform: rotate(-4deg) scale(1.06);
}

.brand span {
  display: flex;
  flex-direction: column;
  line-height: 1.08;
}

.brand-name {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-role {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.64rem;
  transition: color 150ms ease;
}

.brand-role:hover {
  color: var(--ink);
  text-decoration: underline;
}

.main-nav,
.site-footer nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.7vw, 28px);
}

.main-nav a,
.site-footer nav a {
  position: relative;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.075em;
  text-decoration: none;
  text-transform: uppercase;
}

.external-link-icon {
  font-size: 1.5em;
  line-height: 0;
}

.theme-toggle {
  display: grid;
  width: 28px;
  height: 28px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  line-height: 1;
  transition: border-color 170ms ease, background-color 170ms ease, color 170ms ease, transform 170ms ease;
}

.theme-toggle span {
  display: block;
  font-family: Georgia, serif;
  font-size: 1rem;
  transition: transform 240ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.theme-toggle:hover {
  border-color: var(--ink);
  background: var(--surface);
  color: var(--ink);
  transform: translateY(-1px);
}

.theme-toggle:hover span {
  transform: rotate(30deg);
}

.theme-toggle:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

.main-nav .rss-link {
  padding: 4px 7px 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.57rem;
  line-height: 1;
  transition: border-color 170ms ease, background-color 170ms ease, color 170ms ease, transform 170ms ease;
}

.main-nav .rss-link:hover {
  border-color: var(--ink);
  background: var(--surface);
  color: var(--ink);
  transform: translateY(-1px);
}

.main-nav .rss-link::after {
  display: none;
}

.main-nav a::after,
.site-footer nav a::after {
  position: absolute;
  right: 0;
  bottom: -4px;
  left: 0;
  height: 1px;
  background: currentColor;
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 170ms ease;
}

.main-nav a:hover::after,
.main-nav a[aria-current="page"]::after,
.site-footer nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.hero {
  padding-block: clamp(52px, 7vw, 72px) clamp(54px, 7vw, 72px);
}

.hero h1,
.colophon-heading h1 {
  font-family: "Young Serif", Georgia, serif;
  font-style: normal;
  font-weight: 400;
}

.notes-main,
.note-main {
  padding-block: clamp(44px, 6vw, 64px) clamp(60px, 8vw, 88px);
}

.notes-heading {
  margin-bottom: clamp(24px, 3vw, 32px);
}

.notes-heading h1,
.note-heading h1 {
  margin: 0;
  font-family: "Young Serif", Georgia, serif;
  font-size: clamp(3.4rem, 7vw, 5.8rem);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1;
}

.notes-list,
.notes-empty,
.note-content {
  padding-top: 26px;
  border-top: 1px solid var(--ink);
}

.notes-intro {
  max-width: 690px;
  margin-bottom: clamp(35px, 5vw, 50px);
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.7;
}

.notes-intro > :first-child {
  margin-top: 0;
}

.notes-intro > :last-child {
  margin-bottom: 0;
}

.notes-intro a {
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.note-summary {
  padding-block: 24px;
  border-bottom: 1px solid var(--line);
}

.note-summary time,
.note-heading time {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.note-summary h2 {
  margin: 8px 0 0;
  font-family: "Young Serif", Georgia, serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.note-summary h2 a {
  text-decoration: none;
}

.note-summary h2 a:hover {
  text-decoration: underline;
}

.note-summary-copy,
.notes-empty,
.note-content {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.7;
}

.note-summary-copy {
  max-width: 690px;
}

.note-summary-copy p {
  margin: 12px 0 0;
}

.notes-empty {
  margin: 0;
}

.note-heading {
  margin-bottom: clamp(30px, 5vw, 46px);
}

.note-heading h1 {
  max-width: 780px;
  margin-top: 10px;
}

.note-content {
  max-width: 700px;
  color: var(--ink);
  font-size: clamp(0.88rem, 1.1vw, 0.96rem);
}

.note-content > :first-child {
  margin-top: 0;
}

.note-content > :last-child {
  margin-bottom: 0;
}

.note-content p,
.note-content ul,
.note-content ol,
.note-content blockquote,
.note-content pre,
.note-content figure,
.note-content table {
  margin-block: 0 1.45em;
}

.note-content h2,
.note-content h3,
.note-content h4 {
  color: var(--ink);
  scroll-margin-top: 24px;
}

.note-content h2 {
  margin: 1.65em 0 0.55em;
  font-family: "Young Serif", Georgia, serif;
  font-size: clamp(1.8rem, 3.5vw, 2.55rem);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.12;
}

.note-content h3,
.note-content h4 {
  margin: 2em 0 0.7em;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.065em;
  line-height: 1.45;
  text-transform: uppercase;
}

.note-content ul,
.note-content ol {
  padding-left: 1.5rem;
}

.note-content li + li {
  margin-top: 0.55em;
}

.note-content strong {
  font-weight: 800;
}

.note-content a {
  font-weight: 700;
  text-decoration-color: var(--line);
  transition: text-decoration-color 150ms ease;
}

.note-content a:hover {
  text-decoration-color: currentColor;
}

.note-content blockquote {
  margin-inline: 0;
  padding-left: 18px;
  border-left: 2px solid var(--ink);
  color: var(--muted);
}

.note-content blockquote > :last-child {
  margin-bottom: 0;
}

.note-content code {
  padding: 0.12em 0.32em;
  border-radius: 3px;
  background: var(--surface);
  font: 0.92em/1.5 Menlo, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.note-content pre {
  max-width: 100%;
  padding: 16px 18px;
  overflow-x: auto;
  border: 1px solid var(--line);
  background: var(--surface);
  -webkit-overflow-scrolling: touch;
}

.note-content pre code {
  padding: 0;
  background: transparent;
}

.note-content img {
  height: auto;
  margin-block: 1.8em;
}

.app-download-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.note-content .app-download-links img {
  width: auto;
  height: 80px;
  margin: 0;
}

.note-content .app-download-links a img {
  height: 40px;
}

.note-content .theme-video {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1.8em auto;
}

.note-content figure {
  margin-inline: 0;
}

.note-content figure img {
  margin-bottom: 0;
}

.note-content figcaption {
  margin-top: 9px;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.5;
}

.note-content hr {
  height: 1px;
  margin-block: 2.3em;
  border: 0;
  background: var(--line);
}

.note-content table {
  display: block;
  width: max-content;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
}

.note-content th,
.note-content td {
  padding: 8px 12px;
  border: 1px solid var(--line);
  text-align: left;
}

.note-content th {
  font-size: 0.72rem;
}

.note-footer {
  max-width: 700px;
  margin-top: clamp(42px, 6vw, 64px);
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.note-footer a {
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.hero-label {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(3.9rem, 7.6vw, 6.5rem);
  letter-spacing: -0.045em;
  line-height: 0.92;
}

.baduk-tabs {
  padding-block: 9px;
  border-block: 1px solid var(--ink);
}

.baduk-tabs-list {
  position: relative;
  display: grid;
  grid-template-columns: repeat(var(--baduk-tab-count, 4), minmax(0, 1fr));
  gap: 6px;
  isolation: isolate;
}

.baduk-tabs-indicator {
  position: absolute;
  z-index: 0;
  top: 0;
  left: 0;
  border-radius: 999px;
  background: var(--ink);
  opacity: 0;
  pointer-events: none;
  transform-origin: center;
  will-change: width, height, transform;
}

.baduk-tabs-indicator.is-ready {
  opacity: 1;
}

.baduk-tab {
  position: relative;
  z-index: 1;
  display: inline-flex;
  min-width: 0;
  padding: 7px 14px 6px;
  align-items: center;
  justify-self: center;
  gap: 11px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.055em;
  line-height: 1;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease;
}

.baduk-tab:not(.is-active):hover {
  background: var(--surface);
}

.baduk-tab.is-active {
  background: var(--ink);
  color: var(--paper);
}

.baduk-tabs-list.is-enhanced .baduk-tab.is-active {
  background: transparent;
}

.baduk-tab-count {
  font-variant-numeric: tabular-nums;
}

.baduk-tab:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.baduk-games {
  padding-block: clamp(28px, 4vw, 40px) clamp(68px, 9vw, 96px);
}

.baduk-games-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.baduk-game {
  position: relative;
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  border: 1px solid var(--ink);
  background: var(--paper);
}

.baduk-game-open {
  position: absolute;
  z-index: 1;
  inset: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.baduk-game-open:focus-visible {
  border-radius: 0;
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

.baduk-game[hidden] {
  display: none;
}

.baduk-board {
  min-width: 0;
  margin: 0;
  border-right: 1px solid var(--ink);
  background: #dfb978;
}

.baduk-board-svg {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  shape-rendering: geometricPrecision;
}

.baduk-board-surface {
  fill: #dfb978;
}

.baduk-board-line {
  stroke: #5c492d;
  stroke-width: 0.055;
}

.baduk-board-hoshi {
  fill: #241b12;
}

.baduk-stone circle {
  stroke-width: 0.055;
}

.baduk-stone-b circle {
  fill: #10100f;
  stroke: #000;
}

.baduk-stone-w circle {
  fill: #f4f1e9;
  stroke: #807b70;
}

.baduk-stone text {
  font-family: Menlo, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.46px;
  font-weight: 800;
  text-anchor: middle;
  pointer-events: none;
}

.baduk-stone-b text {
  fill: #fff;
}

.baduk-stone-w text {
  fill: #111;
}

.baduk-game-details {
  display: flex;
  min-width: 0;
  padding: clamp(12px, 1.5vw, 17px);
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.baduk-game-server,
.baduk-game-date,
.baduk-game-matchup,
.baduk-game-result,
.baduk-game-player,
.baduk-game-moves {
  margin: 0;
}

.baduk-game-server {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  line-height: 1.2;
}

.baduk-game-date {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.055em;
  line-height: 1.35;
}

.baduk-game-matchup {
  margin-top: 4px;
  font: inherit;
  font-size: 0.63rem;
  font-weight: 500;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.baduk-game-result {
  margin-top: 13px;
  padding: 4px 7px 3px;
  border: 1px solid currentColor;
  border-radius: 3px;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
}

.baduk-game-result.is-win {
  color: var(--baduk-win);
}

.baduk-game-result.is-loss {
  color: var(--baduk-loss);
}

.baduk-game-player {
  margin-top: 13px;
  font-size: 0.63rem;
  font-weight: 800;
  letter-spacing: 0.055em;
  line-height: 1.35;
  text-transform: uppercase;
}

.baduk-game-player span {
  display: block;
}

.baduk-game-moves {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.62rem;
  line-height: 1.35;
}

.baduk-games-status {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
}

html:has(.baduk-review[open]) {
  overflow: hidden;
}

.baduk-review {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: var(--paper);
  color: var(--ink);
}

.baduk-review:focus {
  outline: 0;
}

.baduk-review-layout {
  display: grid;
  height: 100%;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.baduk-review-header,
.baduk-review-controls {
  min-height: 68px;
  padding: 12px clamp(14px, 3vw, 32px);
  align-items: center;
}

.baduk-review-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: clamp(8px, 3vw, 24px);
  border-bottom: 1px solid;
}

.baduk-review-header h2,
.baduk-review-header p,
.baduk-review-controls p {
  margin: 0;
}

.baduk-review-header h2 {
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.35;
}

.baduk-review-header p {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.65rem;
  line-height: 1.35;
}

.baduk-review-game {
  min-width: 0;
}

.baduk-review-header .baduk-review-player {
  align-self: center;
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.055em;
  text-align: center;
  text-transform: uppercase;
}

.baduk-review-player span {
  display: block;
}

.baduk-review button {
  border: 1px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.baduk-review-close {
  justify-self: end;
  padding: 8px 10px;
  font-size: 0.68rem;
  text-transform: uppercase;
}

.baduk-review-board {
  display: flex;
  min-height: 0;
  padding: 12px;
  align-items: center;
  justify-content: center;
}

.baduk-review-board .baduk-board {
  width: min(100%, calc(100dvh - 176px));
  border: 1px solid var(--ink);
}

.baduk-review-controls {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  border-top: 1px solid;
}

.baduk-review-controls button {
  width: 52px;
  height: 42px;
  padding: 0;
  font-size: 1.2rem;
}

.baduk-review-controls button:last-child {
  justify-self: end;
}

.baduk-review-controls button:disabled {
  color: var(--muted);
  cursor: default;
  opacity: 0.45;
}

.baduk-review-close:hover,
.baduk-review-close:focus-visible,
.baduk-review-controls button:not(:disabled):hover {
  background: var(--ink);
  color: var(--paper);
}

.baduk-review-close:focus-visible {
  outline: 0;
}

.baduk-review-controls button:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.baduk-review-controls p {
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
}

.hero-meta {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  margin-top: 35px;
}

.hero-meta p {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.5;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.055em;
  text-decoration: underline;
  text-transform: uppercase;
}

.text-link span {
  display: inline-block;
  transition: transform 150ms ease;
}

.text-link:hover span {
  transform: translate(3px, -3px);
}

.works {
  padding-block: clamp(24px, 4vw, 44px) clamp(70px, 9vw, 100px);
  border-top: 1px solid var(--ink);
}

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.section-heading h2 {
  margin: 0;
  font: inherit;
}

.app-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(42px, 5.5vw, 56px);
  margin-top: 38px;
}

.app {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  grid-template-rows: auto auto auto;
  column-gap: clamp(28px, 4vw, 38px);
  align-items: start;
  min-height: 140px;
  min-width: 0;
  scroll-margin-top: 18px;
}

.app-visual {
  display: grid;
  grid-column: 1;
  grid-row: 1 / -1;
  align-self: center;
  justify-items: start;
}

.app-visual img {
  width: 132px;
  height: 132px;
  border-radius: 22%;
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  filter: grayscale(1) contrast(1.04);
  opacity: 0.82;
  transform-origin: 35% 70%;
  transition:
    box-shadow 260ms ease,
    filter 260ms ease,
    opacity 260ms ease,
    transform 650ms var(--app-icon-spring);
}

.app-visual:hover img,
.app-visual:focus-visible img {
  box-shadow: 0 14px 22px -8px rgba(0, 0, 0, 0.28);
  filter: grayscale(0) contrast(1);
  opacity: 1;
  transform: translateY(-7px) rotate(var(--app-rotation, -5deg)) scale(1.04);
}

.app-heading {
  display: flex;
  grid-column: 2;
  grid-row: 1;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin: 0;
}

.app-heading h3 {
  margin: 0;
  font-family: "Young Serif", Georgia, serif;
  font-size: clamp(2.8rem, 4.8vw, 3.8rem);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1;
}

.app-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 0.62rem;
  white-space: nowrap;
}

.store-badge {
  display: inline-block;
  grid-column: 2;
  grid-row: 3;
  justify-self: start;
  margin: 18px 0 0;
  line-height: 0;
  transition: transform 180ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.store-badge:hover,
.store-badge:focus-visible {
  transform: translateY(-2px);
}

.store-badge img {
  width: auto;
  height: 34px;
  max-width: none;
}

.app-copy {
  grid-column: 2;
  grid-row: 2;
  max-width: 560px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: clamp(0.76rem, 1vw, 0.84rem);
  line-height: 1.58;
}

.signature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 36px;
  align-items: center;
  padding-block: clamp(44px, 6vw, 68px);
}

.signature > p {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
}

.signature > div {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  min-height: 82px;
  align-items: center;
  padding-block: 24px;
  border-top: 1px solid var(--line);
}

.site-footer > strong {
  font-size: 0.7rem;
}

.footer-mark {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-mark span {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.055em;
}

.footer-mark img {
  width: 68px;
  height: auto;
  filter: var(--signature-filter);
  opacity: 0.88;
  transition: opacity 180ms ease, transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.footer-mark:hover img {
  opacity: 1;
  transform: translateY(-1px) rotate(-2deg) scale(1.03);
}

.colophon-main {
  padding-block: clamp(44px, 6vw, 64px) clamp(60px, 8vw, 88px);
}

.colophon-heading {
  margin-bottom: clamp(35px, 5vw, 50px);
}

.colophon-heading h1 {
  margin: 0;
  font-size: clamp(3.4rem, 7vw, 5.8rem);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1;
}

.page-subtitle {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.colophon-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(205px, 0.7fr);
  gap: clamp(38px, 7vw, 70px);
  align-items: start;
  padding-top: 26px;
  border-top: 1px solid var(--ink);
}

.colophon-sections {
  display: grid;
  gap: 30px;
}

.colophon-section h2 {
  margin: 0 0 9px;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.075em;
  line-height: 1.4;
  text-transform: uppercase;
}

.colophon-section-copy {
  display: grid;
  gap: 17px;
}

.colophon-section-copy p,
.colophon-contact {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.62;
}

.colophon-section-copy strong {
  color: var(--ink);
}

.colophon-section-copy a,
.colophon-contact a {
  color: var(--ink);
  font-weight: 700;
}

.colophon-contact {
  font-size: 0.84rem;
}

.colophon-portrait {
  margin: 0;
  padding: 8px 8px 20px;
  border: 1px solid var(--ink);
  background: var(--paper);
  transition: transform 190ms ease;
}

.colophon-portrait:hover {
  transform: translateY(-3px);
}

.colophon-portrait img {
  width: 100%;
  aspect-ratio: 1;
  filter: grayscale(1) contrast(1.08);
  object-fit: cover;
  transition: filter 220ms ease;
}

.colophon-portrait:hover img {
  filter: grayscale(0);
}

.colophon-portrait figcaption {
  margin: 0;
  color: var(--muted);
}

.portrait-note {
  display: block;
  margin-top: 12px;
  font-family: "Young Serif", Georgia, serif;
  font-size: 0.72rem;
  line-height: 1.35;
  text-align: center;
}

.photo-credit {
  display: block;
  padding: 8px 4px 0 0;
  font-size: 0.7rem;
  font-style: normal;
  line-height: 1.35;
  text-align: right;
}

.photo-credit a {
  color: inherit;
  text-decoration-color: var(--line);
  transition: color 150ms ease, text-decoration-color 150ms ease;
}

.photo-credit a:hover {
  color: var(--ink);
  text-decoration-color: currentColor;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
    --paper: #0D0D0D;
    --surface: #1d1d1b;
    --ink: #f2f2ee;
    --muted: #aaa9a3;
    --line: rgba(242, 242, 238, 0.24);
    --baduk-win: #8db383;
    --baduk-loss: #e18079;
    --signature-filter: none;
  }
}

.back-home {
  margin-top: clamp(45px, 6vw, 64px);
}

.reveal.is-visible {
  animation: reveal-in 480ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

@keyframes reveal-in {
  from {
    opacity: 0;
    translate: 0 11px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}

@media (max-width: 720px) {
  .baduk-games-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 650px) {
  .site-header,
  .hero,
  .baduk-tabs,
  .baduk-games,
  .works,
  .signature,
  .site-footer,
  .colophon-main,
  .notes-main,
  .note-main {
    width: min(calc(100% - 28px), var(--max-width));
  }

  .site-header {
    min-height: 68px;
  }

  .brand span {
    display: none;
  }

  .main-nav {
    gap: 11px;
  }

  .main-nav a {
    font-size: 0.59rem;
  }

  .theme-toggle {
    width: 26px;
    height: 26px;
  }

  .main-nav .rss-link {
    padding: 4px 6px 3px;
    font-size: 0.54rem;
  }

  .hero {
    padding-block: 52px 64px;
  }

  .hero h1 {
    font-size: clamp(3.25rem, 14.5vw, 4.5rem);
    line-height: 0.9;
  }

  .baduk-tabs {
    padding-block: 8px;
  }

  .baduk-tab {
    padding-inline: 9px;
    gap: 7px;
    font-size: 0.62rem;
  }

  .hero-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
    margin-top: 25px;
  }

  .works {
    padding-block: 20px 66px;
  }

  .app-grid {
    gap: 52px;
    margin-top: 28px;
  }

  .app {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    row-gap: 0;
  }

  .app-visual,
  .app-heading,
  .app-copy,
  .store-badge {
    grid-column: 1;
    grid-row: auto;
  }

  .app-visual {
    align-items: end;
  }

  .app-visual img {
    width: 118px;
    height: 118px;
    filter: grayscale(0) contrast(1);
    opacity: 1;
    transition: none;
  }

  .app-visual:hover img,
  .app-visual:focus-visible img {
    box-shadow: none;
    filter: grayscale(0) contrast(1);
    opacity: 1;
    transform: none;
  }

  .app-heading {
    display: block;
    margin-top: 12px;
  }

  .app-heading p {
    margin-top: 5px;
  }

  .app-heading h3 {
    font-size: clamp(2.4rem, 11vw, 3.2rem);
  }

  .app-copy {
    max-width: 430px;
  }

  .store-badge {
    margin-top: 17px;
  }

  .signature {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-block: 48px 60px;
  }

  .signature > div {
    gap: 22px;
  }

  .site-footer {
    grid-template-columns: 1fr auto;
    gap: 22px;
  }

  .site-footer nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: space-between;
  }

  .colophon-layout {
    grid-template-columns: 1fr;
  }

  .colophon-portrait {
    width: min(76%, 290px);
    justify-self: center;
  }

  .notes-heading h1,
  .note-heading h1 {
    font-size: clamp(3rem, 14vw, 4.4rem);
  }

  .note-summary h2 {
    font-size: clamp(1.9rem, 9vw, 2.55rem);
  }
}

@media (max-width: 370px) {
  .site-header,
  .hero,
  .baduk-tabs,
  .baduk-games,
  .works,
  .signature,
  .site-footer,
  .colophon-main,
  .notes-main,
  .note-main {
    width: min(calc(100% - 20px), var(--max-width));
  }

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

  .main-nav {
    gap: 8px;
  }

  .main-nav a {
    font-size: 0.55rem;
  }

  .theme-toggle {
    width: 24px;
    height: 24px;
  }

  .baduk-game {
    grid-template-columns: 1fr;
  }

  .baduk-board {
    border-right: 0;
    border-bottom: 1px solid var(--ink);
  }

  .baduk-game-details {
    padding: 17px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
