:root {
  color-scheme: light;
  --paper: #fff8e8;
  --paper-deep: #f8ebcf;
  --ink: #51463c;
  --muted: #76695d;
  --coral: #e98270;
  --sun: #f5bd47;
  --sky: #a9d8df;
  --moss: #8eaa7a;
  --lavender: #b9a5cf;
  --line: rgba(81, 70, 60, 0.2);
  font-family: ui-rounded, "SF Pro Rounded", "Hiragino Maru Gothic ProN", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html {
  background: var(--paper);
  color: var(--ink);
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 12% 10%, rgba(245, 189, 71, 0.17), transparent 24rem),
    radial-gradient(circle at 88% 18%, rgba(169, 216, 223, 0.23), transparent 26rem),
    repeating-linear-gradient(4deg, transparent 0 14px, rgba(81, 70, 60, 0.018) 15px 16px);
}

a { color: #7656a2; text-underline-offset: 0.2em; }
a:hover { color: #573b7b; }

.site-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.sun {
  position: relative;
  width: 42px;
  height: 42px;
  border: 4px solid var(--coral);
  border-radius: 48% 52% 44% 56%;
  background: var(--sun);
  box-shadow: 0 0 0 3px rgba(245, 189, 71, 0.25);
  transform: rotate(-4deg);
}

.sun::before,
.sun::after {
  content: "";
  position: absolute;
  top: 15px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ink);
}

.sun::before { left: 9px; }
.sun::after { right: 9px; }
.sun span {
  position: absolute;
  left: 11px;
  bottom: 7px;
  width: 14px;
  height: 7px;
  border-bottom: 3px solid var(--ink);
  border-radius: 50%;
}

.language-button {
  border: 2px solid var(--line);
  border-radius: 999px 930px 999px 940px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--ink);
  padding: 9px 14px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.language-menu {
  position: absolute;
  z-index: 5;
  top: 66px;
  right: 0;
  min-width: 160px;
  padding: 8px;
  border: 2px solid var(--line);
  border-radius: 18px 13px 20px 15px;
  background: #fffdf7;
  box-shadow: 0 12px 32px rgba(81, 70, 60, 0.14);
}

.language-menu a {
  display: block;
  padding: 9px 10px;
  border-radius: 10px;
  color: var(--ink);
  text-decoration: none;
}

.language-menu a:hover { background: var(--paper-deep); }

.page-shell {
  width: min(920px, calc(100% - 32px));
  margin: 28px auto 64px;
}

.paper-card {
  position: relative;
  margin-bottom: 22px;
  padding: clamp(24px, 5vw, 48px);
  border: 2px solid var(--line);
  border-radius: 29px 23px 31px 20px;
  background: rgba(255, 253, 247, 0.86);
  box-shadow: 7px 9px 0 rgba(169, 216, 223, 0.22);
}

.hero {
  overflow: hidden;
  border-color: rgba(233, 130, 112, 0.32);
}

.hero::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -115px;
  width: 280px;
  height: 210px;
  border: 22px solid var(--coral);
  border-right-color: var(--sun);
  border-bottom-color: var(--sky);
  border-radius: 50%;
  opacity: 0.22;
  transform: rotate(-8deg);
}

.eyebrow {
  color: #a45c50;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.13em;
}

h1, h2, h3 {
  line-height: 1.18;
  text-wrap: balance;
}

h1 {
  max-width: 720px;
  margin: 0.3em 0;
  font-size: clamp(2.25rem, 8vw, 4.8rem);
}

h2 {
  margin-top: 0;
  color: #6c5a4b;
  font-size: clamp(1.35rem, 4vw, 2rem);
}

h3 { margin-top: 1.7em; }

p, li {
  max-width: 74ch;
  line-height: 1.72;
}

.hero p:not(.eyebrow) {
  max-width: 640px;
  font-size: 1.12rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 28px;
}

.feature {
  min-height: 150px;
  padding: 18px;
  border: 3px solid rgba(81, 70, 60, 0.12);
  border-radius: 23px 17px 21px 19px;
  background: var(--paper);
}

.feature:nth-child(2) { background: #eef8f8; transform: rotate(0.5deg); }
.feature:nth-child(3) { background: #f4eef8; transform: rotate(-0.5deg); }
.feature strong { display: block; margin-bottom: 7px; }

.notice {
  padding: 16px 18px;
  border-left: 6px solid var(--sun);
  border-radius: 8px 18px 16px 7px;
  background: #fff3ce;
}

.button-link {
  display: inline-block;
  margin: 8px 8px 0 0;
  padding: 11px 16px;
  border: 2px solid rgba(81, 70, 60, 0.2);
  border-radius: 14px 18px 15px 19px;
  background: var(--coral);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 3px 4px 0 rgba(81, 70, 60, 0.12);
}

.button-link.secondary {
  background: var(--sky);
  color: var(--ink);
}

.site-footer {
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
  padding: 26px 0 38px;
  border-top: 2px dashed var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}

.site-footer p { margin: 8px 0; }

@media (max-width: 720px) {
  .site-header { align-items: flex-start; }
  .brand { max-width: 72%; }
  .feature-grid { grid-template-columns: 1fr; }
  .paper-card { padding: 24px; }
  h1 { font-size: clamp(2rem, 12vw, 3.4rem); }
}

@media (prefers-reduced-motion: no-preference) {
  .sun { animation: sunshine 3.5s ease-in-out infinite; }
  @keyframes sunshine {
    0%, 100% { transform: rotate(-4deg) translateY(0); }
    50% { transform: rotate(4deg) translateY(-2px); }
  }
}
