/* Segulot.net — design sample, direction 1 ("printed siddur") + Hebrew-year wheel */
:root {
  --paper: #ffffff;
  --mist: #f7f3f8;
  --line: #e6dde9;
  --ink: #23152a;
  --muted: #5b4f63;
  --plum: #6a2a78;
  --plum-deep: #3d1747;
  --gold: #9c7631;
  --gold-soft: #e9dcc0;
  --focus: #1f5fbf;
  --serif: "Frank Ruhl Libre", "David", serif;
  --sans: "Assistant", "Arial", sans-serif;
  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
  --r: 10px;
  --fs: 1;
}
* { box-sizing: border-box; }
html { font-size: calc(18px * var(--fs)); }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); line-height: 1.75; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 50; }
.skip:focus { top: 12px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.25; margin: 0; color: var(--ink); }

/* header */
.site-head { border-bottom: 1px solid var(--line); background: var(--paper); position: sticky; top: 0; z-index: 20; }
.site-head .wrap { display: flex; align-items: center; gap: 28px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 46px; height: 46px; }
.brand span { font-family: var(--serif); font-size: 1.35rem; font-weight: 700; color: var(--plum-deep); }
.nav { display: flex; gap: 4px; margin-inline-start: auto; }
.nav a { text-decoration: none; padding: 8px 12px; border-radius: 8px; color: var(--muted); font-weight: 600; transition: color .15s, background .15s; }
.nav a:hover { color: var(--plum); background: var(--mist); }
.nav a[aria-current] { color: var(--plum); }
.a11y-btn { border: 1px solid var(--line); background: var(--paper); border-radius: 999px; width: 44px; height: 44px; display: grid; place-items: center; cursor: pointer; color: var(--plum-deep); transition: border-color .15s, transform .1s; }
.a11y-btn:hover { border-color: var(--plum); }
.a11y-btn:active { transform: scale(.96); }
.menu-btn { display: none; }

/* hero */
.hero { padding: clamp(40px, 7vw, 88px) 0 clamp(40px, 6vw, 72px); border-bottom: 1px solid var(--line); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); font-weight: 700; color: var(--plum-deep); letter-spacing: -.01em; }
.hero .lead { font-size: 1.15rem; color: var(--muted); margin: 18px 0 30px; max-width: 34em; }
.search { display: flex; gap: 8px; background: var(--paper); border: 1.5px solid var(--ink); border-radius: 999px; padding: 6px; max-width: 560px; }
.search input { flex: 1; border: 0; background: none; font: inherit; font-size: 1.05rem; padding: 8px 16px; min-width: 0; color: var(--ink); }
.search input:focus { outline: none; }
.search:focus-within { box-shadow: 0 0 0 3px rgba(31, 95, 191, .35); }
.btn { font: inherit; font-weight: 600; border: 0; border-radius: 999px; padding: 10px 22px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; transition: background .15s, transform .1s; }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--plum); color: #fff; }
.btn-primary:hover { background: var(--plum-deep); }
.btn-quiet { background: var(--mist); color: var(--plum-deep); }
.btn-quiet:hover { background: var(--line); }
.needs { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.needs a { display: inline-flex; min-height: 44px; align-items: center; padding: 0 18px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-weight: 600; color: var(--plum-deep); transition: border-color .15s, background .15s, transform .1s; }
.needs a:hover { border-color: var(--gold); background: #fffaf0; }
.needs a:active { transform: scale(.97); }

/* the Hebrew-year wheel */
.wheel-box { display: grid; justify-items: center; gap: 8px; }
.wheel { width: min(100%, 440px); aspect-ratio: 1; }
.wheel .ring { transition: transform 1.2s cubic-bezier(.22, .8, .2, 1); transform-origin: 220px 220px; }
.wheel .lab { transition: transform 1.2s cubic-bezier(.22, .8, .2, 1); }
.wheel.no-anim .ring, .wheel.no-anim .lab { transition: none; }
.wheel .m { cursor: pointer; }
.wheel .m text { font-family: var(--serif); font-size: 17px; fill: var(--muted); transition: fill .2s; }
.wheel .m .mz { font-family: var(--sans); font-size: 11.5px; fill: var(--muted); opacity: .8; }
.wheel .m:hover text { fill: var(--plum); }
.wheel .m.on text { fill: var(--plum-deep); font-weight: 700; }
.wheel .m.on .mz { fill: var(--gold); opacity: 1; }
.wheel .m:focus-visible { outline: none; }
.wheel .m:focus-visible .hit { stroke: var(--focus); stroke-width: 3; }
.wheel-center { text-align: center; margin-top: -2px; }
.wheel-center .date { font-family: var(--serif); font-size: 1.5rem; color: var(--plum-deep); }
.wheel-center .mazal { color: var(--muted); }
.wheel-center a { color: var(--plum); font-weight: 600; }

/* daily segula */
.daily { padding: clamp(48px, 7vw, 96px) 0; background: var(--mist); }
.daily .wrap { max-width: 860px; text-align: center; }
.kicker { color: var(--gold); font-weight: 600; font-size: .95rem; }
.daily h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin: 6px 0 20px; color: var(--plum-deep); }
.daily blockquote { margin: 0 auto; font-family: var(--serif); font-size: clamp(1.15rem, 2vw, 1.4rem); line-height: 1.85; max-width: 38em; }
.daily .from { margin: 22px 0 28px; color: var(--muted); }
.daily .actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.rule { width: 72px; height: 2px; background: var(--gold); margin: 0 auto 20px; border: 0; }

/* contents (sections) */
.contents { padding: clamp(48px, 7vw, 96px) 0; }
.contents h2 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); color: var(--plum-deep); margin-bottom: 8px; }
.contents .sub { color: var(--muted); margin: 0 0 28px; }
.toc { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--ink); }
.toc a { display: grid; grid-template-columns: 220px 1fr auto; gap: 24px; align-items: baseline; padding: 22px 4px; border-bottom: 1px solid var(--line); text-decoration: none; transition: background .15s, padding .2s; }
.toc a:hover { background: var(--mist); padding-inline: 16px; }
.toc .t { font-family: var(--serif); font-size: 1.7rem; color: var(--plum-deep); }
.toc .d { color: var(--muted); }
.toc .n { color: var(--gold); font-weight: 600; white-space: nowrap; }

/* neemanim band */
.band { background: var(--plum-deep); color: #fff; padding: clamp(48px, 7vw, 88px) 0; }
.band .wrap { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.band h2 { color: #fff; font-size: clamp(1.8rem, 3.2vw, 2.4rem); }
.band p { color: #e9dff0; margin: 14px 0 0; }
.band .links { display: grid; gap: 12px; }
.band .links a { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px; border: 1px solid rgba(255, 255, 255, .25); border-radius: var(--r); text-decoration: none; transition: border-color .15s, transform .15s; }
.band .links a:hover { border-color: var(--gold-soft); transform: translateY(-2px); }
.band .links b { font-family: var(--serif); font-size: 1.3rem; font-weight: 500; }
.band .links span { color: #e9dff0; font-size: .95rem; }

/* footer */
.foot { padding: 40px 0 56px; color: var(--muted); font-size: .95rem; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.foot a { color: var(--muted); }
.foot a:hover { color: var(--plum); }

/* segula page */
.crumbs { font-size: .95rem; color: var(--muted); padding: 22px 0 0; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--plum); text-decoration: underline; }
.topic-head { padding: 18px 0 36px; border-bottom: 1px solid var(--line); }
.topic-head h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); font-weight: 700; color: var(--plum-deep); }
.topic-head p { color: var(--muted); margin: 10px 0 0; font-size: 1.1rem; }
.jump { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.jump a { display: inline-flex; min-height: 44px; align-items: center; padding: 0 16px; border-radius: 999px; background: var(--mist); text-decoration: none; color: var(--plum-deep); font-weight: 600; transition: background .15s; }
.jump a:hover { background: var(--line); }
.seg { display: grid; grid-template-columns: 1fr 300px; gap: clamp(24px, 4vw, 56px); padding: 44px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 90px; }
.seg h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); color: var(--plum-deep); margin-bottom: 14px; }
.seg .body p { margin: 0 0 14px; max-width: 40em; font-size: 1.08rem; }
.seg .src { color: var(--muted); font-size: .95rem; display: flex; gap: 8px; align-items: center; margin: 4px 0 18px; }
.seg .src::before { content: ""; width: 18px; height: 2px; background: var(--gold); }
.seg .tools { display: flex; gap: 8px; flex-wrap: wrap; }
.seg figure { margin: 0; border-radius: var(--r); overflow: hidden; aspect-ratio: 1; background: var(--mist); }
.seg figure img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.seg figure:hover img { transform: scale(1.03); }
.note { margin: 36px 0 0; padding: 18px 22px; border-inline-start: 3px solid var(--gold); background: #fffaf0; color: var(--muted); font-size: .95rem; border-radius: 0; }
.more { padding: 56px 0 72px; }
.more h2 { font-size: 1.8rem; color: var(--plum-deep); margin-bottom: 18px; }

/* accessibility panel */
.a11y-panel { position: fixed; inset-inline-end: 16px; top: 84px; width: min(320px, calc(100vw - 32px)); background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 18px; box-shadow: 0 12px 40px rgba(35, 21, 42, .18); z-index: 40; }
.a11y-panel[hidden] { display: none; }
.a11y-panel h2 { font-size: 1.2rem; margin-bottom: 10px; }
.a11y-panel .row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.a11y-panel button { font: inherit; min-height: 44px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); cursor: pointer; color: var(--ink); }
.a11y-panel button[aria-pressed="true"] { border-color: var(--plum); background: var(--mist); color: var(--plum-deep); font-weight: 600; }
.a11y-panel a { display: block; margin-top: 12px; color: var(--plum); }
html.hc { --muted: #23152a; --line: #23152a; --gold: #6b4d12; }
html.links-on a { text-decoration: underline !important; }
html.still *, html.still *::before { transition: none !important; animation: none !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before { transition: none !important; animation: none !important; }
}
@media (max-width: 900px) {
  .hero .wrap, .band .wrap { grid-template-columns: 1fr; }
  .wheel { width: min(100%, 360px); }
  .toc a { grid-template-columns: 1fr auto; }
  .toc .d { grid-column: 1 / -1; grid-row: 2; }
  .seg { grid-template-columns: 1fr; }
  .seg figure { max-width: 420px; }
  .site-head .wrap { flex-wrap: wrap; gap: 12px; }
  .nav { display: none; order: 3; width: 100%; flex-direction: column; padding: 0 0 12px; }
  .nav.open { display: flex; }
  .nav a { min-height: 48px; display: flex; align-items: center; font-size: 1.1rem; }
  .menu-btn { display: grid; margin-inline-start: auto; }
}

/* Magazine home (sample 2) — builds on styles.css tokens */
.sec { padding: clamp(36px, 5vw, 64px) 0; }
.sec + .sec { padding-top: 0; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; border-bottom: 2px solid var(--ink); padding-bottom: 10px; }
.sec-head h2 { font-family: var(--head); font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 700; color: var(--plum-deep); }
.sec-head a { color: var(--plum); font-weight: 600; text-decoration: none; white-space: nowrap; }
.sec-head a:hover { text-decoration: underline; }
.tag { display: inline-block; font-size: .85rem; font-weight: 600; color: var(--plum); background: var(--mist); padding: 2px 10px; border-radius: 999px; }
.tag.gold { color: #6b4d12; background: #f7efdc; }

.lead-grid > *, .duo > *, .wheel-strip > *, .side > * { min-width: 0; }

/* lead grid */
.lead-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; padding-top: 28px; }
.feature { position: relative; overflow: hidden; background: var(--plum-deep); color: #fff; border-radius: 16px; min-height: 420px; display: flex; align-items: center; }
.feature .orn { position: absolute; inset-inline-end: -70px; top: 50%; width: 380px; height: 380px; transform: translateY(-50%); color: var(--gold); opacity: .35; }
.feature .tx { position: relative; padding: clamp(28px, 4vw, 52px); display: flex; flex-direction: column; gap: 14px; max-width: 620px; }
.feature .tag { background: rgba(255, 255, 255, .14); color: #fff; align-self: flex-start; }
.feature h1, .feature .f-title { color: #fff; font-size: clamp(2rem, 3.6vw, 3rem); font-weight: 700; }
.feature p { margin: 0; color: #efe6f4; font-size: 1.1rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.feature .go { color: var(--gold-soft); font-weight: 600; }
.feature .actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.btn-gold { background: #d9b46a; color: var(--plum-deep); }
.btn-gold:hover { background: #e7c887; }
.btn-line { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .55); }
.btn-line:hover { box-shadow: inset 0 0 0 1.5px #fff; }
.side { display: grid; gap: 24px; grid-template-rows: 1fr 1fr; }
.mini { display: grid; grid-template-columns: 120px 1fr; gap: 16px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: 14px; text-decoration: none; transition: border-color .15s, transform .2s; }
.mini:hover { border-color: var(--plum); transform: translateY(-2px); }
.mini .ph { border-radius: 10px; overflow: hidden; aspect-ratio: 3/4; position: relative; background: var(--mist); }
.mini .ph img { width: 100%; height: 100%; object-fit: cover; }
.mini h3 { font-family: var(--head); font-weight: 700; font-size: 1.2rem; color: var(--plum-deep); margin: 6px 0 4px; }
.mini p { margin: 0; color: var(--muted); font-size: .98rem; line-height: 1.5; font-weight: 500; }
.play { position: absolute; inset: 0; display: grid; place-items: center; }
.play span { width: 44px; height: 44px; border-radius: 50%; background: rgba(35, 21, 42, .7); display: grid; place-items: center; }
.month-badge { aspect-ratio: 3/4; border-radius: 10px; background: var(--mist); display: grid; place-items: center; text-align: center; font-family: var(--serif); color: var(--plum-deep); }
.month-badge b { font-size: 2.2rem; display: block; line-height: 1; }

/* need cards */
.needs-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.need { text-decoration: none; display: grid; border-radius: 14px; overflow: hidden; background: var(--mist); transition: transform .2s, background .15s; }
.need:hover { transform: translateY(-2px); background: #efe6f2; }
.need .ph { aspect-ratio: 4 / 3; overflow: hidden; display: block; }
.need img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.need:hover img { transform: scale(1.03); }
.need .nt { display: grid; gap: 2px; padding: 12px 14px 14px; }
.need b { font-family: var(--head); font-size: 1.15rem; font-weight: 700; color: var(--plum-deep); }
.need small { font-size: .92rem; color: var(--muted); line-height: 1.4; font-weight: 500; }

/* videos */
.vids { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.vid { text-decoration: none; display: grid; gap: 8px; }
.vid .ph { position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 9/16; background: var(--ink); }
.vid img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.vid:hover img { transform: scale(1.03); }
.vid b { font-family: var(--head); font-weight: 500; color: var(--ink); line-height: 1.4; }

/* names + dreams */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.finder { border-radius: 16px; padding: clamp(24px, 3vw, 36px); background: var(--mist); }
.finder.dream { background: #f2f0fa; }
.finder h2 { font-family: var(--head); font-size: clamp(1.5rem, 2.4vw, 1.9rem); color: var(--plum-deep); font-weight: 700; }
.finder p { color: var(--muted); margin: 6px 0 18px; }
.finder .search { background: #fff; border-color: var(--line); }
.finder .needs a { background: #fff; }

/* wheel strip */
.wheel-strip { display: grid; grid-template-columns: 360px 1fr; gap: 40px; align-items: center; border-top: 1px solid var(--line); padding-top: 36px; }
.wheel-strip .wheel { width: 100%; }
.wheel-strip h2 { font-family: var(--head); font-weight: 700; font-size: clamp(1.6rem, 2.6vw, 2.1rem); color: var(--plum-deep); }
.wheel-strip .lead2 { color: var(--muted); margin: 8px 0 18px; }
.month-box { border-inline-start: 3px solid var(--gold); padding: 6px 20px; }
.month-box h3 { font-family: var(--head); font-weight: 700; font-size: 1.4rem; color: var(--plum-deep); margin-top: 6px; }
.month-box p { margin: 6px 0 14px; font-size: 1.05rem; }

@media (max-width: 1000px) {
  .lead-grid, .duo, .wheel-strip { grid-template-columns: 1fr; }
  .side { grid-template-rows: none; }
  .needs-grid { grid-template-columns: repeat(3, 1fr); }
  .vids { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 42%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
  .vid { scroll-snap-align: start; }
  .wheel-strip .wheel-box { max-width: 340px; margin: 0 auto; }
}
@media (max-width: 640px) {
  .feature { grid-template-columns: 1fr; min-height: 0; }
  .feature .ph { aspect-ratio: 1; }
  .needs-grid { grid-template-columns: repeat(2, 1fr); }
}

/* stronger secondary text + header search (sample 2) */
:root { --head: "Rubik", "Assistant", sans-serif; --muted: #4a3e52; }
.head-search { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; padding: 0 6px 0 4px; min-height: 44px; width: 260px; transition: border-color .15s, box-shadow .15s; }
.head-search:focus-within { border-color: var(--plum); box-shadow: 0 0 0 3px rgba(31, 95, 191, .25); }
.head-search input { border: 0; background: none; font: inherit; font-size: .98rem; padding: 0 12px; width: 100%; min-width: 0; color: var(--ink); }
.head-search input:focus { outline: none; }
.head-search button { border: 0; background: var(--plum); color: #fff; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; flex: none; }
.site-head .nav { margin-inline-start: 0; }
.site-head .head-search { margin-inline-start: auto; }
.nav a { font-family: var(--head); font-weight: 500; }
@media (max-width: 1000px) {
  .head-search { order: 4; width: 100%; margin: 0 0 12px; }
  .feature { min-height: 0; }
  .feature .orn { width: 260px; height: 260px; inset-inline-end: -90px; }
}
.sec-head a, .foot a { display: inline-flex; align-items: center; min-height: 44px; }
.head-search { min-height: 48px; }
.head-search button { width: 44px; height: 44px; }

/* feature with photo */
.feature.has-photo { display: grid; grid-template-columns: 1.15fr 1fr; align-items: stretch; }
.feature.has-photo .fph { order: 2; overflow: hidden; }
.feature.has-photo .fph img { width: 100%; height: 100%; object-fit: cover; }
.feature.has-photo .orn { inset-inline-end: auto; inset-inline-start: 30%; width: 300px; height: 300px; opacity: .18; }
.feature.has-photo .tx { order: 1; align-self: center; }
@media (max-width: 640px) {
  .feature.has-photo { grid-template-columns: 1fr; }
  .feature.has-photo .fph { order: 0; aspect-ratio: 16 / 9; }
}
.feature.has-photo h1, .feature.has-photo .f-title { font-size: clamp(1.8rem, 2.6vw, 2.5rem); }
.feature.has-photo > * { min-width: 0; }

/* round 3: shorter opening, no ornament on photo card, logo */
.brand img { width: 56px; height: 56px; border-radius: 50%; }
.lead-grid { padding-top: 22px; }
.feature, .feature.has-photo { min-height: 330px; }
.feature.has-photo .orn { display: none; }
.side { gap: 16px; }
.mini { grid-template-columns: 92px 1fr; padding: 12px; }
.mini h3 { font-size: 1.12rem; }
.lead-grid + .sec, .wrap + .sec { padding-top: 32px; }
.sec-head { margin-bottom: 16px; }
/* reading page uses the same headings */
.seg h2, .more h2 { font-family: var(--head); font-weight: 700; }

/* round 4: aligned category titles, compact opening, wordmark back */
.need { grid-template-rows: auto 1fr; }
.need .nt { align-content: start; }
.feature.has-photo { grid-template-columns: 1.45fr 1fr; min-height: 0; }
.feature .tx { padding: 26px 30px; gap: 10px; }
.feature.has-photo h1, .feature.has-photo .f-title { font-size: clamp(1.7rem, 2.3vw, 2.2rem); }
.feature p { -webkit-line-clamp: 2; font-size: 1.02rem; }
.feature .go { font-size: .95rem; }
.feature .actions { margin-top: 2px; }
.feature .btn { min-height: 44px; padding: 8px 18px; }
.side { grid-template-rows: auto auto; align-content: stretch; }
.mini { padding: 10px; gap: 14px; grid-template-columns: 80px 1fr; }
.mini .ph, .month-badge { aspect-ratio: 1; }
.mini h3 { margin: 4px 0 2px; }
.mini p { font-size: .93rem; }
.month-badge b { font-size: 1.7rem; }
.brand { gap: 10px; }
.brand span { font-family: var(--head); font-weight: 700; font-size: 1.45rem; color: var(--plum-deep); }
@media (max-width: 640px) {
  .feature.has-photo { grid-template-columns: 1fr; }
  .feature.has-photo .fph { order: 0; aspect-ratio: 16 / 9; }
  .feature .tx { padding: 22px 20px 24px; }
  .feature .actions .btn { flex: 1 1 auto; justify-content: center; }
}

/* ===== round 5: readability first ===== */
:root { --muted: #3d3245; --line: #ddd2e2; }
body { line-height: 1.6; font-weight: 400; }
p, li { line-height: 1.6; }
::placeholder { color: #5e5266; opacity: 1; }
.feature p { -webkit-line-clamp: unset; display: block; font-size: 1.05rem; }
.mini p, .need small, .finder p, .wheel-strip .lead2, .crumbs, .topic-head p, .seg .src, .note, .foot, .month-box p, .daily .from { font-size: max(.9rem, 16px); font-weight: 500; color: var(--muted); }
.vid b { font-size: max(.95rem, 16px); line-height: 1.4; }
.need .nt { padding: 12px 14px 16px; }
.seg .body p { font-size: 1.05rem; line-height: 1.65; }
.tag { font-size: max(.85rem, 15px); }
.btn, .needs a, .jump a { font-size: max(.95rem, 16px); }

/* search results */
.results { position: relative; z-index: 15; margin-top: 8px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 30px rgba(35, 21, 42, .12); overflow: hidden; max-width: 560px; }
.results ul { list-style: none; margin: 0; padding: 4px 0; }
.results a { display: flex; justify-content: space-between; gap: 12px; align-items: center; min-height: 48px; padding: 8px 16px; text-decoration: none; color: var(--ink); }
.results a:hover, .results a:focus-visible { background: var(--mist); }
.results b { font-weight: 600; }
.results span { color: var(--plum); font-size: 15px; font-weight: 600; white-space: nowrap; }
.results .none { margin: 0; padding: 14px 16px; color: var(--muted); font-weight: 500; }
.site-head .head-search + .results { position: absolute; top: 64px; inset-inline-end: 140px; width: 380px; }
.search input { min-width: 0; text-overflow: ellipsis; }

/* phone header: full row at the top, a compact bar with a search icon after scrolling */
.search-btn, .m-search { display: none; }
html { scroll-padding-top: 84px; }
@media (max-width: 1000px) {
  .site-head .wrap { flex-wrap: nowrap; min-height: 64px; gap: 8px; }
  .site-head .nav.open { position: absolute; top: 64px; inset-inline: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 4px var(--gutter) 12px; }
  .site-head { position: sticky; }
  .head-search { display: none; }
  .head-search.open { display: flex; position: absolute; top: 64px; inset-inline: 0; margin: 0; width: auto; background: #fff; border-radius: 0; border: 0; border-bottom: 1px solid var(--line); padding: 10px var(--gutter); min-height: 64px; }
  .head-search.open input { border: 1px solid var(--line); border-radius: 999px; min-height: 46px; }
  .site-head .head-search + .results { top: 128px; inset-inline: var(--gutter); width: auto; }
  .m-search { display: block; padding: 12px var(--gutter) 4px; }
  .m-search .search { max-width: none; border-width: 1px; border-color: #bfb2c6; }
  .m-search .search .btn { padding: 8px 14px; }
  .m-search .results { max-width: none; }
  body.row-gone .search-btn { display: grid; }
  .brand img { width: 46px; height: 46px; }
  .brand span { font-size: 1.3rem; }
}

/* opening: shorter photo on phones, tighter side cards on desktop */
@media (max-width: 640px) { .feature.has-photo .fph { aspect-ratio: 2 / 1; } }
.mini { padding: 8px 10px; }

/* videos: swipe with a peek of the next one, page still scrolls */
@media (max-width: 1000px) {
  .vids { grid-auto-columns: 40%; overscroll-behavior-x: contain; touch-action: pan-x pan-y; scroll-padding-inline: var(--gutter); }
}
dialog.player { padding: 0; border: 0; border-radius: 16px; background: #120a16; color: #fff; width: min(420px, 92vw); max-height: 92vh; }
dialog.player::backdrop { background: rgba(18, 10, 22, .78); }
.pbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 8px 8px 14px; }
.pbar h2 { color: #fff; font-family: var(--head); font-size: 1.05rem; font-weight: 500; }
.pbar .close { width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .12); color: #fff; display: grid; place-items: center; cursor: pointer; flex: none; }
dialog.player video { display: block; width: 100%; max-height: calc(92vh - 60px); background: #000; }

/* wheel: darker labels and dividers; today vs. selected */
.wheel .m text { fill: #3d3245; }
.wheel .m .mz { fill: #4a3e52; opacity: 1; font-size: 12px; }
.wheel line { stroke: #cfc3d4; }
.wheel .now-dot { fill: transparent; }
.wheel .m.now .now-dot { fill: var(--gold); }
.wheel .m.on text { fill: var(--plum-deep); }

/* round 6: compact topic header, month card as a shortcut to the wheel */
.crumbs { padding-top: 14px; }
.topic-head { padding: 8px 0 20px; }
.topic-head h1 { line-height: 1.15; }
.topic-head p { margin-top: 6px; }
.jump { margin-top: 14px; gap: 6px; }
.topic-head + .seg { padding-top: 26px; }
.mini .to-wheel { color: var(--plum); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.mini:hover .to-wheel { text-decoration-thickness: 2px; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media (max-width: 1000px) {
  /* phone and tablet: heading first, then the wheel, then the month details right under it */
  .wheel-strip { gap: 0; }
  .wheel-strip > div:not(.wheel-box) { display: contents; }
  .wheel-strip h2, .wheel-strip .lead2 { order: -1; }
  .wheel-strip .lead2 { margin-bottom: 22px; }
  .wheel-strip .month-box { margin-top: 24px; }
}
@media (max-width: 760px) {
  .jump a { min-height: 44px; padding: 0 14px; }
}

/* ===================== the full site (19.11.2026) ===================== */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap.narrow { max-width: 820px; }
.sec-title { font-family: var(--head); font-weight: 700; font-size: clamp(1.5rem, 2.4vw, 1.9rem); color: var(--plum-deep); margin: 8px 0 18px; }

/* section pages */
.tabs { display: flex; gap: 6px; margin-top: 18px; border-bottom: 1px solid var(--line); }
.tabs a { min-height: 48px; display: inline-flex; align-items: center; padding: 0 18px; text-decoration: none; font-family: var(--head); font-weight: 700; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -1px; }
.tabs a:hover { color: var(--plum); }
.tabs a[aria-current="page"] { color: var(--plum-deep); border-bottom-color: var(--gold); }
.topic-head .tabs + * { margin-top: 0; }
.list-grid { grid-template-columns: repeat(4, 1fr); padding: 26px 0 64px; }
.zodiac-grid { grid-template-columns: repeat(6, 1fr); padding-bottom: 64px; }
.need.no-ph { grid-template-rows: auto 1fr; }
.need .orn-ph { background: radial-gradient(circle at 50% 50%, transparent 38%, rgba(156, 118, 49, .18) 39%, transparent 40%), linear-gradient(135deg, #3d1747, #6a2a78); position: relative; }
.need .orn-ph::after { content: ""; position: absolute; inset: 0; background: url("/logo.png") center / 30% no-repeat; opacity: .5; }
.zodiac-grid .need .nt { padding: 18px 16px; }
@media (max-width: 1000px) { .list-grid { grid-template-columns: repeat(3, 1fr); } .zodiac-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 640px) { .list-grid, .zodiac-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }

/* reading pages */
.topic-head.slim { padding-bottom: 0; border-bottom: 0; }
.topic-head .intro { margin-top: 10px; max-width: 46em; }
.seg h2 a { color: inherit; text-decoration: none; }
.seg h2 a:hover { color: var(--plum); text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.seg-h1 { font-family: var(--head); font-weight: 700; font-size: clamp(1.9rem, 3.6vw, 2.6rem); line-height: 1.2; color: var(--plum-deep); margin: 8px 0 16px; }
.seg.solo { padding-top: 18px; }
.seg:not(:has(figure)) { grid-template-columns: 1fr; }
.prose { max-width: 42em; }
.prose p { margin: 0 0 14px; font-size: 1.05rem; line-height: 1.7; }
.prose h3, .prose h4 { font-family: var(--head); font-weight: 700; color: var(--plum-deep); font-size: 1.25rem; margin: 26px 0 10px; }
.prose h4 { font-size: 1.1rem; }
.prose ul, .prose ol { padding-inline-start: 1.3em; margin: 0 0 16px; line-height: 1.7; }
.prose li { margin-bottom: 6px; }
.prose blockquote { margin: 0 0 16px; padding: 10px 18px; border-inline-start: 3px solid var(--gold); background: #fffaf0; }
.prose img { max-width: 100%; height: auto; border-radius: var(--r); margin: 8px 0 16px; }
.prose a { color: var(--plum); }
.prose strong, .prose b { color: var(--ink); }
.seg .tools { margin-top: 18px; }
.more .btn { margin-top: 18px; }

/* names and dreams lists */
.page-search { margin-top: 18px; max-width: 560px; }
.letters { display: flex; flex-wrap: wrap; gap: 6px; padding: 18px 0 6px; position: sticky; top: 64px; background: #fff; z-index: 5; border-bottom: 1px solid var(--line); }
.letters a { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; text-decoration: none; font-family: var(--head); font-weight: 700; color: var(--plum-deep); background: var(--mist); }
.letters a:hover { background: var(--line); }
.az { padding: 22px 0 6px; scroll-margin-top: 140px; }
.az h2 { font-family: "Frank Ruhl Libre", serif; font-size: 2rem; color: var(--gold); margin: 0 0 10px; line-height: 1; }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips a { display: inline-flex; min-height: 44px; align-items: center; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-weight: 600; color: var(--plum-deep); }
.chips a:hover { border-color: var(--gold); background: #fffaf0; }
main .az:last-child { padding-bottom: 72px; }
.filter { display: flex; gap: 6px; margin-top: 14px; }
.filter button { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font: inherit; font-weight: 600; color: var(--plum-deep); cursor: pointer; }
.filter button[aria-pressed="true"] { background: var(--plum-deep); border-color: var(--plum-deep); color: #fff; }

/* legal pages */
.legal { padding: 8px 0 72px; }
.legal h2 { font-family: var(--head); font-weight: 700; font-size: 1.35rem; color: var(--plum-deep); margin: 30px 0 10px; }

/* footer */
.foot { border-top: 1px solid var(--line); margin-top: 0; }
.foot-about { display: grid; gap: 4px; max-width: 520px; }
.foot-about b { font-family: var(--head); color: var(--plum-deep); font-size: 1.15rem; }
.foot-about a { display: inline; min-height: 0; color: var(--plum); }

/* accessibility menu: extra modes */
html.readable body, html.readable .prose p { font-family: Arial, "Assistant", sans-serif !important; }
html.spacing body { letter-spacing: .04em; word-spacing: .12em; }
html.spacing p, html.spacing li { line-height: 2 !important; }
html.focus-on :focus { outline: 4px solid #e8a400 !important; outline-offset: 3px !important; }
html.big-cursor, html.big-cursor * { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 24 24'%3E%3Cpath d='M4 2l16 11-7 1 4 8-3 1-4-8-6 5z' fill='%23000' stroke='%23fff' stroke-width='1.2'/%3E%3C/svg%3E") 4 2, auto !important; }
.a11y-panel .row { grid-template-columns: repeat(2, 1fr); }

@media print {
  .site-head, .m-search, .foot, .tools, .more, .jump, .a11y-panel, .crumbs, .tabs { display: none !important; }
  .seg { grid-template-columns: 1fr; border: 0; }
  .seg figure { display: none; }
}
.topic-head:has(.tabs), .topic-head:has(+ .letters) { border-bottom: 0; padding-bottom: 0; }
.letters { padding-top: 12px; }
@media (max-width: 640px) {
  .letters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 10px; }
  .letters::-webkit-scrollbar { display: none; }
  .letters a { flex: 0 0 44px; }
}
html.mono body { filter: grayscale(1); }
/* search boxes: a solid, clearly visible focus ring (the input itself has none) */
.search:focus-within, .head-search:focus-within { box-shadow: 0 0 0 3px var(--focus); }
/* the segula's own (square) picture in the daily card: keep its centre, where the title usually is */
.feature .fph img[data-own] { object-position: center; }
