@font-face {
  font-family: "NeoDunggeunmo";
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src:
    url("/assets/fonts/neodgm/neodgm.woff2") format("woff2"),
    url("/assets/fonts/neodgm/neodgm.woff") format("woff");
}

:root {
  /* Edit these values first when changing the visual direction. */
  --font-sans: "NeoDunggeunmo", ui-monospace, monospace;
  /* Design palette */
  --palette-meadow-dark: #216004;
  --palette-sky-strong: #0563fa;
  --palette-sky-bright: #238efb;
  --palette-sky-light: #57a8f4;
  --palette-hill: #579c02;
  --palette-cloud: #eaf3fc;
  --palette-shadow-deep: #192b1e;
  --palette-cloud-shadow: #a6cdfb;
  --palette-grass-mid: #3a8402;
  --palette-hair-brown: #4a2d2a;
  --palette-sky-pale: #89b7f9;
  --palette-neutral-gray: #575f5f;
  --color-ink: #111418;
  --color-muted: #354047;
  --color-soft: #4a5557;
  --color-accent: #0563fa;
  --color-page: rgb(211, 211, 211);
  --color-panel: rgba(255, 255, 255, 0.58);
  --color-pill: rgba(255, 255, 255, 0.5);
  --color-line: rgba(17, 20, 24, 0.18);
  --color-divider: rgba(17, 20, 24, 0.16);
  --content-width: 1120px;
  --measure: 760px;
  --page-gutter: 40px;
  --radius-image: 12px;
  --radius-pill: 999px;
  --space-header: 24px;
  --space-section: 96px;
  --hero-title-size: clamp(1.8rem, 5.5vw, 4rem);
  --page-title-size: clamp(1.6rem, 4vw, 3.2rem);
  --body-size: 1.08rem;
  --summary-size: clamp(1.08rem, 2vw, 1.35rem);

  color: var(--color-ink);
  font-family: var(--font-sans);
  line-height: 1.5;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background-color: var(--palette-cloud);
  background-image: linear-gradient(
    to top,
    var(--palette-hill) 0%,
    var(--palette-cloud) 46%,
    var(--palette-sky-strong) 100%
  );
  background-attachment: fixed;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background-color: transparent;
}

.privacy-html {
  background-color: var(--palette-cloud-shadow);
  background-image: linear-gradient(
    to bottom,
    var(--palette-cloud-shadow) 0%,
    var(--palette-cloud) 100%
  );
}

.privacy-body {
  color: var(--palette-shadow-deep);
}

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

img {
  max-width: 100%;
  height: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-header);
  flex-wrap: wrap;
  width: min(var(--content-width), calc(100% - var(--page-gutter)));
  margin: 0 auto;
  padding: var(--space-header) 0;
}

.brand,
.site-nav,
.link-row {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  font-weight: 400;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-image);
}

.site-nav,
.link-row {
  flex-wrap: wrap;
  gap: 10px;
}

.site-nav {
  margin-left: auto;
  justify-content: flex-end;
}

.site-search {
  position: relative;
  flex: 0 0 168px;
  width: 168px;
  min-width: 0;
  margin-left: 18px;
}

.search-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.search-input {
  width: 100%;
  min-height: 28px;
  border: 0;
  border-bottom: 1px solid #000;
  border-radius: 0;
  padding: 0 0 3px;
  background: transparent;
  appearance: none;
  -webkit-appearance: none;
  box-shadow: none;
  color: #000;
  font: inherit;
}

.search-input::placeholder {
  color: rgba(0, 0, 0, 0.7);
}

.search-input:focus {
  outline: none;
  border-bottom-color: #000;
}

.search-input::-webkit-search-decoration,
.search-input::-webkit-search-cancel-button,
.search-input::-webkit-search-results-button,
.search-input::-webkit-search-results-decoration {
  -webkit-appearance: none;
}

.search-results {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 10;
  display: grid;
  width: min(320px, calc(100vw - var(--page-gutter)));
  border: 0;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: none;
}

.search-result,
.search-empty {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
}

.search-result + .search-result,
.search-empty {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.search-result:hover,
.search-result:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}

.search-kind {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.76rem;
  text-transform: uppercase;
}

.search-result strong {
  font-size: 0.96rem;
  color: #fff;
}

.search-result span:last-child,
.search-empty {
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.84rem;
  line-height: 1.45;
}

.site-nav a,
.link-row a {
  display: inline-flex;
  align-items: center;
  padding: 0;
  font-size: 0.92rem;
  font-weight: 400;
}

.project-links a {
  color: LinkText;
  text-decoration: underline;
}

.project-links a:visited {
  color: VisitedText;
}

.hero,
.page,
.listing {
  width: min(var(--content-width), calc(100% - var(--page-gutter)));
  margin: 0 auto;
}

.site-footer {
  width: min(var(--content-width), calc(100% - var(--page-gutter)));
  margin: 0 auto;
  padding: 0 0 28px;
  color: var(--palette-neutral-gray);
  font-size: 0.84rem;
}

.site-footer p {
  margin-bottom: 0;
}

.site-footer a {
  color: inherit;
}

.policy-header,
.policy-page {
  width: min(var(--content-width), calc(100% - var(--page-gutter)));
  margin: 0 auto;
}

.policy-header {
  padding: var(--space-header) 0 0;
}

.policy-home-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--palette-shadow-deep);
}

.policy-home-link img {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-image);
}

.policy-page {
  padding: 48px 0 var(--space-section);
}

.policy-sheet {
  max-width: 860px;
}

.hero {
  display: grid;
  gap: 28px;
  min-height: calc(100vh - 96px);
  align-content: start;
  justify-items: center;
  padding: 40px 0 var(--space-section);
  text-align: center;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--color-accent);
  font-size: 0.78rem;
  font-weight: 400;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 940px;
  margin-bottom: 0;
  font-size: var(--hero-title-size);
  line-height: 0.92;
}

.hero-image {
  display: block;
  width: 100%;
  border: 1px solid rgba(25, 43, 30, 0.18);
}

.hero-image-toggle {
  width: min(100%, 880px);
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.hero-image-stack {
  position: relative;
  display: block;
}

.hero-image-overlay {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 900ms ease;
}

.hero-image-toggle.is-active .hero-image-overlay,
.hero-image-toggle:hover .hero-image-overlay,
.hero-image-toggle:focus-visible .hero-image-overlay {
  opacity: 1;
}

.summary,
.hero-copy {
  max-width: 720px;
  color: var(--color-muted);
  font-size: var(--summary-size);
}

.page {
  padding: 64px 0 var(--space-section);
}

.page-header {
  margin-bottom: 56px;
}

.page-header h1 {
  font-size: var(--page-title-size);
}

.tag-filter,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-filter {
  margin: 0 0 28px;
}

.tag-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border: 1px solid rgba(25, 43, 30, 0.18);
  padding: 0 10px;
  background: rgba(234, 243, 252, 0.44);
  color: var(--palette-shadow-deep);
  font-size: 0.78rem;
  text-transform: lowercase;
}

.tag-chip.is-active {
  border-color: var(--palette-sky-strong);
  background: rgba(35, 142, 251, 0.16);
  color: var(--palette-shadow-deep);
}

.prose {
  max-width: var(--measure);
  color: var(--color-ink);
  font-size: var(--body-size);
}

.prose img {
  display: block;
  margin: 24px 0;
  border: 1px solid rgba(25, 43, 30, 0.16);
}

.prose a {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.card-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.card-list li + li {
  border-top: 1px solid var(--color-divider);
}

.card {
  display: grid;
  gap: 8px;
  padding: 24px 0;
}

.card h2 {
  margin-bottom: 0;
  font-size: 1.4rem;
}

.card p {
  max-width: 680px;
  margin-bottom: 0;
  color: var(--color-soft);
}

.card .tag-row {
  margin-top: 8px;
}

.meta {
  color: var(--color-accent);
  font-size: 0.82rem;
  font-weight: 400;
  text-transform: uppercase;
}

@media (max-width: 720px) {
  :root {
    --page-gutter: 28px;
    --hero-title-size: clamp(1.6rem, 10vw, 2.6rem);
    --page-title-size: clamp(1.45rem, 8vw, 2.3rem);
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    margin-left: 0;
    justify-content: flex-start;
  }

  .site-search {
    width: 100%;
    flex-basis: auto;
    margin-left: 0;
  }
}
