:root {
  --ink: #17221c;
  --muted: #5d6a62;
  --paper: #fbfdf9;
  --surface: #ffffff;
  --line: #dfe7df;
  --brand: #176b46;
  --brand-dark: #0d4d32;
  --brand-soft: #e8f5ed;
  --danger: #b42318;
  --danger-dark: #8d1b12;
  --danger-soft: #fff0ee;
  --shadow: 0 18px 60px rgba(31, 54, 42, 0.1);
  color-scheme: light;
  font-family: Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 0%, rgba(157, 213, 180, 0.28), transparent 30rem),
    linear-gradient(180deg, #f7fbf7 0, var(--paper) 24rem);
  font-size: 16px;
  line-height: 1.75;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

a {
  color: var(--brand);
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--brand-dark);
}

button,
input {
  font: inherit;
}

button {
  touch-action: manipulation;
}

.skip-link {
  position: fixed;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 100;
  padding: 0.65rem 0.9rem;
  color: white;
  background: var(--brand-dark);
  border-radius: 0.5rem;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(223, 231, 223, 0.8);
  background: rgba(251, 253, 249, 0.9);
  backdrop-filter: blur(18px);
}

.nav,
.page-shell,
.hero,
.site-footer-inner {
  width: min(100% - 2rem, 1040px);
  margin-inline: auto;
}

.nav {
  min-height: 4.3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: -0.03em;
}

.brand-mark {
  width: 2.1rem;
  height: 2.1rem;
  display: grid;
  place-items: center;
  color: white;
  background: var(--brand);
  border-radius: 0.72rem;
  font-size: 0.86rem;
  letter-spacing: -0.08em;
  box-shadow: 0 6px 18px rgba(23, 107, 70, 0.25);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  font-size: 0.92rem;
  font-weight: 650;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
}

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

.hero {
  padding-block: 6.5rem 5rem;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 1rem;
  padding: 0.35rem 0.75rem;
  color: var(--brand-dark);
  background: var(--brand-soft);
  border: 1px solid #cce8d6;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.hero h1,
.page-heading h1 {
  margin: 0;
  font-size: clamp(2.15rem, 6vw, 4.2rem);
  line-height: 1.12;
  letter-spacing: -0.055em;
}

.hero p {
  max-width: 42rem;
  margin: 1.35rem auto 0;
  color: var(--muted);
  font-size: clamp(1.02rem, 2.5vw, 1.2rem);
}

.hero-actions {
  margin-top: 2.15rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.button {
  min-height: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.7rem 1.1rem;
  border: 1px solid transparent;
  border-radius: 0.8rem;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

.button:hover:not(:disabled) {
  transform: translateY(-1px);
}

.button:focus-visible,
input:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(23, 107, 70, 0.25);
  outline-offset: 3px;
}

.button-primary {
  color: white;
  background: var(--brand);
  box-shadow: 0 8px 22px rgba(23, 107, 70, 0.2);
}

.button-primary:hover:not(:disabled) {
  color: white;
  background: var(--brand-dark);
}

.button-secondary {
  color: var(--ink);
  background: var(--surface);
  border-color: var(--line);
}

.button-danger {
  width: 100%;
  color: white;
  background: var(--danger);
}

.button-danger:hover:not(:disabled) {
  color: white;
  background: var(--danger-dark);
}

.button:disabled {
  color: #879188;
  background: #e9ede9;
  border-color: #dfe4df;
  box-shadow: none;
  cursor: not-allowed;
}

.home-grid {
  margin-top: -1rem;
  padding-bottom: 6rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.link-card,
.policy-card,
.action-card,
.notice-card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: 1.15rem;
  box-shadow: var(--shadow);
}

.link-card {
  min-height: 13rem;
  display: flex;
  flex-direction: column;
  padding: 1.45rem;
  color: var(--ink);
  text-decoration: none;
}

.link-card:hover {
  color: var(--ink);
  border-color: #b9d9c5;
  transform: translateY(-2px);
}

.card-icon {
  width: 2.55rem;
  height: 2.55rem;
  display: grid;
  place-items: center;
  color: var(--brand-dark);
  background: var(--brand-soft);
  border-radius: 0.8rem;
  font-weight: 900;
}

.link-card h2 {
  margin: 1rem 0 0.35rem;
  font-size: 1.18rem;
  letter-spacing: -0.025em;
}

.link-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.card-arrow {
  margin-top: auto;
  padding-top: 1rem;
  color: var(--brand);
  font-weight: 800;
}

.page-shell {
  padding-block: 4.5rem 6rem;
}

.page-shell.narrow {
  max-width: 820px;
}

.page-heading {
  margin-bottom: 2rem;
}

.page-heading h1 {
  font-size: clamp(2.1rem, 5vw, 3.35rem);
}

.page-summary {
  max-width: 45rem;
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 1.06rem;
}

.meta-row {
  margin-top: 1.1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.policy-card {
  padding: clamp(1.25rem, 4vw, 3rem);
}

.policy-card section + section {
  margin-top: 2.3rem;
  padding-top: 2.3rem;
  border-top: 1px solid var(--line);
}

.policy-card h2 {
  margin: 0 0 0.75rem;
  font-size: 1.22rem;
  line-height: 1.45;
  letter-spacing: -0.025em;
}

.policy-card p,
.policy-card ol,
.policy-card ul {
  margin-block: 0.6rem;
}

.policy-card ol,
.policy-card ul {
  padding-left: 1.35rem;
}

.policy-card li + li {
  margin-top: 0.5rem;
}

.sublist {
  color: var(--muted);
}

.callout {
  margin: 1.2rem 0;
  padding: 1rem 1.1rem;
  background: var(--brand-soft);
  border-left: 4px solid var(--brand);
  border-radius: 0.3rem 0.8rem 0.8rem 0.3rem;
}

.delete-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(20rem, 0.78fr);
  align-items: start;
  gap: 1.25rem;
}

.notice-card,
.action-card {
  padding: clamp(1.2rem, 3.5vw, 2rem);
}

.notice-card h2,
.action-card h2 {
  margin: 0 0 0.8rem;
  font-size: 1.25rem;
  letter-spacing: -0.025em;
}

.notice-card h3 {
  margin: 1.6rem 0 0.35rem;
  font-size: 1rem;
}

.notice-card ul {
  margin: 0.5rem 0 0;
  padding-left: 1.2rem;
}

.notice-card li + li {
  margin-top: 0.35rem;
}

.danger-note {
  margin-top: 1.4rem;
  padding: 1rem;
  color: #741b14;
  background: var(--danger-soft);
  border: 1px solid #ffd0ca;
  border-radius: 0.8rem;
  font-size: 0.92rem;
}

.step-label {
  margin: 0 0 0.4rem;
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.signed-out,
.signed-in,
.success-panel {
  margin-top: 1rem;
}

.identity {
  margin: 0 0 1rem;
  padding: 0.9rem 1rem;
  background: #f4f7f4;
  border-radius: 0.8rem;
}

.identity strong,
.identity span {
  display: block;
}

.identity span {
  color: var(--muted);
  font-size: 0.9rem;
}

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin: 1.15rem 0;
  padding: 1rem;
  background: var(--danger-soft);
  border: 1px solid #ffd0ca;
  border-radius: 0.8rem;
  cursor: pointer;
}

.check-row input {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.25rem;
  flex: 0 0 auto;
  accent-color: var(--danger);
}

.helper {
  margin: 0.7rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.inline-action {
  padding: 0;
  color: var(--brand);
  background: none;
  border: 0;
  font-size: 0.88rem;
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  cursor: pointer;
}

.status {
  min-height: 1.75rem;
  margin: 0.9rem 0 0;
  font-size: 0.9rem;
}

.status[data-kind="error"] {
  color: var(--danger);
}

.status[data-kind="working"] {
  color: var(--brand);
}

.status[data-kind="success"] {
  color: var(--brand-dark);
}

.success-panel {
  padding: 1.2rem;
  color: var(--brand-dark);
  background: var(--brand-soft);
  border: 1px solid #cce8d6;
  border-radius: 0.9rem;
}

.success-panel h2,
.success-panel p {
  margin: 0;
}

.success-panel p {
  margin-top: 0.5rem;
}

[hidden] {
  display: none !important;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(247, 250, 247, 0.9);
}

.site-footer-inner {
  min-height: 8rem;
  padding-block: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  color: var(--muted);
  font-size: 0.86rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.2rem;
}

@media (max-width: 760px) {
  body {
    word-break: normal;
  }

  .nav {
    min-height: 3.9rem;
  }

  .nav-links a:not(.keep-mobile) {
    display: none;
  }

  .hero {
    padding-block: 4.5rem 3.5rem;
  }

  .home-grid,
  .delete-layout {
    grid-template-columns: 1fr;
  }

  .home-grid {
    padding-bottom: 4rem;
  }

  .link-card {
    min-height: 11rem;
  }

  .page-shell {
    padding-block: 3.5rem 4rem;
  }

  .site-footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
