* { box-sizing: border-box; }
:root {
  color-scheme: light;
  --ink: #10274c;
  --muted: #496282;
  --blue: #1554dc;
  --edge: #d7e5f6;
  --wash: #eef6ff;
  font-family: "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
}
body { margin: 0; background: #fff; line-height: 1.55; }
[hidden] { display: none !important; }
a { color: var(--blue); text-underline-offset: .18em; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid #2678ed; outline-offset: 4px; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { line-height: 1.08; margin: 0 0 .45em; letter-spacing: -.04em; }
h1 { font-size: clamp(2.65rem, 7vw, 5.6rem); font-weight: 780; }
h2 { font-size: clamp(1.55rem, 3vw, 2.55rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; color: var(--muted); }
.wrap { width: min(1160px, 100% - 3rem); margin-inline: auto; }
.section { padding-block: clamp(2.5rem, 6vw, 5rem); }
.header { border-bottom: 1px solid var(--edge); background: #fff; position: relative; z-index: 2; }
.header-inner, .footer-inner, .section-head, .actions { display: flex; align-items: center; gap: 1rem; }
.header-inner, .section-head { justify-content: space-between; }
.header-inner { min-height: 76px; }
.brand { display: flex; align-items: center; gap: .7rem; color: var(--ink); font-size: 1.12rem; text-decoration: none; font-weight: 650; white-space: nowrap; }
.brand b { color: var(--blue); }
nav { display: flex; align-items: center; flex-wrap: wrap; gap: clamp(.6rem, 2vw, 1.5rem); }
nav > a { text-decoration: none; color: var(--ink); font-size: .94rem; font-weight: 600; }
nav > a:hover, nav [aria-current=page] { color: var(--blue); text-decoration: underline; }
.button, button { font: inherit; font-weight: 650; }
.button, .menu { display: inline-flex; align-items: center; justify-content: center; gap: .55em; background: var(--blue); color: #fff; border: 1px solid var(--blue); padding: .68rem 1.12rem; border-radius: .7rem; text-decoration: none; cursor: pointer; }
.button:hover { background: #1048c1; color: #fff; }
.outline { background: #fff; color: var(--blue); border-color: #acc7f0; }
.outline:hover { background: #e3efff; color: var(--ink); }
.hero { background: radial-gradient(ellipse at 85% 50%, #dceaff, transparent 57%), linear-gradient(135deg, #f6fbff 0%, #eaf4ff 85%); border-bottom: 1px solid var(--edge); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.16fr 1fr; align-items: center; gap: 2rem; padding-block: clamp(3rem, 8vw, 7.75rem); }
.hero h1 { margin-bottom: .28em; font-size: clamp(2.65rem, 6.1vw, 4.65rem); }
.hero em { color: var(--blue); font-style: normal; }
.tag { font-size: .78rem; font-weight: 750; color: #174799; letter-spacing: .075em; text-transform: uppercase; }
.dot { display: inline-block; width: .6em; height: .6em; border-radius: 50%; background: #2178f4; margin-right: .35em; vertical-align: .1em; }
.intro { font-size: clamp(1.08rem, 2vw, 1.35rem); max-width: 39rem; }
.actions { flex-wrap: wrap; margin-top: 1.6rem; }
.art { position: relative; display: grid; place-items: center; min-width: 0; aspect-ratio: 1.28; isolation: isolate; }
.orbit { position: absolute; width: 97%; aspect-ratio: 1.14; border: 1px solid #9ebefa; border-radius: 50%; transform: rotate(-24deg); z-index: -1; }
.orbit-two { width: 83%; transform: rotate(25deg); opacity: .48; }
.window { width: 76%; background: #fff; border: 1px solid #b3ccf7; border-radius: 1.3rem; box-shadow: 0 26px 65px #286ce036; transform: rotate(-7deg); overflow: hidden; }
.window-bar { display: flex; align-items: center; gap: .34rem; height: 2.15rem; padding-inline: .85rem; background: #f0f6ff; border-bottom: 1px solid var(--edge); }
.window-bar i { width: .45rem; height: .45rem; border-radius: 50%; background: #8cb2f6; }
.window-bar span { width: 54%; margin-inline: auto; height: .65rem; border-radius: 1rem; background: #deebff; }
.window-body { display: grid; align-items: center; grid-template-columns: .85fr 1fr; gap: 1rem; padding: 13% 9%; background: linear-gradient(135deg, #fff, #e8f2ff); }
.window-body img { box-shadow: 0 12px 30px #3774de42; border-radius: 24%; }
.lines { display: grid; gap: .65rem; }
.lines i { height: .7rem; border-radius: 1rem; background: #bbd4ff; }
.lines i:first-child { height: 1rem; background: #4280ef; width: 88%; }
.lines i:last-child { width: 57%; }
.float { position: absolute; display: grid; place-items: center; width: 3.4rem; height: 3.4rem; background: white; color: var(--blue); border: 1px solid #b8d2fb; border-radius: 1rem; box-shadow: 0 12px 32px #286ce02e; font-size: 1.25rem; font-weight: 750; }
.float-code { left: 4%; bottom: 18%; transform: rotate(-10deg); }
.float-link { right: 5%; top: 14%; transform: rotate(12deg); }
.section-head { margin-bottom: 1.2rem; align-items: baseline; flex-wrap: wrap; }
.section-head p { margin-bottom: 0; }
.cards, .split { display: grid; gap: 1.2rem; }
.cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.split { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card, .split article, .panel, fieldset, .empty { border: 1px solid var(--edge); border-radius: 1rem; }
.card { background: #fff; overflow: hidden; box-shadow: 0 9px 25px #2d66950c; transition: transform .2s; }
.card:hover { transform: translateY(-3px); }
.card-image { display: grid; place-items: center; aspect-ratio: 16 / 9; background: linear-gradient(135deg, #d5e8ff, #f3f8ff); text-decoration: none; }
.card-image img { width: 100%; height: 100%; object-fit: cover; }
.card-art { font-size: 3.6rem; font-weight: 800; }
.card-copy, .split article, .empty { padding: 1.35rem; }
.card h3 a { text-decoration: none; color: var(--ink); }
.split article, .empty { background: #f7fbff; }
.arrow { font-weight: 700; text-decoration: none; }
.arrow:hover { text-decoration: underline; }
.empty { margin: 0; }
.reading, .prose { max-width: 780px; }
.prose { margin-block: 1.4rem; font-size: 1.1rem; overflow-wrap: anywhere; }
.featured { width: 100%; border-radius: 1rem; margin-block: 1.4rem; }
.sharing { border-top: 1px solid var(--edge); padding-top: 1.3rem; }
.cta { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding: clamp(1.4rem, 5vw, 3.5rem); background: var(--wash); border: 1px solid var(--edge); border-radius: 1.2rem; }
.cta p { margin: 0; }
footer { border-top: 1px solid var(--edge); background: #f7fbff; }
.footer-inner { flex-wrap: wrap; min-height: 84px; padding-block: 1rem; color: var(--muted); }
.footer-inner span { margin-right: auto; }
.skip { position: absolute; z-index: 3; background: white; padding: .6rem; transform: translateY(-120%); }
.skip:focus { transform: none; }
.admin { max-width: 940px; }
.admin h1 { font-size: clamp(2rem, 5vw, 3.5rem); margin-top: .35em; }
.editor { max-width: 740px; display: grid; gap: 1rem; justify-items: stretch; }
.editor > .button { justify-self: start; }
.editor label { display: grid; gap: .35rem; font-weight: 650; }
.editor input:not([type=checkbox]), .editor select, .editor textarea { width: 100%; min-width: 0; padding: .55rem; font: inherit; font-weight: 400; border: 1px solid #9eb5d4; border-radius: .45rem; }
.editor input[type=checkbox] { width: 1.1rem; height: 1.1rem; accent-color: var(--blue); }
.editor .check { display: flex; align-items: center; font-weight: 500; }
fieldset, .panel { display: grid; min-width: 0; gap: .8rem; padding: 1.15rem; }
legend { padding-inline: .4rem; font-weight: 700; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.preview, .notice { padding: 1rem; background: #eef6ff; border-radius: .6rem; overflow-wrap: anywhere; }
.preview p { margin: .35rem 0 0; }
.preview small, .preview strong { display: block; }
.preview img { max-height: 135px; margin-block: .55rem; }
.notice.error { background: #fff2f0; color: #8c240b; }
.records { list-style: none; padding: 0; }
.records li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .4rem 1rem; padding: .7rem 0; border-bottom: 1px solid var(--edge); }
.thumb { max-width: 180px; border-radius: .5rem; }
@media (max-width: 850px) {
  .header-inner { flex-wrap: wrap; gap: .65rem; padding-block: .7rem; }
  nav { width: 100%; padding-bottom: .4rem; }
  nav.is-collapsed { display: none; }
}
@media (max-width: 650px) {
  .wrap { width: calc(100% - 2rem); }
  .hero-grid, .cards, .split { grid-template-columns: minmax(0, 1fr); }
  .hero-grid { gap: .75rem; padding-bottom: 1.6rem; }
  .art { max-width: 390px; width: 100%; justify-self: center; }
  nav { align-items: start; flex-direction: column; }
  .footer-inner { gap: .65rem 1rem; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }

.contact-panel { max-width: 740px; margin-top: 1.6rem; }
.contact-panel .notice { margin-bottom: 1rem; }
.contact-panel .notice p { color: inherit; }
.inquiry { margin-bottom: .9rem; overflow-wrap: anywhere; }
.inquiry p { margin-bottom: 0; }
@media (max-width: 540px) {
  .contact-grid { grid-template-columns: 1fr; }
}
.admin-filters { display: flex; flex-wrap: wrap; gap: .4rem 1rem; margin-bottom: 1rem; }
.admin-filters [aria-current="page"] { font-weight: 750; }
#seo-suggestions dt { font-weight: 700; }
#seo-suggestions dd { margin: 0 0 .55rem; }

.floating-back {
  position: fixed;
  z-index: 5;
  inset-inline-start: max(.8rem, env(safe-area-inset-left));
  bottom: calc(.85rem + env(safe-area-inset-bottom));
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  min-height: 46px;
  padding: .25rem .8rem .25rem .3rem;
  border: 1px solid #b8d6fb;
  border-radius: 2rem;
  background: rgba(255,255,255,.97);
  color: #123f87;
  font-size: .86rem;
  font-weight: 760;
  text-decoration: none;
  box-shadow: 0 6px 22px #133d7629;
  animation: floating-back-enter .32s ease-out both;
  transition: background .18s, box-shadow .18s, transform .18s;
}
.floating-back-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(145deg,#0782ff,#044dcc);
  color: white;
}
.floating-back-icon svg { transition: transform .18s ease-out; }
@media (hover:hover) {
  .floating-back:hover { background: #edf6ff; transform: translateY(-2px); box-shadow: 0 9px 24px #133d7638; }
  .floating-back:hover svg { transform: translateX(-3px); }
}
.floating-back:active { transform: scale(.97); }
body:has(.floating-back) .public-footer, .admin-body:has(.floating-back) { padding-bottom: calc(4.25rem + env(safe-area-inset-bottom)); }
.admin-body:has(#editor) .floating-back { bottom: calc(4.25rem + env(safe-area-inset-bottom)); }
@keyframes floating-back-enter {
  from { opacity: 0; translate: 0 7px; }
  to { opacity: 1; translate: 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  .floating-back { animation: none; }
  .floating-back:hover, .floating-back:active, .floating-back:hover svg { transform: none; }
}
