/* Still Saju — shared styles */

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

:root {
  --paper: #f3ebdd;
  --paper-deep: #ece1cd;
  --card: #f7f1e6;
  --ink: #221e1c;
  --ink-soft: #5c544c;
  --ink-faint: #8a8075;
  --rule: #d8cab2;
  --seal: #b22a24;
  --seal-deep: #8f1f1a;
  --serif: "Noto Serif", "Noto Serif KR", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --measure: 40rem;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  background-color: var(--paper);
  /* faint paper grain */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .38 0 0 0 0 .28 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--seal-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--seal); }
img { max-width: 100%; height: auto; display: block; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--card); padding: .5rem 1rem; z-index: 10; }

/* ---------- header & footer ---------- */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 68rem;
  width: 100%;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.125rem;
  letter-spacing: .01em;
}
.brand img { width: 34px; height: 34px; }
.brand:hover { color: var(--ink); }

.site-nav { display: flex; gap: 1.75rem; }
.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: .8rem;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); }
.site-nav a[aria-current="page"] { border-bottom: 1px solid var(--seal); }

main { flex: 1; width: 100%; }

.site-footer {
  max-width: 68rem;
  width: 100%;
  margin: 0 auto;
  padding: 3rem 1.5rem 2.5rem;
  color: var(--ink-faint);
  font-size: .85rem;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  justify-content: space-between;
  border-top: 1px solid var(--rule);
}
.site-footer a { color: var(--ink-soft); }

/* ---------- shared bits ---------- */

.eyebrow {
  font-size: .78rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--seal-deep);
  margin: 0;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .8rem 1.5rem;
  border-radius: 2px;
  font-family: var(--serif);
  font-size: 1rem;
  text-decoration: none;
  border: 1px solid var(--ink);
  transition: background-color .2s, color .2s, border-color .2s;
}
.button-primary { background: var(--ink); color: var(--paper); }
.button-primary:hover { background: var(--seal-deep); border-color: var(--seal-deep); color: var(--paper); }
.button-quiet { background: transparent; color: var(--ink); }
.button-quiet:hover { background: var(--paper-deep); color: var(--ink); }

/* ---------- home (coming soon) ---------- */

.home-hero {
  max-width: 44rem;
  margin: 0 auto;
  padding: 5.5rem 1.5rem 4rem;
  text-align: center;
}
.home-hero .seal { width: 84px; height: 84px; margin: 0 auto 2.25rem; }
.home-hero h1 {
  font-size: clamp(2.3rem, 6vw, 3.6rem);
  line-height: 1.15;
  font-weight: 400;
  letter-spacing: -.01em;
  margin: 1rem 0 1.25rem;
}
.home-hero h1 em { font-style: italic; color: var(--seal-deep); }
.home-hero .lede { color: var(--ink-soft); font-size: 1.2rem; max-width: 32rem; margin: 0 auto 2.25rem; }
.home-hero .actions { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; }
.home-hero .note { margin-top: 1.25rem; font-size: .85rem; color: var(--ink-faint); }

.elements-band {
  display: flex;
  justify-content: center;
  gap: clamp(1.25rem, 5vw, 3.5rem);
  margin: 0 auto;
  padding: 0 1.5rem 4.5rem;
  color: var(--ink);
}
.elements-band span {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  line-height: 1;
  font-family: "Noto Serif KR", "Noto Serif CJK KR", "Songti SC", "Batang", serif;
  font-weight: 700;
}
.elements-band small {
  margin-top: .7rem;
  font-family: var(--serif);
  font-size: .7rem;
  font-weight: 400;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.section-title {
  max-width: 57rem;
  width: calc(100% - 3rem);
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--rule);
  padding-top: 2.5rem;
}
.section-title h2 { margin: 0; font-size: 1.5rem; font-weight: 400; }
.section-title a { font-size: .9rem; }

/* ---------- post cards ---------- */

.post-list {
  list-style: none;
  max-width: 60rem;
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
  display: grid;
  gap: 2rem;
}

.post-card {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--rule);
  padding: 1rem;
  color: inherit;
  text-decoration: none;
  transition: border-color .2s, transform .2s;
}
.post-card:hover { border-color: var(--ink-faint); color: inherit; transform: translateY(-2px); }
.post-card img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.post-card .meta { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); margin: 0 0 .5rem; }
.post-card h3 { font-size: 1.5rem; line-height: 1.3; font-weight: 600; margin: 0 0 .75rem; }
.post-card p { margin: 0; color: var(--ink-soft); font-size: 1rem; }
.post-card .more { display: inline-block; margin-top: 1rem; color: var(--seal-deep); font-size: .95rem; }

/* ---------- blog index ---------- */

.page-intro {
  max-width: 60rem;
  margin: 0 auto;
  padding: 4rem 1.5rem 2.5rem;
}
.page-intro h1 { font-size: clamp(2.2rem, 5vw, 3rem); font-weight: 400; margin: .75rem 0 .5rem; line-height: 1.15; }
.page-intro p { color: var(--ink-soft); margin: 0; max-width: 34rem; }

/* ---------- article ---------- */

.article { padding: 3.5rem 1.5rem 2rem; }
.article-head, .prose { max-width: var(--measure); margin: 0 auto; }
.article-head .crumb { font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; }
.article-head .crumb a { color: var(--ink-faint); text-decoration: none; }
.article-head .crumb a:hover { color: var(--seal-deep); }
.article-head h1 {
  font-size: clamp(2.1rem, 5.5vw, 3.1rem);
  line-height: 1.15;
  font-weight: 400;
  letter-spacing: -.01em;
  margin: 1rem 0 1rem;
}
.article-head .meta { color: var(--ink-faint); font-size: .9rem; margin: 0 0 2.5rem; }

.figure-wide { max-width: 52rem; margin: 0 auto 3rem; }
.figure-wide img { width: 100%; border: 1px solid var(--rule); }

.prose > * + * { margin-top: 1.25rem; }
.prose p { margin-bottom: 0; }
.prose h2 {
  font-size: 1.65rem;
  line-height: 1.3;
  font-weight: 600;
  margin: 3.5rem 0 0;
}
.prose h3 { font-size: 1.15rem; font-weight: 600; margin: 2rem 0 0; line-height: 1.4; }
.prose h3 + p { margin-top: .4rem; }
.prose .lead { font-size: 1.3rem; line-height: 1.6; }
.prose .kicker { font-style: italic; color: var(--ink-soft); }
.prose ul { padding-left: 1.2rem; }
.prose li + li { margin-top: .6rem; }
.prose li::marker { color: var(--seal); }
.prose figure { margin: 1.75rem 0 0; }
.prose figure img { border: 1px solid var(--rule); }
.prose figcaption { font-size: .85rem; color: var(--ink-faint); margin-top: .6rem; text-align: center; }
.prose .ko { font-family: "Noto Serif KR", "Noto Serif CJK KR", var(--serif); }

.cycle { width: 100%; height: auto; font-family: var(--serif); }

.callout {
  margin-top: 2rem !important;
  padding: 1.75rem 1.75rem 1.9rem;
  background: var(--card);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--seal);
}
.callout p { margin: 0; }
.callout p + p { margin-top: .75rem; }
.callout .button { margin-top: 1.25rem; }

.faq h3 { margin-top: 1.75rem; }

.article-end {
  max-width: var(--measure);
  margin: 4rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: .95rem;
}
.article-end .disclaimer { color: var(--ink-faint); font-size: .85rem; margin: 0; }

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

.not-found { max-width: 36rem; margin: 0 auto; padding: 6rem 1.5rem; text-align: center; }
.not-found h1 { font-weight: 400; font-size: 2.4rem; margin: 1rem 0 .5rem; }
.not-found p { color: var(--ink-soft); }

/* ---------- small screens ---------- */

@media (max-width: 680px) {
  body { font-size: 1.0625rem; }
  .site-header { padding-top: 1.1rem; }
  .home-hero { padding-top: 3.5rem; }
  .post-card { grid-template-columns: 1fr; gap: 1.1rem; padding: .75rem .75rem 1.25rem; }
  .post-card > div { padding: 0 .35rem; }
  .article { padding-top: 2.5rem; }
  .prose .lead { font-size: 1.18rem; }
  .callout { padding: 1.4rem; }
}
