/* Leo's World — base styles and design tokens */

:root {
  --bg: #FFFDF8;
  --main: #C98B61;
  --main-dark: #A96F49;
  --orange: #F7E6D6;
  --green: #E5EFE2;
  --blue: #E6EAF7;
  --pink: #F5E6ED;
  --ink: #45413D;
  --muted: #99918A;
  --line: #EBE3D9;
  --card: #FFFFFF;
  --radius-sm: 12px;
  --radius: 16px;
  --radius-lg: 20px;
  --shadow: 0 6px 22px rgba(69, 65, 61, .06);
  --shadow-hover: 0 14px 34px rgba(69, 65, 61, .1);
  --font: Inter, "Noto Sans SC", "PingFang SC", "Microsoft YaHei",
          -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-title: "Trebuchet MS", "Avenir Next", Inter, "Noto Sans SC", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--main); outline-offset: 3px; }

.container {
  width: min(100% - 40px, 1140px);
  margin-inline: auto;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  padding: 10px 16px; background: var(--ink); color: #fff;
  border-radius: 8px; transition: top .2s ease;
}
.skip-link:focus { top: 12px; }

/* ---------- header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 253, 248, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 72px; gap: 24px;
}
.brand-link {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-title);
  font-size: 19px; font-weight: 800; letter-spacing: -.02em;
  white-space: nowrap;
}
.brand-mark {
  width: 30px; height: 30px; border-radius: 10px;
  background: var(--orange);
  border: 1.5px solid var(--main);
  display: grid; place-items: center;
  font-size: 15px; font-weight: 800; color: var(--main-dark);
  transform: rotate(-6deg);
}
.brand-link small {
  display: block; font-size: 10px; font-weight: 600;
  letter-spacing: .12em; color: var(--muted); line-height: 1;
}

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  position: relative;
  padding: 8px 13px; border-radius: 999px;
  font-size: 14px; font-weight: 600; color: #6d6760;
  transition: background-color .2s ease, color .2s ease;
}
.nav a:hover { background: var(--orange); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--main-dark); background: var(--orange); }
.nav-toggle {
  display: none;
  width: 42px; height: 42px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--card);
  align-items: center; justify-content: center;
}
.nav-toggle span {
  display: block; width: 18px; height: 2px; background: var(--ink);
  border-radius: 2px; position: relative;
}
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px;
  background: var(--ink); border-radius: 2px;
  transition: transform .2s ease;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- hero ---------- */

.hero { padding: 66px 0 40px; }
.hero__inner {
  display: grid; grid-template-columns: 1fr 1.06fr;
  gap: 54px; align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 800; letter-spacing: .16em;
  text-transform: uppercase; color: var(--main-dark);
}
.eyebrow::before {
  content: ""; width: 22px; height: 2px; background: var(--main);
  border-radius: 2px;
}
.hero h1 {
  margin: 18px 0 16px;
  font-family: var(--font-title);
  font-size: clamp(36px, 4.6vw, 58px);
  font-weight: 800; line-height: 1.12; letter-spacing: -.03em;
  max-width: 12ch;
}
.hero__lead {
  margin: 0 0 8px; font-size: 17px; font-weight: 600; color: #6d6760;
}
.hero__cn { margin: 0 0 28px; color: var(--muted); font-size: 14px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero__visual { position: relative; }
.hero__visual img {
  width: 100%; border-radius: var(--radius-lg);
  border: 1px solid var(--line); box-shadow: var(--shadow-hover);
  transform: rotate(1.2deg);
}
.hero__visual::before {
  content: ""; position: absolute; inset: 12px -10px -12px 14px;
  border: 1.5px dashed var(--main); border-radius: var(--radius-lg);
  opacity: .38; transform: rotate(-2deg); pointer-events: none;
}
.sticker {
  position: absolute; z-index: 2;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--line);
  box-shadow: var(--shadow); font-size: 12px; font-weight: 700;
}
.sticker--one { top: -18px; right: 18px; background: var(--pink); transform: rotate(5deg); }
.sticker--two { bottom: -16px; left: 10px; background: var(--green); transform: rotate(-6deg); }
.sticker__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--main); }

/* ---------- sections ---------- */

.section { padding: 52px 0; }
.section--tint { background: #FBF7F0; border-block: 1px solid var(--line); }
.section__head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; margin-bottom: 28px;
}
.section__head h2 {
  margin: 6px 0 0; font-family: var(--font-title);
  font-size: clamp(25px, 3vw, 34px); letter-spacing: -.02em; line-height: 1.2;
}
.section__head p { margin: 0; color: var(--muted); font-size: 14px; max-width: 38ch; }
.section__note { color: var(--muted); font-size: 13px; }

.section-link {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 14px; font-weight: 700; color: var(--main-dark);
}
.section-link::after { content: "→"; transition: transform .2s ease; }
.section-link:hover::after { transform: translateX(4px); }

/* inner page heading */
.page-hero { padding: 54px 0 14px; }
.page-hero h1 {
  margin: 12px 0 10px; font-family: var(--font-title);
  font-size: clamp(34px, 4.5vw, 50px); line-height: 1.15; letter-spacing: -.03em;
}
.page-hero p { margin: 0; max-width: 60ch; color: #6d6760; font-size: 16px; }

/* note card */
.note-card {
  position: relative;
  padding: 34px 36px; border-radius: var(--radius-lg);
  background: var(--orange); border: 1px solid #eed8c4;
  overflow: hidden;
}
.note-card::after {
  content: ""; position: absolute; right: -34px; bottom: -48px;
  width: 160px; height: 160px; border-radius: 50%;
  border: 18px solid rgba(201, 139, 97, .14);
}
.note-card h2 { margin: 0 0 10px; font-family: var(--font-title); font-size: 28px; }
.note-card p { margin: 0; max-width: 56ch; color: #68584b; }
.note-card__sign {
  display: block; margin-top: 16px; font-family: var(--font-title);
  font-weight: 800; color: var(--main-dark);
}

/* ---------- footer ---------- */

.site-footer {
  margin-top: 40px; padding: 34px 0 40px;
  border-top: 1px solid var(--line); background: #FBF7F0;
}
.site-footer__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
}
.site-footer strong {
  font-family: var(--font-title); font-size: 17px; letter-spacing: -.01em;
}
.site-footer p { margin: 3px 0 0; color: var(--muted); font-size: 13px; }
.site-footer__meta { color: var(--muted); font-size: 12px; text-align: right; }
.site-footer__meta a { color: var(--main-dark); font-weight: 600; }

/* ---------- reveal animation ---------- */

.reveal {
  opacity: 0; transform: translateY(14px);
  transition: opacity .55s ease, transform .55s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
