/* BeyondWave — static site stylesheet
   No external fonts, no third-party assets. */

:root {
  --ink: #16181d;
  --muted: #5f6673;
  --line: #e6e8ec;
  --soft: #f6f7f9;
  --accent: #8a6a3b;
  --wrap: 1120px;
  --read: 880px;
  --font: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic",
    "Noto Sans KR", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: -0.01em;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

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

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

h1,
h2,
h3 {
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 10px 16px;
  background: #fff;
  border: 1px solid var(--line);
  z-index: 100;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(180%) blur(8px);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  min-height: 66px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.brand {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.brand em {
  font-style: normal;
  color: var(--accent);
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--muted);
}

.nav a {
  padding: 4px 0;
  border-bottom: 1px solid transparent;
}

.nav a:hover {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.nav a[aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
}

/* ---------- Home ---------- */

.hero {
  padding: 80px 0 56px;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero h1 {
  margin: 16px 0 0;
  font-size: clamp(30px, 4.6vw, 50px);
  font-weight: 800;
  max-width: 20ch;
}

.hero p {
  margin: 20px 0 0;
  max-width: 60ch;
  font-size: 17px;
  color: var(--muted);
}

.section {
  padding: 60px 0 72px;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.section-head h2 {
  margin: 0;
  font-size: 22px;
}

.section-head span {
  font-size: 13px;
  color: var(--muted);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 26px;
}

.card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.card:hover,
.card:focus-visible {
  transform: translateY(-2px);
  border-color: #d6dae1;
  box-shadow: 0 14px 30px rgba(20, 22, 26, 0.09);
}

.card-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--soft);
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-media.is-contain {
  background: #f2f0ec;
}

.card-media.is-contain img {
  object-fit: contain;
  padding: 16px;
}

.card-body {
  padding: 18px 20px 22px;
}

.card-body h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
}

.card-body p {
  margin: 8px 0 0;
  font-size: 14px;
  color: var(--muted);
}

.card-meta {
  margin: 14px 0 0;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: #8b919c;
}

.note {
  border-top: 1px solid var(--line);
  padding: 44px 0 16px;
  color: var(--muted);
  font-size: 14px;
}

.note h2 {
  margin: 0 0 12px;
  font-size: 15px;
  color: var(--ink);
}

.note ul {
  margin: 0;
  padding-left: 18px;
}

.note li + li {
  margin-top: 6px;
}

/* ---------- Project / content pages ---------- */

.page {
  max-width: var(--read);
  margin: 0 auto;
  padding: 52px 20px 80px;
}

.breadcrumb {
  margin: 0 0 26px;
  font-size: 13px;
  color: var(--muted);
}

.breadcrumb a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.breadcrumb span {
  margin: 0 8px;
  color: #c3c8d0;
}

.page h1 {
  margin: 0;
  font-size: clamp(25px, 3.6vw, 36px);
  font-weight: 800;
}

.page .entry-meta {
  margin: 12px 0 0;
  font-size: 13.5px;
  color: var(--muted);
}

.page .lead {
  margin: 22px 0 0;
  font-size: 16px;
  color: var(--muted);
  max-width: 62ch;
}

.gallery {
  margin-top: 40px;
}

.gallery img {
  width: auto;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  background: var(--soft);
}

.gallery img + img {
  margin-top: 0;
}

.lede-rule {
  height: 1px;
  margin: 34px 0 0;
  background: var(--line);
  border: 0;
}

.pager {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 52px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.pager a {
  color: var(--muted);
}

.pager a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.pager .next {
  margin-left: auto;
  text-align: right;
}

/* ---------- 404 ---------- */

.notfound {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-height: 62vh;
  padding: 60px 20px;
  max-width: var(--read);
  margin: 0 auto;
}

.notfound .code {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--accent);
}

.notfound h1 {
  margin: 14px 0 0;
  font-size: clamp(26px, 4vw, 38px);
}

.notfound p {
  margin: 14px 0 0;
  color: var(--muted);
}

.btn {
  display: inline-block;
  margin-top: 28px;
  padding: 12px 22px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
}

.btn:hover {
  background: var(--ink);
  color: #fff;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 34px 0;
  font-size: 13px;
  color: var(--muted);
}

.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.site-footer nav {
  display: flex;
  gap: 16px;
}

.site-footer a:hover {
  color: var(--ink);
}

@media (max-width: 620px) {
  .hero {
    padding: 56px 0 44px;
  }

  .section {
    padding: 44px 0 56px;
  }

  .nav {
    gap: 16px;
    font-size: 13px;
  }

  .page {
    padding-top: 40px;
  }
}

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

  .card {
    transition: none;
  }
}
