:root {
  --ink: #211b16;
  --muted: #6d6256;
  --cream: #fffaf0;
  --cheese: #fff7df;
  --journal: #fce7b9;
  --orange: #e98018;
  --orange-deep: #bb570c;
  --line: rgba(58, 42, 21, 0.14);
  --shadow: 0 10px 26px rgba(90, 54, 10, 0.1);
  --radius-card: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background: #fffaf0;
  font-family: ui-rounded, "Avenir Next", Avenir, "Helvetica Neue", sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }

.site-header,
main,
.site-footer {
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
  gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-size: 1.38rem; font-weight: 760; letter-spacing: -0.05em; }
.brand-mark, .mini-mark { display: grid; place-items: center; overflow: hidden; border-radius: 50%; background: var(--cream); }
.brand-mark { width: 40px; height: 40px; }
.brand-mark img { width: 30px; height: 30px; object-fit: contain; }
.site-header nav { display: flex; align-items: center; gap: 22px; font-size: 0.94rem; font-weight: 600; }
.site-header nav a { text-decoration: none; }
.site-header nav a:not(.nav-contact):hover, .site-header nav a:not(.nav-contact):focus-visible { text-decoration: underline; text-underline-offset: 5px; }
.nav-contact { padding: 8px 14px; border: 1px solid rgba(33, 27, 22, 0.7); border-radius: 999px; }

.hero { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(340px, 0.96fr); align-items: center; gap: clamp(36px, 6vw, 72px); min-height: min(650px, calc(100vh - 82px)); margin: 0 calc(50% - 50vw); padding: 62px max(16px, calc((100vw - 1120px) / 2)) 70px; overflow: hidden; }
.hero::before { position: absolute; z-index: -2; inset: 0; background: radial-gradient(circle at 83% 18%, rgba(255, 246, 194, 0.65), transparent 21rem), linear-gradient(128deg, #f8ce58 0%, #f4ad36 58%, #e98d1e 100%); content: ""; }
.hero::after { position: absolute; z-index: -1; right: -11rem; bottom: -13rem; width: 31rem; aspect-ratio: 1; border-radius: 50%; background: rgba(255, 240, 172, 0.25); content: ""; }
.eyebrow, .section-label, .card-kicker, .release-version { margin: 0; color: rgba(33, 27, 22, 0.6); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.075em; }
.hero h1 { max-width: 16ch; margin: 12px 0 20px; font-size: clamp(3rem, 5.1vw, 4.85rem); line-height: 0.98; letter-spacing: -0.07em; }
.hero-summary { max-width: 34rem; margin: 0 0 28px; color: rgba(33, 27, 22, 0.78); font-size: clamp(1.04rem, 1.55vw, 1.18rem); }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 11px 18px; border: 0; border-radius: 12px; cursor: pointer; text-decoration: none; font-weight: 650; transition: transform 160ms ease, background 160ms ease, opacity 160ms ease, box-shadow 160ms ease; }
.button:hover { transform: translateY(-1px); }
.button:disabled { cursor: not-allowed; opacity: 0.56; transform: none; }
.button-primary { color: white; background: var(--orange-deep); box-shadow: 0 5px 10px rgba(116, 62, 13, 0.15); }
.button-primary:hover { background: #a84c09; box-shadow: 0 7px 14px rgba(116, 62, 13, 0.19); }
.button-dark { width: 100%; color: white; background: #171411; }
.button:focus-visible, .site-header a:focus-visible, .site-footer a:focus-visible, .site-footer button:focus-visible, .icon-button:focus-visible { outline: 3px solid rgba(187, 87, 12, 0.55); outline-offset: 3px; }

.hero-card { position: relative; isolation: isolate; overflow: hidden; min-height: 406px; padding: 24px; border: 1px solid rgba(33, 27, 22, 0.14); border-radius: 24px; background: rgba(255, 250, 240, 0.93); box-shadow: var(--shadow); }
.hero-card::before { position: absolute; z-index: -1; inset: auto -10% -30% 42%; width: 20rem; height: 20rem; border-radius: 50%; background: rgba(250, 208, 142, 0.72); content: ""; }
.hero-card-header { display: flex; align-items: center; gap: 9px; color: rgba(33, 27, 22, 0.68); font-size: 0.85rem; font-weight: 700; }
.mini-mark { width: 30px; height: 30px; }
.mini-mark img { width: 23px; height: 23px; object-fit: contain; }
.cheese-illustration { position: absolute; top: 102px; right: 13%; width: min(64%, 290px); aspect-ratio: 1.16; border-radius: 28% 48% 29% 40%; transform: rotate(-8deg); background: linear-gradient(135deg, #ffe998, #e9aa2a); box-shadow: inset -22px -16px 26px rgba(149, 85, 6, 0.14), 10px 15px 18px rgba(89, 51, 7, 0.13); }
.cheese-illustration span { position: absolute; width: 14%; aspect-ratio: 1; border-radius: 50%; background: rgba(172, 101, 10, 0.23); }
.cheese-illustration span:nth-child(1) { top: 21%; left: 23%; }
.cheese-illustration span:nth-child(2) { top: 60%; left: 22%; width: 10%; }
.cheese-illustration span:nth-child(3) { top: 24%; right: 26%; width: 11%; }
.cheese-illustration span:nth-child(4) { right: 18%; bottom: 23%; width: 15%; }
.cheese-illustration span:nth-child(5) { right: 47%; bottom: 17%; width: 8%; }
.card-kicker { position: absolute; left: 24px; bottom: 76px; }
.card-title { position: absolute; left: 24px; bottom: 18px; max-width: 19ch; margin: 0; font-size: 1.35rem; font-weight: 760; line-height: 1.16; letter-spacing: -0.03em; }

.content-section { scroll-margin-top: 24px; padding: 70px 0; }
.content-section + .content-section { border-top: 1px solid rgba(33, 27, 22, 0.1); }
.section-label { margin-bottom: 11px; }
.section-heading-row { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
h2 { margin: 0; font-size: clamp(2rem, 3.7vw, 3.15rem); font-weight: 680; line-height: 1; letter-spacing: -0.055em; }
.section-heading-row > p { max-width: 18rem; margin: 0; color: var(--muted); text-align: right; }
.card { border: 1px solid var(--line); border-radius: var(--radius-card); background: rgba(255, 250, 240, 0.82); box-shadow: 0 7px 18px rgba(91, 52, 6, 0.06); }
.long-form { color: rgba(33, 27, 22, 0.79); }
.long-form p { margin: 0 0 1.1rem; white-space: pre-line; }
.long-form p:last-child { margin-bottom: 0; }
.about-section .long-form { padding: clamp(22px, 4vw, 38px); max-width: 800px; font-size: 1.06rem; }
.about-card { display: grid; gap: 20px; }
.about-card .about-lead { max-width: 48rem; margin: 0; color: var(--ink); font-size: clamp(1.18rem, 2vw, 1.38rem); font-weight: 620; line-height: 1.38; letter-spacing: -0.025em; }
.about-card #about-content { padding-top: 20px; border-top: 1px solid var(--line); }

.release-notes { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.release-note { min-height: 196px; padding: 22px; }
.release-note h2, .release-note h3 { margin: 7px 0 10px; font-size: 1.38rem; font-weight: 680; line-height: 1.12; letter-spacing: -0.035em; }
.release-note p:last-child { margin: 0; color: var(--muted); }
.release-note:nth-child(3n + 2) { background: rgba(255, 255, 251, 0.86); }
.release-note:nth-child(3n) { background: rgba(252, 231, 185, 0.78); }
.release-note-empty { min-height: 152px; max-width: 430px; padding: 19px 22px; }
.release-note-empty h2, .release-note-empty h3 { margin-bottom: 6px; font-size: 1.17rem; }

.policy-frame { max-width: 920px; max-height: 520px; overflow: auto; padding: clamp(22px, 4vw, 38px); border: 1px solid rgba(33, 27, 22, 0.2); border-radius: 20px; background: rgba(253, 246, 235, 0.52); }
.privacy-page-section { min-height: calc(100vh - 260px); }
.privacy-page h1 { margin: 0 0 24px; font-size: clamp(2.4rem, 5vw, 4.6rem); line-height: 0.96; letter-spacing: -0.065em; }
.privacy-page .policy-frame { width: min(100%, 920px); max-width: none; max-height: none; overflow: visible; margin-inline: auto; }
.content-page .page-intro { max-width: 760px; padding-top: clamp(64px, 10vw, 118px); padding-bottom: 48px; }
.page-intro h1, .contact-page-section h1 { max-width: 13ch; margin: 0 0 18px; font-size: clamp(2.5rem, 5vw, 4.5rem); font-weight: 700; line-height: 0.98; letter-spacing: -0.065em; }
.page-intro > p:last-child { max-width: 42rem; margin: 0; color: var(--muted); font-size: 1.08rem; }
.features-section, .release-page-section, .contact-page-section, .privacy-page-section { position: relative; isolation: isolate; overflow: hidden; margin-bottom: 70px; padding: clamp(28px, 5vw, 54px); border: 0; border-radius: var(--radius-card); background: radial-gradient(circle at 83% 18%, rgba(255, 246, 194, 0.65), transparent 21rem), linear-gradient(128deg, #f8ce58 0%, #f4ad36 58%, #e98d1e 100%); }
.features-section::before, .release-page-section::before, .contact-page-section::before, .privacy-page-section::before { position: absolute; z-index: -1; right: -12rem; bottom: -15rem; width: 32rem; aspect-ratio: 1; border-radius: 50%; background: rgba(255, 240, 172, 0.28); content: ""; }
.features-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.feature-card { min-height: 220px; padding: 24px; }
.feature-card > span { display: grid; width: 42px; height: 42px; place-items: center; margin-bottom: 30px; border-radius: 13px; color: var(--orange-deep); background: var(--journal); font-size: 1.35rem; font-weight: 700; }
.feature-card h2 { margin: 0 0 9px; font-size: 1.28rem; font-weight: 680; line-height: 1.12; letter-spacing: -0.035em; }
.feature-card p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.contact-page-section { display: grid; min-height: 0; justify-items: center; }
.contact-page-section .contact-form { width: min(100%, 660px); }
.contact-section { display: grid; grid-template-columns: 0.78fr 1.22fr; align-items: start; gap: clamp(28px, 7vw, 94px); }
.contact-copy h2 { margin-bottom: 14px; }
.contact-copy > p:last-child { max-width: 25rem; margin: 0; color: rgba(33, 27, 22, 0.76); }
.contact-form, .admin-editor { display: grid; gap: 15px; padding: 25px; }
label { display: grid; gap: 7px; color: rgba(33, 27, 22, 0.82); font-size: 0.92rem; font-weight: 700; }
input, textarea { width: 100%; border: 1px solid rgba(33, 27, 22, 0.22); border-radius: 10px; padding: 12px; color: var(--ink); background: rgba(255, 255, 255, 0.58); outline: none; resize: vertical; font-weight: 500; }
input:focus, textarea:focus { border-color: var(--orange-deep); box-shadow: 0 0 0 3px rgba(233, 128, 24, 0.2); }
.form-status { min-height: 1.5em; margin: 0; color: var(--muted); font-size: 0.9rem; }
.form-status.error { color: #a52617; }
.honeypot { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

.site-footer { display: flex; justify-content: space-between; gap: 20px; padding: 22px 0 28px; color: rgba(33, 27, 22, 0.67); font-size: 0.85rem; }
.site-footer div { display: flex; gap: 16px; }
.site-footer a, .text-button { color: inherit; border: 0; padding: 0; background: none; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

.admin-dialog { width: min(760px, calc(100% - 32px)); max-height: min(88vh, 900px); overflow: auto; border: 0; border-radius: 24px; padding: 0; color: var(--ink); background: var(--cream); box-shadow: var(--shadow); }
.admin-dialog::backdrop { background: rgba(31, 21, 8, 0.52); backdrop-filter: blur(4px); }
.admin-dialog-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding: 28px 28px 8px; }
.admin-dialog-header h2 { font-size: 2rem; }
.icon-button { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer; font-size: 1.55rem; }
.admin-auth { display: grid; gap: 12px; padding: 20px 28px 28px; }
.admin-auth p { margin: 0 0 8px; color: var(--muted); }
.admin-editor { padding: 20px 28px 28px; }
.admin-editor hr { width: 100%; height: 1px; border: 0; background: var(--line); margin: 14px 0 2px; }
.admin-editor h3 { margin: 0; font-size: 1.3rem; }
.checkbox-label { display: flex; align-items: center; gap: 10px; }
.checkbox-label input { width: auto; }
.hidden { display: none !important; }

@media (max-width: 720px) {
  .site-header { min-height: 74px; }
  .site-header nav { gap: 9px; font-size: 0.72rem; white-space: nowrap; }
  .nav-contact { padding: 7px 10px; }
  .hero { grid-template-columns: 1fr; min-height: unset; padding: 46px 16px 54px; }
  .hero h1 { max-width: 12ch; }
  .hero-card { min-height: 340px; }
  .cheese-illustration { top: 76px; }
  .content-section { padding: 54px 0; }
  .section-heading-row, .contact-section { display: grid; grid-template-columns: 1fr; }
  .section-heading-row > p { max-width: none; text-align: left; }
  .policy-frame { max-height: 460px; }
  .content-page .page-intro { padding-top: 54px; }
  .features-section, .release-page-section, .contact-page-section, .privacy-page-section { margin-bottom: 54px; }
  .features-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: unset; padding: 22px; }
  .feature-card > span { margin-bottom: 18px; }
  .site-footer { align-items: flex-start; flex-direction: column; }
}

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