:root {
  color-scheme: light dark;
  --ink:#17212b;
  --muted:#5d6a78;
  --paper:#f8fafc;
  --surface:#fff;
  --line:#dce3ea;
  --blue:#1769aa;
  --green:#227b5a;
  --gold:#a66c13;
  --coral:#cd5748;
  --shadow:0 22px 60px rgba(22,35,49,.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html:lang(ko) {
  word-break: keep-all;
  overflow-wrap: break-word;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans KR", sans-serif;
  line-height: 1.65;
}

a {
  color: inherit;
  text-underline-offset: 0.18em;
}

img {
  max-width: 100%;
}

.skip-link {
  position: fixed;
  inset-block-start: -5rem;
  inset-inline-start: 1rem;
  z-index: 100;
  padding: 0.7rem 1rem;
  background: var(--ink);
  color: white;
}

.skip-link:focus {
  inset-block-start: 1rem;
}

.site-header {
  position: sticky;
  inset-block-start: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(14px);
}

.nav, .site-footer > div {
  width: min(1120px, 100% - 2rem);
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 900;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  inline-size: 38px;
  block-size: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, #2377bb, #33a279);
  color: white;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
}

.brand-mark.large {
  inline-size: 88px;
  block-size: 88px;
  font-size: 1.1rem;
}

.nav-links, .language-switcher, .actions, .taxonomy-links, .site-footer nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.nav-links > a, .taxonomy-links a, .site-footer a {
  text-decoration: none;
  font-weight: 700;
  color: var(--muted);
}

.language-switcher {
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}

.language-switcher a, .language-switcher span {
  padding: 0.25rem 0.65rem;
  text-decoration: none;
  font-size: 0.82rem;
}

.language-switcher span {
  background: var(--ink);
  color: var(--surface);
}

.nav-toggle {
  display: none;
}

.portal-hero, .portal-section, .blog-shell, .post-shell {
  width: min(1120px, 100% - 2rem);
  margin-inline: auto;
}

.portal-hero {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 4rem;
  align-items: center;
  min-height: 70vh;
  padding-block: 5rem;
}

.portal-hero > *, .app-grid > *, .contact > * {
  min-inline-size: 0;
}

.portal-hero h1, .portal-hero h2, .portal-hero p, .portal-section h2, .app-card h3, .app-card p, .app-card a, .contact a {
  overflow-wrap: break-word;
}

.portal-hero .actions > *, .app-card .actions > *, .contact a {
  max-inline-size: 100%;
}

.portal-hero h1 {
  max-width: 850px;
  margin: 0.15em 0;
  font-size: clamp(3rem, 7vw, 6.4rem);
  line-height: 0.96;
  letter-spacing: -0.055em;
}

.portal-hero > div > p {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.2rem;
}

.portal-hero aside {
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.eyebrow {
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.button {
  display: inline-flex;
  padding: 0.75rem 1.1rem;
  border-radius: 9px;
  background: var(--ink);
  color: var(--surface);
  font-weight: 800;
  text-decoration: none;
}

.button.secondary {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
}

.portal-section {
  padding-block: 5rem;
  border-top: 1px solid var(--line);
}

.portal-section > header {
  max-width: 700px;
  margin-block-end: 2rem;
}

.portal-section h2, .blog-hero h1 {
  margin: 0.2rem 0;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.app-card, .post-card {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.app-card {
  border-top: 5px solid var(--blue);
}

.app-card.green {
  border-top-color: var(--green);
}

.app-card.gold {
  border-top-color: var(--gold);
}

.app-card img {
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.post-list {
  display: grid;
  gap: 1rem;
}

.split .post-list {
  display: block;
}

.post-card {
  margin-block: 1rem;
}

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

.post-card h2 a {
  text-decoration: none;
}

.post-card p {
  color: var(--muted);
}

.post-meta {
  margin: 0;
  font-size: 0.82rem;
}

.chips {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.chips span {
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--blue) 10%, var(--surface));
  font-size: 0.76rem;
}

.contact {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
}

.contact > div:last-child {
  display: grid;
  align-content: center;
  gap: 0.7rem;
}

.blog-shell, .post-shell {
  max-width: 840px;
  padding-block: 4rem;
}

.blog-hero {
  margin-block-end: 2.5rem;
}

.blog-hero > p {
  color: var(--muted);
  font-size: 1.1rem;
}

.post-header {
  padding-block-end: 2rem;
  border-bottom: 1px solid var(--line);
}

.post-description {
  font-size: 1.2rem;
  color: var(--muted);
}

.post-content {
  font-size: 1.08rem;
  padding-block: 2rem;
}

.post-content img {
  border-radius: 14px;
}

.post-content > p > img {
  display: block;
  width: 100%;
  height: auto;
}

.related-posts {
  margin-block-start: 4rem;
  border-top: 1px solid var(--line);
  padding-block-start: 2rem;
}

.media-embed {
  margin: 2rem 0;
}

.media-embed__frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #000;
  box-shadow: var(--shadow);
}

.media-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.media-embed figcaption {
  margin-block-start: 0.6rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.link-preview {
  display: grid;
  grid-template-columns: minmax(140px, 34%) 1fr;
  overflow: hidden;
  margin: 1.5rem 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 10px 30px rgba(22, 35, 49, 0.07);
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.link-preview:hover {
  transform: translateY(-2px);
  border-color: var(--blue);
  box-shadow: var(--shadow);
}

.link-preview:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

.link-preview__media {
  display: block;
  min-height: 150px;
  background: color-mix(in srgb, var(--blue) 8%, var(--surface));
}

.link-preview__media img {
  width: 100%;
  height: 100%;
  min-height: 150px;
  border-radius: 0;
  object-fit: cover;
}

.link-preview__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.45rem;
  padding: 1.25rem;
}

.link-preview__body strong {
  font-size: 1.08rem;
  line-height: 1.35;
}

.link-preview__body span {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.link-preview__body small {
  color: var(--blue);
  font-weight: 700;
}

.taxonomy-group {
  margin-block: 3rem;
}

.site-footer {
  margin-block-start: 3rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.search-input {
  inline-size: 100%;
  margin-block: 0.5rem 2rem;
  padding: 0.8rem 1rem;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink:#e8edf2;
    --muted:#aeb9c5;
    --paper:#0f151b;
    --surface:#171f27;
    --line:#2d3944;
    --shadow:0 22px 60px rgba(0,0,0,.25);
  }
  .button {
    color: #101820;
  }
}
@media (max-width: 800px) {
  .nav-toggle {
    display: block;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0.4rem 0.65rem;
    background: var(--surface);
    color: var(--ink);
  }
  .nav-links {
    display: none;
    position: absolute;
    inset: 68px 0 auto;
    padding: 1rem;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
  }
  .nav-links.is-open {
    display: flex;
  }
  .portal-hero, .split, .app-grid {
    grid-template-columns: 1fr;
  }
  .portal-hero {
    gap: 2rem;
    padding-block: 3rem;
  }
  .portal-hero h1 {
    font-size: clamp(2.25rem, 14vw, 5rem);
  }
  .contact {
    flex-direction: column;
  }
  .link-preview {
    grid-template-columns: 1fr;
  }
  .link-preview__media, .link-preview__media img {
    max-height: 220px;
  }
  .link-preview__body {
    padding: 1rem;
  }
}

/*# sourceMappingURL=site.css.map */