/* BURGESS1977™ studio: the blog's ivory and ink and D2Coding, dressed as a PC통신 menu screen: dashed and double
   rules, numbered menu, reverse-video links. */
/* NAVER D2Coding 1.3.3, unmodified (WOFF2 compression only, so the OFL Reserved Font Name stays; license in
   /fonts/OFL.txt). About 1.5MB per weight: a copy installed on the reader's machine is used first, and text shows
   at once in the fallbacks below until the download finishes. Overrides: D2Coding's hhea metrics, so every
   platform gets the same line box. */
@font-face { font-family: 'D2Coding'; font-weight: 400; font-display: swap; src: local('D2Coding'), url(/fonts/D2Coding-Regular.woff2) format('woff2'); ascent-override: 85%; descent-override: 23%; line-gap-override: 8%; }
@font-face { font-family: 'D2Coding'; font-weight: 700; font-display: swap; src: local('D2Coding Bold'), local('D2CodingBold'), url(/fonts/D2Coding-Bold.woff2) format('woff2'); ascent-override: 85%; descent-override: 23%; line-gap-override: 8%; }

/* Fallbacks matched to D2Coding's metrics so the late font swap does not move lines.
   override = target / size-adjust (CSS Fonts 5 scales overrides by size-adjust). */
@font-face { font-family: 'D2 FB Menlo'; src: local('Menlo-Regular'), local('Menlo'); size-adjust: 83.05%; ascent-override: 102.35%; descent-override: 27.69%; line-gap-override: 9.63%; }
@font-face { font-family: 'D2 FB Consolas'; src: local('Consolas'); size-adjust: 90.94%; ascent-override: 93.47%; descent-override: 25.29%; line-gap-override: 8.8%; }
@font-face { font-family: 'D2 FB SD'; src: local('AppleSDGothicNeo-Regular'), local('Apple SD Gothic Neo'); size-adjust: 115.61%; ascent-override: 73.53%; descent-override: 19.9%; line-gap-override: 6.92%; }
@font-face { font-family: 'D2 FB Malgun'; src: local('Malgun Gothic'), local('MalgunGothic'); ascent-override: 85%; descent-override: 23%; line-gap-override: 8%; }


:root {
  color-scheme: light;
  --paper: #faf9f5;
  --ink: #171717;
  --ink-2: #3d3d3d;
  --muted: #5e5e5e;
  --rule: #b9b5ab;
  --sun: none;
  --moon: block;
  --font: 'D2Coding', 'D2 FB Menlo', 'D2 FB Consolas', 'D2 FB SD', 'D2 FB Malgun', ui-monospace, monospace;
}
/* dark: the system setting unless the button chose light, or the button chose dark (html[data-theme]) */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { color-scheme: dark; --paper: #171717; --ink: #ecebe6; --ink-2: #c9c7c0; --muted: #a09e97; --rule: #55534e; --sun: block; --moon: none; }
}
:root[data-theme="dark"] { color-scheme: dark; --paper: #171717; --ink: #ecebe6; --ink-2: #c9c7c0; --muted: #a09e97; --rule: #55534e; --sun: block; --moon: none; }

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 81.25%; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.75 var(--font);
  font-synthesis: none;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: .22em; }
a:hover { background: var(--ink); color: var(--paper); text-decoration: none; } /* the old terminal's reverse video */
:focus-visible { outline: 1px dashed var(--ink); outline-offset: 2px; }
img { max-width: 100%; }
main { flex: 1 0 auto; }

.wrap { width: 100%; max-width: 46rem; margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2rem); }

/* top line: name on the left, connection status on the right */
.site-header { border-bottom: 1px dashed var(--rule); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; padding-block: .5rem; font-size: .875rem; }
.theme-toggle { display: grid; place-items: center; width: 1.9rem; height: 1.9rem; padding: 0; border: 1px dashed var(--rule); background: transparent; color: var(--ink); cursor: pointer; }
.theme-toggle svg { width: .95rem; height: .95rem; }
.theme-toggle .i-sun { display: var(--sun); }
.theme-toggle .i-moon { display: var(--moon); }
html:not(.js) .theme-toggle { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.brand { font-weight: 700; text-decoration: none; }

.intro { padding-block: 2.75rem 2rem; text-align: center; }
.mark { /* the side mascot, drawn in the text color so it follows the theme */
  display: block;
  width: 9rem;
  height: 4.5rem;
  margin: 0 auto 1.25rem;
  background: currentColor;
  -webkit-mask: url(/logo.svg) center / contain no-repeat;
  mask: url(/logo.svg) center / contain no-repeat;
}
.intro h1 { margin: 0; font-size: 1.25rem; font-weight: 400; line-height: 1.4; }

/* ══ 만든 것들 (2) ══ : a title set into a double rule */
.products h2 { display: flex; align-items: center; gap: 1rem; margin: 0 0 1.5rem; font-size: 1rem; font-weight: 400; }
.products h2::before,
.products h2::after { content: ""; flex: 1; border-top: 3px double var(--rule); }

.products ol { margin: 0; padding: 0; list-style: none; }
.product { display: grid; grid-template-columns: 4ch minmax(0, 1fr); column-gap: .5rem; padding-block: 1.25rem; border-top: 1px dashed var(--rule); }
.product:first-child { border-top: 0; padding-top: 0; }
.product > * { grid-column: 2; margin: 0; }
.product .num { grid-column: 1; grid-row: 2; color: var(--muted); }
.product .num::after { content: "."; }
.product h3 { grid-row: 2; font-size: 1rem; line-height: 1.75; }
.summary { color: var(--ink-2); }
.link { font-size: .875rem; color: var(--muted); }
.link::before { content: "▶ "; }
.link a { color: var(--muted); }

/* the screenshot, in a dashed frame like a captured screen */
.shot { display: block; grid-row: 1; margin-bottom: .9rem; padding: .35rem; border: 1px dashed var(--rule); text-decoration: none; }
.shot:hover { background: none; }
.shot img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: top; filter: grayscale(.35); }
.shot:hover img { filter: none; }
@media (min-width: 40rem) { /* text first, like a menu; the picture as a small thumbnail on the right */
  .product { grid-template-columns: 4ch minmax(0, 1fr) 11rem; column-gap: 1rem; }
  .product .num, .product h3 { grid-row: 1; }
  .shot { grid-column: 3; grid-row: 1 / span 3; align-self: start; margin: 0; }
}
.shot-empty { /* no picture yet: the name on a dot screen */
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  color: var(--muted);
  background: radial-gradient(var(--rule) 1px, transparent 1.2px) 0 0 / 8px 8px;
}

.site-footer { margin-top: 3rem; border-top: 1px dashed var(--rule); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem 1rem; padding-block: .6rem 2rem; font-size: .875rem; color: var(--muted); }
.site-footer p { margin: 0; }
.site-footer a { color: inherit; }
