/* Idiuma — soft neutral minimalist theme */
:root {
  --bg: #f7f6f4;
  --bg-elevated: #ffffff;
  --bg-muted: #eceae6;
  --ink: #1c1b19;
  --ink-soft: #5a5752;
  --ink-faint: #8a8680;
  --line: #d9d5cf;
  --accent: #3d4a3e;
  --accent-hover: #2f3930;
  --accent-soft: #e4e8e3;
  --focus: #5f7a62;
  --danger: #8b3a3a;
  --success: #2f5d3a;
  --radius: 4px;
  --shadow-soft: 0 12px 40px rgba(28, 27, 25, 0.06);
  --font-display: "Hahmlet", "Noto Serif KR", serif;
  --font-body: "IBM Plex Sans KR", "Noto Sans KR", sans-serif;
  --max: 1120px;
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(61, 74, 62, 0.07), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(212, 196, 168, 0.18), transparent 50%),
    var(--bg);
  min-height: 100vh;
}

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

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color 0.2s var(--ease);
}

a:hover {
  color: var(--accent-hover);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--ink);
}

p {
  margin: 0 0 1rem;
}

ul, ol {
  padding-left: 1.25rem;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 1000;
  background: var(--ink);
  color: var(--bg);
  padding: 0.6rem 1rem;
}

.skip-link:focus {
  top: 1rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 246, 244, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.03em;
}

.logo:hover {
  color: var(--accent);
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.15rem 1.35rem;
}

.nav-list a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-list a:hover,
.nav-list a[aria-current="page"] {
  color: var(--ink);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.95rem;
  background: var(--accent);
  color: var(--bg) !important;
  border-radius: var(--radius);
}

.nav-cta:hover {
  background: var(--accent-hover);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  position: relative;
}

.nav-toggle-bar::before,
.nav-toggle-bar::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-bar::before { top: -6px; }
.nav-toggle-bar::after { top: 6px; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: var(--header-h);
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--line);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s var(--ease);
  }
  .site-nav.is-open { max-height: 420px; }
  .nav-list {
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.25rem 1.5rem;
    gap: 0;
  }
  .nav-list a {
    display: block;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--line);
  }
  .nav-cta {
    margin-top: 0.75rem;
    justify-content: center;
    border-bottom: none !important;
  }
}

/* Layout helpers */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 4.5rem 0;
}

.section-muted {
  background: var(--bg-muted);
}

.eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.lead {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 38rem;
}

.section-head {
  margin-bottom: 2.5rem;
  max-width: 36rem;
}

.section-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0 0 0.75rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 560;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: var(--bg);
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* Hero — full bleed */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: grid;
  align-items: end;
  color: #f7f6f4;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: heroZoom 18s var(--ease) forwards;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(20, 22, 20, 0.25) 0%, rgba(20, 22, 20, 0.72) 70%, rgba(20, 22, 20, 0.88) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 4rem 1.25rem 4.5rem;
  width: 100%;
  animation: riseIn 0.9s var(--ease) both;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 8vw, 5.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  margin: 0 0 0.6rem;
  line-height: 1.05;
}

.hero h1 {
  color: #f7f6f4;
  font-size: clamp(1.35rem, 3.2vw, 2rem);
  font-weight: 500;
  max-width: 22ch;
  margin: 0 0 1rem;
}

.hero-support {
  max-width: 34rem;
  color: rgba(247, 246, 244, 0.85);
  font-size: 1.05rem;
  margin: 0;
}

.hero .btn-primary {
  background: #f7f6f4;
  color: var(--ink);
}

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

.hero .btn-ghost {
  border-color: rgba(247, 246, 244, 0.45);
  color: #f7f6f4;
}

.hero .btn-ghost:hover {
  border-color: #f7f6f4;
  color: #f7f6f4;
}

@keyframes heroZoom {
  from { transform: scale(1.08); }
  to { transform: scale(1); }
}

@keyframes riseIn {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Home: trust strip after hero */
.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.trust-item {
  background: var(--bg);
  padding: 2rem 1.5rem;
  text-align: center;
}

.trust-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.trust-item span {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

@media (max-width: 700px) {
  .trust-strip { grid-template-columns: 1fr; }
}

/* Course / content grids */
.course-grid,
.blog-grid,
.tier-grid {
  display: grid;
  gap: 1.75rem;
}

.course-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

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

.tier-grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  align-items: stretch;
}

.course-item,
.blog-item {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.course-item img,
.blog-item img,
.page-hero-img img,
.instructor-photo,
.case-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--bg-muted);
}

.course-item h3,
.blog-item h3 {
  margin: 0;
  font-size: 1.25rem;
}

.course-item h3 a,
.blog-item h3 a {
  color: var(--ink);
  text-decoration: none;
}

.course-item h3 a:hover,
.blog-item h3 a:hover {
  color: var(--accent);
}

.meta {
  color: var(--ink-faint);
  font-size: 0.88rem;
}

/* Page hero (inner pages) — full bleed */
.page-hero {
  position: relative;
  min-height: 42vh;
  display: flex;
  align-items: flex-end;
  color: #f7f6f4;
  overflow: hidden;
}

.page-hero-img {
  position: absolute;
  inset: 0;
}

.page-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: auto;
  border-radius: 0;
}

.page-hero-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 22, 20, 0.2), rgba(20, 22, 20, 0.78));
}

.page-hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  padding: 3.5rem 1.25rem;
}

.page-hero h1 {
  color: #f7f6f4;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  margin: 0 0 0.5rem;
  max-width: 18ch;
}

.page-hero p {
  color: rgba(247, 246, 244, 0.85);
  margin: 0;
  max-width: 36rem;
}

.page-hero-plain {
  padding: 3.5rem 0 2rem;
}

.page-hero-plain h1 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  margin: 0 0 0.75rem;
}

/* Benefits / pedagogy */
.benefit-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1.5rem;
}

.benefit-list li {
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1rem;
}

.benefit-num {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--accent);
}

/* Testimonials */
.quote-stack {
  display: grid;
  gap: 2rem;
}

.quote {
  margin: 0;
  padding: 0;
  border: none;
}

.quote p {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  line-height: 1.55;
  margin: 0 0 1rem;
}

.quote footer {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.quote-compact p {
  font-family: var(--font-body);
  font-size: 1.05rem;
}

.rating {
  color: var(--accent);
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

/* Pricing tiers — interaction containers */
.tier {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  padding: 1.75rem;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.tier:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-soft);
}

.tier-featured {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.tier h3 {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
}

.tier-price {
  font-family: var(--font-display);
  font-size: 2rem;
  margin: 0.75rem 0;
}

.tier-price span {
  font-size: 0.95rem;
  color: var(--ink-soft);
  font-family: var(--font-body);
}

.tier ul {
  margin: 0 0 1.5rem;
  padding-left: 1.1rem;
  color: var(--ink-soft);
  flex: 1;
}

.tier .btn {
  width: 100%;
}

/* Forms */
.form {
  display: grid;
  gap: 1.15rem;
  max-width: 36rem;
}

.form-field {
  display: grid;
  gap: 0.4rem;
}

.form-field label {
  font-weight: 550;
  font-size: 0.95rem;
}

.form-field input,
.form-field select,
.form-field textarea {
  font: inherit;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  color: var(--ink);
  width: 100%;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 2px solid var(--focus);
  outline-offset: 1px;
  border-color: var(--focus);
}

.form-field textarea {
  min-height: 140px;
  resize: vertical;
}

.field-error {
  color: var(--danger);
  font-size: 0.88rem;
  min-height: 1.2em;
}

.form-status {
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  display: none;
}

.form-status.is-success {
  display: block;
  background: #e5efe7;
  color: var(--success);
}

.form-status.is-error {
  display: block;
  background: #f4e6e6;
  color: var(--danger);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
}

@media (max-width: 800px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-aside {
  background: var(--bg-muted);
  padding: 1.75rem;
  border-radius: var(--radius);
}

.contact-aside h2 {
  font-size: 1.2rem;
  margin: 0 0 1rem;
}

.contact-aside address {
  font-style: normal;
  margin-bottom: 1rem;
  color: var(--ink-soft);
}

/* Course detail */
.module-list {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: mod;
}

.module-list li {
  counter-increment: mod;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
}

.module-list li::before {
  content: "모듈 " counter(mod, decimal-leading-zero);
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
  margin-bottom: 0.35rem;
  font-weight: 600;
}

.module-list h3 {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
}

.instructor {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 1.5rem;
  align-items: start;
}

.instructor-photo {
  aspect-ratio: 1;
  border-radius: var(--radius);
}

@media (max-width: 600px) {
  .instructor { grid-template-columns: 1fr; }
}

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 1rem 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 560;
  list-style: none;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  float: right;
  color: var(--ink-faint);
}

.faq details[open] summary::after {
  content: "−";
}

.faq details p {
  margin: 0.75rem 0 0;
  color: var(--ink-soft);
}

/* Blog article */
.article-body {
  max-width: 42rem;
  margin: 0 auto;
  padding: 3rem 1.25rem 4rem;
}

.article-body h2 {
  font-size: 1.45rem;
  margin: 2.25rem 0 0.75rem;
}

.article-cover {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.article-cover img {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  border-radius: var(--radius);
}

/* Legal */
.legal {
  max-width: 44rem;
  margin: 0 auto;
  padding: 3rem 1.25rem 4.5rem;
}

.legal h1 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 0.5rem;
}

.legal .updated {
  color: var(--ink-faint);
  margin-bottom: 2rem;
}

.legal h2 {
  font-size: 1.25rem;
  margin: 2rem 0 0.75rem;
}

.legal table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  margin: 1rem 0;
}

.legal th,
.legal td {
  border: 1px solid var(--line);
  padding: 0.65rem 0.75rem;
  text-align: left;
  vertical-align: top;
}

.legal th {
  background: var(--bg-muted);
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: rgba(247, 246, 244, 0.78);
  margin-top: 3rem;
  padding: 3.5rem 0 2rem;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.logo-footer {
  color: #f7f6f4;
}

.footer-tagline {
  margin: 0.75rem 0 0;
  max-width: 22rem;
  color: rgba(247, 246, 244, 0.65);
}

.footer-cols {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2.5rem;
}

.footer-brand {
  grid-column: 1;
}

.footer-heading {
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(247, 246, 244, 0.45);
  margin: 0 0 1rem;
  font-weight: 600;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li {
  margin-bottom: 0.45rem;
}

.site-footer a {
  color: rgba(247, 246, 244, 0.78);
  text-decoration: none;
}

.site-footer a:hover {
  color: #f7f6f4;
}

.footer-address {
  font-style: normal;
  font-size: 0.92rem;
  line-height: 1.55;
}

.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(247, 246, 244, 0.12);
  font-size: 0.88rem;
  color: rgba(247, 246, 244, 0.45);
}

@media (max-width: 800px) {
  .footer-cols {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 200;
  max-width: 480px;
  margin: 0 auto;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  padding: 1.25rem;
  border-radius: var(--radius);
  animation: riseIn 0.45s var(--ease);
}

.cookie-banner[hidden] {
  display: none !important;
}

.cookie-banner p {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cookie-actions .btn {
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
}

.inline-error {
  background: #f4e6e6;
  color: var(--danger);
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  margin: 1rem 1.25rem;
}

/* 404 */
.error-page {
  min-height: 60vh;
  display: grid;
  place-content: center;
  text-align: center;
  padding: 3rem 1.25rem;
}

.error-page h1 {
  font-size: clamp(3rem, 10vw, 6rem);
  margin: 0;
  color: var(--accent);
}

/* Journey / split */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (max-width: 800px) {
  .split { grid-template-columns: 1fr; }
}

.split img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
}

.prose-narrow {
  max-width: 40rem;
}

.cta-band {
  background: var(--accent);
  color: #f7f6f4;
  padding: 3.5rem 0;
  text-align: center;
}

.cta-band h2 {
  color: #f7f6f4;
  margin: 0 0 0.75rem;
}

.cta-band p {
  color: rgba(247, 246, 244, 0.8);
  margin: 0 auto 1.5rem;
  max-width: 32rem;
}

.cta-band .btn-primary {
  background: #f7f6f4;
  color: var(--ink);
}

.case-block {
  display: grid;
  gap: 1.5rem;
  padding: 2rem 0;
  border-top: 1px solid var(--line);
}

.case-block h3 {
  margin: 0 0 0.5rem;
}

.note {
  color: var(--ink-soft);
  font-size: 0.95rem;
}
