@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/variable/pretendardvariable-dynamic-subset.css");

/* ==========================================================================
   dTime — shared design system, mirrored from index.html so every subpage
   inherits the home page's tokens, header, footer, fonts, and button shapes.
   Olive #778647 is the accent. Pills (999px), Pretendard, fixed blurred header.
   ========================================================================== */

:root {
  --ink: rgba(0, 0, 0, 0.875);
  --muted: rgba(0, 0, 0, 0.608);
  --soft: rgba(0, 0, 0, 0.56);
  --line: rgba(0, 0, 0, 0.09);
  --line-strong: rgba(0, 0, 0, 0.14);
  --surface: #fff;
  --panel: #f7f7f6;
  --panel-2: #fbfbfa;
  --black: #080808;
  --olive: #778647;
  --olive-dark: #465126;
  --olive-soft: #eef2dc;
  --olive-warm: #9a8544;
  --warn: #9e4238;
  --radius: 12px;
  --shadow: 0 18px 70px rgba(30, 28, 45, 0.12), 0 2px 10px rgba(0, 0, 0, 0.06);
  --shadow-soft: 0 14px 46px rgba(72, 82, 40, 0.10), 0 2px 10px rgba(0, 0, 0, 0.045);
  --shadow-card: 0 16px 48px rgba(0, 0, 0, 0.055);
  --container: 1200px;
  font-family: "Pretendard Variable", Pretendard, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: white;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: white; }

body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font: 15px/1.45 "Pretendard Variable", Pretendard, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; font-family: inherit; }

.italic, em.italic { font-family: "Pretendard Variable", Pretendard, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-style: italic; font-weight: 400; letter-spacing: -0.045em; }

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

/* ---------- Header — identical to index.html ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: 64px;
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid rgba(0, 0, 0, 0.055);
  backdrop-filter: blur(18px);
}
.header-inner {
  height: 64px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
}
.brand { display: inline-flex; align-items: center; width: 104px; height: 24px; outline-offset: 4px; }
.brand-mark {
  display: inline-flex;
  align-items: center;
  font-family: "Pretendard Variable", Pretendard, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -.05em;
  line-height: 1;
  color: var(--ink);
}
.brand-mark__brace { color: var(--ink); padding: 0 1px; }
.brand { width: auto; min-width: 84px; }
.site-footer .brand-mark { font-size: 20px; }

.brand svg { width: 104px; height: auto; display: block; }

.nav-links, .nav-actions { display: flex; align-items: center; gap: 4px; }
.nav-links { justify-self: center; }
.nav-actions { justify-self: end; gap: 8px; }

.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  padding: 0 9px;
  border-radius: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 450;
  letter-spacing: -0.01em;
  transition: color .14s ease, background .14s ease;
}
.nav-link:hover { color: var(--ink); background: rgba(0, 0, 0, 0.045); }
.nav-link.is-current { color: var(--olive-dark); background: var(--olive-soft); }

.key {
  display: inline-grid;
  place-items: center;
  min-width: 16px;
  height: 16px;
  margin-left: 8px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--soft);
  font-size: 10px;
  line-height: 1;
  text-transform: uppercase;
  background: #fff;
}

/* ---------- Buttons — pill-shaped, identical to home ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  gap: 8px;
  border-radius: 999px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink);
  font-size: 13px;
  font-weight: 520;
  letter-spacing: -0.012em;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease, color .16s ease, border-color .16s ease;
  font-family: inherit;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.985); }
.btn-sm { height: 28px; padding: 0 10px; font-size: 12.5px; }
.btn-lg { height: 48px; padding: 0 22px; font-size: 14px; }
.btn-light { background: rgba(255, 255, 255, 0.82); color: var(--ink); box-shadow: inset 0 -1px rgba(0,0,0,.045); }
.btn-dark { background: var(--black); color: white; border-color: #000; box-shadow: 0 8px 24px rgba(0,0,0,.16); }
.btn-ghost { border-color: transparent; color: var(--muted); background: transparent; }
.btn-olive {
  background: var(--olive);
  color: white;
  border-color: var(--olive-dark);
  box-shadow: 0 10px 28px rgba(70, 81, 38, .22);
}
.btn-olive:hover { background: var(--olive-dark); }

/* ---------- Mobile menu ---------- */
.mobile-menu {
  display: none;
  justify-self: end;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.mobile-menu span, .mobile-menu::before, .mobile-menu::after {
  content: "";
  display: block;
  width: 18px;
  height: 1.5px;
  background: currentColor;
  border-radius: 1px;
}
.mobile-menu span { margin: 5px 0; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 34px 0 58px;
  color: var(--muted);
  margin-top: 96px;
}
.footer-grid { display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.footer-minimal-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 16px; max-width: 680px; }
.system {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.4;
}
.system::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--olive);
  box-shadow: 0 0 0 4px rgba(119, 134, 71, .12);
  animation: pulseDot 2.4s ease-in-out infinite;
}
.footer-minimal-links a { display: block; padding: 4px 0; font-size: 13px; color: var(--muted); }
.footer-minimal-links a:hover { color: var(--ink); }

/* ---------- Type primitives ---------- */
.eyebrow {
  color: var(--soft);
  font-size: 12px;
  font-weight: 680;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.label-mono {
  font-family: "Pretendard Variable", Pretendard, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--olive);
}
.pill {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--olive-soft);
  color: var(--olive-dark);
  border: 1px solid rgba(119, 134, 71, .22);
  font-size: 12px;
  font-weight: 540;
}

/* ---------- Page header (used on every subpage) ---------- */
.page-shell, .page-header {
  position: relative;
  padding: 128px 0 16px;
  overflow: visible;
}
.page-shell::before, .page-header::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 40px;
  width: min(1280px, 96vw);
  height: 820px;
  transform: translateX(-50%);
  background:
    radial-gradient(ellipse 50% 38% at 28% 30%, rgba(167, 180, 99, .42), transparent 70%),
    radial-gradient(ellipse 55% 42% at 70% 36%, rgba(121, 143, 67, .32), transparent 72%),
    radial-gradient(ellipse 60% 40% at 50% 60%, rgba(218, 203, 142, .24), transparent 72%);
  filter: blur(60px);
  opacity: .9;
  pointer-events: none;
  z-index: 0;
}
.page-shell > .container, .page-header__inner {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.page-eyebrow {
  color: var(--olive-dark);
  font-size: 12px;
  font-weight: 680;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.page-header h1,
.page-title {
  margin: 0 0 18px;
  font-size: 56px;
  line-height: 1;
  font-weight: 520;
  letter-spacing: -0.062em;
  max-width: 760px;
  text-wrap: balance;
}
.page-header h1 em,
.page-title em {
  font-family: "Pretendard Variable", Pretendard, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.075em;
  color: var(--olive-dark);
}
.page-header p.lead,
.page-lead {
  max-width: 600px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.62;
  margin: 0;
}

/* ---------- Forms (mirroring home tone — rounded inputs) ---------- */
.field { display: grid; gap: 6px; }
.field-label {
  font-size: 13px;
  font-weight: 540;
  letter-spacing: -0.005em;
  color: var(--ink);
}
.field-hint { color: var(--soft); font-size: 12.5px; }
.input, .textarea, .select {
  width: 100%;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #fff;
  padding: 0 14px;
  font: inherit;
  font-size: 14.5px;
  color: var(--ink);
  transition: border-color .14s ease, box-shadow .14s ease;
}
.textarea { height: auto; min-height: 110px; padding: 12px 14px; resize: vertical; line-height: 1.5; }
.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: var(--olive);
  box-shadow: 0 0 0 4px rgba(119, 134, 71, .15);
}
.input::placeholder, .textarea::placeholder { color: rgba(0,0,0,.36); }

/* ---------- Animations ---------- */
@keyframes pageRise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 0 4px rgba(119, 134, 71, .10); }
  50% { box-shadow: 0 0 0 7px rgba(119, 134, 71, .02); }
}
.rise { animation: pageRise .55s cubic-bezier(.2,.8,.2,1) both; }
.rise-1 { animation-delay: .04s; }
.rise-2 { animation-delay: .12s; }
.rise-3 { animation-delay: .20s; }
.rise-4 { animation-delay: .28s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .site-header.is-open { background: rgba(255, 255, 255, 0.98); }
  .header-inner { grid-template-columns: 1fr auto; position: relative; }
  .nav-links, .nav-actions { display: none; }
  .mobile-menu { display: inline-flex; }
  .site-header.is-open .nav-links,
  .site-header.is-open .nav-actions {
    position: absolute;
    left: 24px; right: 24px;
    display: grid;
    justify-items: stretch;
    justify-self: stretch;
    gap: 8px;
    width: auto;
    padding: 12px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 18px 48px rgba(0, 0, 0, .08);
    backdrop-filter: blur(18px);
    border-radius: 12px;
  }
  .site-header.is-open .nav-links { top: 64px; }
  .site-header.is-open .nav-actions { top: 220px; }
  .site-header.is-open .nav-link,
  .site-header.is-open .nav-actions .btn { width: 100%; justify-content: center; height: 40px; }
  .page-shell { padding-top: 104px; }
  .page-title { font-size: 40px; }
  .footer-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
  .footer-minimal-links { justify-content: flex-start; }
}

@media (max-width: 560px) {
  .container, .header-inner { padding-left: 24px; padding-right: 24px; }
  .page-title { font-size: 32px; }
}
