:root {
  color-scheme: light;
  --paper: #fbf7f1;
  --white: #fffdf9;
  --ink: #30242c;
  --muted: #6f5b64;
  --wine: #713d53;
  --wine-dark: #552b3e;
  --line: #e6d9db;
  --rose: #f3e5e8;
  --lilac: #ede3ef;
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: 16px;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}
* { box-sizing: border-box; }
body { margin: 0; }
main { min-height: 65vh; }
a { color: var(--wine); text-underline-offset: .23em; }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { line-height: 1.09; letter-spacing: -.035em; color: var(--wine-dark); }
h1 { font-size: clamp(2.4rem, 6vw, 4.9rem); }
h2 { font-size: clamp(1.85rem, 4vw, 3rem); }
h3 { line-height: 1.25; }
:focus-visible { outline: 3px solid #a25374; outline-offset: 4px; }
.wrap { width: min(100% - 40px, 1170px); margin-inline: auto; }
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); }
.nav, .footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 1.2rem; }
.nav { min-height: 76px; }
.brand { display: inline-flex; gap: 10px; align-items: center; text-decoration: none; color: var(--wine); font-weight: 720; letter-spacing: .11em; white-space: nowrap; }
.brand img { width: 25px; height: 33px; object-fit: contain; }
nav { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2rem); font-size: .95rem; }
nav a, .link { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .24em; }
.nav-login { font-weight: 700; }
.hero { padding-block: clamp(3.2rem, 7vw, 6.4rem); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.8rem, 6vw, 5rem); align-items: center; }
.eyebrow { color: var(--wine); font-size: .73rem; letter-spacing: .13em; font-weight: 770; margin: 0 0 1rem; }
.hero h1 { margin: 0 0 1.35rem; }
.lede { max-width: 42ch; font-size: clamp(1rem, 2vw, 1.17rem); color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: .72rem; margin-block: 1.55rem 1.1rem; }
.button { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; gap: .35rem; padding: .65rem 1.05rem; border: 1px solid transparent; border-radius: 12px; text-decoration: none; font-weight: 690; font-size: .94rem; line-height: 1.32; }
.primary { background: var(--wine); color: #fff; }
.primary:hover { background: var(--wine-dark); }
.secondary { color: var(--wine-dark); background: var(--white); border-color: var(--line); }
.secondary:hover { background: var(--rose); }
.facts { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 0; }
.facts li { padding: .28rem .73rem; background: var(--rose); border-radius: 20px; color: var(--wine-dark); font-weight: 650; font-size: .84rem; }
.cover-stage { position: relative; isolation: isolate; padding: clamp(2.7rem, 7vw, 4.6rem) clamp(1.35rem, 4vw, 3rem) clamp(2.1rem, 5vw, 3.8rem); border-radius: 2rem; background: linear-gradient(140deg, #f2e4e8, #e8daec); }
.cover-stage img { position: relative; width: 100%; transform: rotate(-5deg); border: 1px solid #d2c0cb; border-radius: 3px; box-shadow: 0 17px 28px #5131472b; }
.cover-note { position: absolute; right: 1.6rem; top: 1.3rem; color: var(--wine); font-size: .67rem; font-weight: 770; letter-spacing: .12em; }
.topic-section { padding-block: 1.3rem 4rem; }
.topic-section h2 { max-width: 25ch; }
.topics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.15rem; }
.topics article { background: var(--white); padding: 1.4rem; border: 1px solid var(--line); border-radius: 1.15rem; }
.topics article span { display: inline-block; color: var(--wine); font-size: .83rem; font-weight: 750; margin-bottom: 1.2rem; }
.topics article h3 { margin-bottom: .5rem; color: var(--wine-dark); }
.topics article p, .calendar-panel p:last-child { color: var(--muted); margin-bottom: 0; }
.calendar-panel { margin-top: 1.6rem; border-radius: 1.4rem; padding: clamp(1.3rem, 4vw, 3rem); background: var(--lilac); display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(1.3rem, 4vw, 4rem); }
.calendar-panel h2 { margin-bottom: .65rem; }
.calendar-panel img { width: 100%; border-radius: .4rem; box-shadow: 0 12px 24px #51314719; }
.order-section { background: #f2e6e9; padding-block: 3.5rem; }
.order-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem 4rem; align-items: center; }
.order-inner h2 { margin-bottom: .8rem; }
.order-inner ol { padding-left: 1.4rem; margin: 0; }
.order-inner li { padding-left: .4rem; margin-bottom: .75rem; }
.phone { margin: .5rem 0 0; color: var(--muted); font-size: .92rem; }
.site-footer { border-top: 1px solid var(--line); padding: 1.15rem 0; }
.site-footer a { font-size: .9rem; }
.owner { color: var(--muted); }
.form-page { min-height: 66vh; display: grid; place-items: center; padding-block: 3.5rem; }
.form-card, .admin-card { width: min(100%, 510px); background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: clamp(1.35rem, 5vw, 2.3rem); }
.form-card h1, .admin-page h1 { font-size: clamp(2rem, 5vw, 3.3rem); margin-bottom: .8rem; }
.stack { display: grid; gap: 1rem; margin-block: 1.4rem; }
label { display: grid; gap: .35rem; font-weight: 650; }
label small { font-weight: 400; }
input, select, textarea { width: 100%; border: 1px solid #c9b6bf; border-radius: 9px; background: #fff; padding: .56rem .7rem; color: var(--ink); min-height: 43px; }
textarea { resize: vertical; }
.notice { padding: .75rem 1rem; border-radius: .6rem; background: var(--rose); color: var(--wine-dark); }
.error { border-left: 3px solid #a53e60; }
.link { background: none; color: var(--wine); border: 0; padding: .2rem 0; }
.danger { color: #a42e4e; }
.admin-page { max-width: 930px; padding-block: 2.8rem 3.8rem; }
.admin-card { width: 100%; margin-block: 1.1rem; }
.admin-card h2 { font-size: 1.65rem; margin-bottom: .65rem; }
.admin-card .stack { margin-bottom: 0; }
.admin-card .button { justify-self: start; }
.issued textarea { margin: .5rem 0 .9rem; }
.table-scroll { overflow-x: auto; }
table { width: 100%; min-width: 520px; text-align: left; border-collapse: collapse; }
th, td { border-bottom: 1px solid var(--line); padding: .55rem; overflow-wrap: anywhere; }
.reader { max-width: 1050px; padding-block: 2.2rem 3rem; }
.reader-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; }
.reader-heading h1 { font-size: clamp(1.9rem, 4vw, 3.2rem); margin-bottom: .4rem; }
.reader-heading .eyebrow { margin-bottom: .6rem; }
.page-picker { display: flex; gap: .5rem; align-items: center; }
.reader-nav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: .5rem; margin-block: 1rem; }
.reader-nav > :first-child { justify-self: start; }
.reader-nav > :last-child { justify-self: end; }
.sheet-scroll { overflow: auto; border: 1px solid var(--line); border-radius: .5rem; box-shadow: 0 6px 24px #5d394015; background: #fff; }
.book-sheet { width: 100%; }
.book-sheet.is-zoomed { max-width: none; width: max(1200px, 140%); }
.zoom-row { display: flex; justify-content: flex-end; margin-top: .5rem; }
@media (max-width: 750px) {
  .hero, .calendar-panel, .order-inner { grid-template-columns: 1fr; }
  .hero { padding-block: 2.9rem 2rem; }
  .cover-stage { margin-inline: auto; max-width: 500px; }
  .topics { grid-template-columns: 1fr; gap: .65rem; }
  .topics article span { margin-bottom: .45rem; }
  .topic-section { padding-bottom: 2.8rem; }
  .nav-details { display: none; }
  .reader-heading { flex-direction: column; align-items: flex-start; }
  .page-picker select { width: auto; }
  .reader-nav .button { padding-inline: .55rem; font-size: .86rem; }
}
@media (max-width: 380px) {
  .wrap { width: calc(100% - 26px); }
  .brand { gap: 6px; letter-spacing: .06em; }
  .footer-inner { gap: .5rem; }
  .site-footer .brand img { display: none; }
}
