/* TERL – minimal landing layout (extends Source base styles) */

:root {
  --terl-bg: #eef5f9;
  --terl-bg-alt: #e7f0f6;
  --terl-text: #0f1b2d;
  --terl-muted: rgba(15, 27, 45, .7);
  --terl-accent: #f06b63;
  --terl-shadow: rgba(15, 27, 45, .18);
  --terl-radius: 18px;
  --terl-max: 1120px;
}

/* containers */
.terl-container {
  width: min(var(--terl-max), calc(100% - 48px));
  margin: 0 auto;
}

/* NAV */
.terl-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0, 0, 0, .06);
}

.terl-nav__inner {
  height: 72px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}

.terl-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--terl-text);
  text-decoration: none;
}

.terl-brand__logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.terl-brand__text {
  font-weight: 800;
  letter-spacing: -0.02em;
}

.terl-brand__sub {
  color: var(--terl-muted);
  font-size: 12px;
  margin-left: 6px;
  white-space: nowrap;
}

.terl-menu {
  list-style: none;
  display: flex;
  gap: 22px;
  justify-content: center;
  padding: 0;
  margin: 0;
}

.terl-menu a {
  color: var(--terl-text);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}

.terl-actions {
  display: flex;
  justify-content: flex-end;
}

/* Buttons */
.terl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid rgba(0, 0, 0, .08);
  background: #fff;
  color: var(--terl-text);
}

.terl-btn--primary {
  background: var(--terl-accent);
  border-color: transparent;
  color: #0f1b2d;
}

.terl-btn--shadow {
  box-shadow: 0 10px 0 0 var(--terl-shadow);
}

/* HERO */
.terl-hero {
  background: var(--terl-bg);
  padding: 92px 0 60px;
}

.terl-kicker {
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--terl-muted);
  margin: 0 0 16px;
}

.terl-title {
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 16px;
  color: var(--terl-text);
}

.terl-title--italic {
  font-style: italic;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 600;
}

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

/* Sections */
.terl-section {
  padding: 72px 0;
  background: #fff;
}

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

.terl-split {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 36px;
  align-items: start;
}

.terl-h2 {
  font-size: 34px;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  color: var(--terl-text);
}

.terl-h3 {
  font-size: 18px;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
  color: var(--terl-text);
}

.terl-p {
  margin: 0 0 18px;
  color: var(--terl-muted);
  font-size: 16px;
  line-height: 1.65;
}

.terl-card {
  background: rgba(255, 255, 255, .75);
  border: 1px solid rgba(0, 0, 0, .06);
  border-radius: var(--terl-radius);
  padding: 22px;
}

.terl-list {
  margin: 0;
  padding-left: 18px;
  color: var(--terl-muted);
}

.terl-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 18px 0 18px;
}

.terl-pub {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .06);
  border-radius: 14px;
  padding: 16px;
}

.terl-pub__title {
  margin: 0 0 6px;
  font-weight: 750;
  color: var(--terl-text);
}

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

/* CTA */
.terl-cta {
  background: linear-gradient(180deg, #fff, #f6d0cc);
  padding: 90px 0;
}

.terl-cta__inner {
  text-align: center;
}

.terl-cta__inner .terl-p {
  max-width: 70ch;
  margin: 0 auto 18px;
}

/* Footer */
.terl-footer {
  margin-top: 0;
  background: #fff;
  border-top: 1px solid rgba(0, 0, 0, .06);
}

.terl-footer__inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 24px;
  padding: 44px 0;
}

.terl-footer__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--terl-text);
}

.terl-footer__logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.terl-footer__title {
  font-weight: 850;
  letter-spacing: -0.02em;
}

.terl-footer__sub {
  color: var(--terl-muted);
  font-size: 12px;
}

.terl-footer__heading {
  margin: 0 0 12px;
  font-size: 14px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--terl-muted);
}

.terl-footer__links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.terl-footer__links a {
  color: var(--terl-text);
  text-decoration: none;
  display: inline-block;
  padding: 6px 0;
  font-weight: 600;
  font-size: 14px;
}

.terl-footer__bottom {
  border-top: 1px solid rgba(0, 0, 0, .06);
  padding: 14px 0;
  color: var(--terl-muted);
  font-size: 13px;
}

.terl-footer__bottom-inner {
  display: flex;
  justify-content: center;
}

/* Responsive */
@media (max-width: 900px) {
  .terl-nav__inner {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand actions"
      "menu menu";
    height: auto;
    padding: 14px 0;
  }

  .terl-brand {
    grid-area: brand;
  }

  .terl-actions {
    grid-area: actions;
  }

  .terl-menu {
    grid-area: menu;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .terl-split {
    grid-template-columns: 1fr;
  }

  .terl-grid {
    grid-template-columns: 1fr;
  }

  .terl-footer__inner {
    grid-template-columns: 1fr;
  }

  .terl-brand__sub {
    display: none;
  }
}

/* ========== Base (BAIR-like) ========== */
:root {
  --bg: #ffffff;
  --text: #111111;
  --muted: #555555;
  --line: #e6e6e6;

  /* Accent: BAIR/UC Berkeley-ish blue (원하면 나중에 변경) */
  --accent: #1f5fbf;
  --accent-weak: rgba(31, 95, 191, 0.12);

  --max: 1120px;
  --pad: 24px;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

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

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

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 40px 0;
}

/* Headings */
h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}

h1 {
  font-size: clamp(40px, 5vw, 56px);
}

h2 {
  font-size: clamp(26px, 3vw, 34px);
  margin-top: 56px;
}

h3 {
  font-size: 20px;
  margin-top: 28px;
}

p {
  margin: 0 0 16px;
  color: var(--text);
}

.small,
.muted {
  color: var(--muted);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  text-decoration: none;
  background: #fff;
}

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

.btn.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
  text-decoration: none;
}

.btn.primary:hover {
  filter: brightness(0.95);
}

/* Section spacing */
.section {
  padding: 72px 0;
}

.section.compact {
  padding: 52px 0;
}

.section+.section {
  border-top: 1px solid var(--line);
}

/* ========== BAIR OVERRIDES (for terl-*) ========== */

/* 1) Color + radius: make it flatter and more editorial */
:root {
  --terl-bg: #ffffff;
  --terl-bg-alt: #ffffff;
  --terl-text: #111111;
  --terl-muted: rgba(17, 17, 17, .72);
  --terl-accent: #1f5fbf;
  /* BAIR-ish blue */
  --terl-shadow: rgba(0, 0, 0, .0);
  /* remove “drop shadow” feel */
  --terl-radius: 0px;
  /* BAIR: 거의 각진 느낌 */
}

/* 2) Links: underline, simple */
.terl-menu a,
.terl-footer__links a {
  text-decoration: none;
}

.terl-menu a:hover,
.terl-footer__links a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  color: var(--terl-accent);
}

/* 3) Nav: less frosted glass, more clean line */
.terl-nav {
  background: #ffffff;
  backdrop-filter: none;
  border-bottom: 1px solid rgba(0, 0, 0, .10);
}

.terl-nav__inner {
  height: 64px;
}

/* 4) Join button: not pill, not loud */
.terl-btn {
  border-radius: 6px;
  box-shadow: none;
  padding: 10px 14px;
}

.terl-btn--primary {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, .15);
  color: var(--terl-text);
}

.terl-btn--primary:hover {
  border-color: var(--terl-accent);
  color: var(--terl-accent);
}

.terl-btn--shadow {
  box-shadow: none;
}

/* 5) Hero: remove tinted block background */
.terl-hero {
  background: #ffffff;
  padding: 88px 0 52px;
}

.terl-kicker {
  color: rgba(0, 0, 0, .55);
  letter-spacing: .12em;
}

/* 6) Typography: BAIR = strong sans, no italic emphasis */
.terl-title {
  color: var(--terl-text);
  font-size: clamp(42px, 5vw, 64px);
}

.terl-title--italic {
  font-style: normal;
  font-family: inherit;
  font-weight: inherit;
}

.terl-lead {
  color: rgba(0, 0, 0, .70);
  font-size: 18px;
  max-width: 70ch;
}

/* 7) Sections: simple, with thin rules instead of colored blocks */
.terl-section,
.terl-section--alt {
  background: #ffffff;
}

.terl-section+.terl-section {
  border-top: 1px solid rgba(0, 0, 0, .10);
}

/* 8) Cards: BAIR = 거의 카드 없음 (border only, no round, no tint) */
.terl-card,
.terl-pub {
  background: transparent;
  border: 1px solid rgba(0, 0, 0, .10);
  border-radius: 0;
}

.terl-card {
  padding: 20px;
}

.terl-pub {
  padding: 16px;
}

/* 9) CTA: keep it calm */
.terl-cta {
  background: #ffffff;
  border-top: 1px solid rgba(0, 0, 0, .10);
}

/* NAV spacing */
.terl-container {
  width: min(var(--terl-max), calc(100% - 72px));
  /* 48px -> 72px 로 증가 */
}

/* 아주 큰 화면에서도 nav가 너무 넓게 벌어지면 max 살짝 키우고 싶을 때 */
:root {
  --terl-max: 1200px;
  /* 1120 -> 1200 (원하면 유지해도 됨) */
}

/* Accent text (BAIR-like) */
.terl-accent {
  color: var(--terl-accent);
}

.terl-container {
  width: min(var(--terl-max), calc(100% - 72px));
}

.terl-accent {
  color: var(--terl-accent);
}