/* yearlyhoroscope.co.il: light almanac look, ported from design/yearlyhoroscope (approved 17 Nov 2026).
   Contract: docs/ui-design-system.md, section yearlyhoroscope.co.il. Class names differ from the prototype where another
   site already used them (footprint_check): mast, nameplate, drawer, sign-strip, skiplink, more-topics. */
@import url("fonts/fonts.css");

:root {
  --paper: #F6F4EC; --paper-2: #EDEADF; --paper-3: #E4E0D2;
  --ink: #1C2033; --ink-2: #575B6B;
  --accent: #1F3D5C; --accent-ink: #F6F4EC;
  --fire: #B5442E; --fire-t: #F5E1D9;
  --earth: #55702E; --earth-t: #E5EBD8;
  --air: #9A6F0E; --air-t: #F4EAD0;
  --water: #2A6585; --water-t: #DCE8EF;
  --display: "Frank Ruhl Libre", "David", serif;
  --text: "Rubik", "Arial Hebrew", sans-serif;
  --shadow: 0 22px 48px -24px rgba(74, 62, 34, .30), 0 4px 14px -8px rgba(74, 62, 34, .18);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 18px/1.85 var(--text); }
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 16px; }
.skiplink { position: absolute; inset-inline-start: -999px; }
.skiplink:focus { inset-inline-start: 16px; top: 8px; background: var(--ink); color: var(--paper); padding: 12px 16px; min-height: 44px; border-radius: 10px; z-index: 9; }
.icon { width: 24px; height: 24px; flex: none; }
.press { transition: transform 180ms var(--ease); }
.press:active { transform: scale(.97); }

/* Masthead */
.mast { position: sticky; top: 0; z-index: 5; background: rgba(246, 244, 236, .94); backdrop-filter: blur(8px); }
.mast .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.nameplate { display: flex; align-items: center; gap: 8px; text-decoration: none; min-height: 44px; }
.nameplate b { font: 900 26px/1 var(--display); letter-spacing: -.01em; }
.nameplate span { font: 600 13px/1 var(--text); color: var(--paper); background: var(--ink); border-radius: 999px; padding: 5px 9px 4px; }
.nav { display: none; gap: 4px; }
.nav a { text-decoration: none; font: 500 16px/1 var(--text); padding: 10px 14px; border-radius: 999px; }
.nav a:hover, .nav a[aria-current] { background: var(--paper-2); }
.drawer { position: relative; }
.drawer summary { list-style: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; cursor: pointer; }
.drawer summary::-webkit-details-marker { display: none; }
.drawer summary:hover { background: var(--paper-2); }
.drawer[open] .drawer__panel { display: grid; }
.drawer__panel { display: none; position: absolute; inset-inline-end: 0; top: 52px; width: min(300px, calc(100vw - 32px)); padding: 10px; gap: 2px; background: var(--paper); border-radius: 22px; box-shadow: var(--shadow); }
.drawer__panel a { text-decoration: none; font: 500 18px/1 var(--text); padding: 15px 14px; border-radius: 14px; }
.drawer__panel a:hover { background: var(--paper-2); }

/* Home hero and sign grid */
.hero { padding: 28px 0 8px; }
.hero h1 { margin: 0; font: 900 64px/.98 var(--display); letter-spacing: -.02em; }
.hero h1 em { font-style: normal; display: block; color: var(--accent); }
.hero p { margin: 14px 0 0; font-size: 20px; line-height: 1.6; color: var(--ink-2); max-width: 30ch; }
.section-title { font: 700 28px/1.2 var(--display); margin: 0 0 18px; }
.signs { padding: 30px 0 10px; }
.sign-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px 8px; }
.sign-grid a { display: grid; justify-items: center; text-align: center; text-decoration: none; padding: 6px 2px 8px; border-radius: 18px; }
.sign-grid a:hover { background: var(--paper-2); }
.disc { width: 68px; height: 68px; border-radius: 999px; display: grid; place-items: center; margin-bottom: 9px; }
.disc .icon { width: 34px; height: 34px; }
.sign-grid b { font: 700 21px/1.15 var(--display); }
.sign-grid small { font: 400 14px/1.4 var(--text); color: var(--ink-2); margin-top: 3px; }
.fire { background: var(--fire-t); color: var(--fire); }
.earth { background: var(--earth-t); color: var(--earth); }
.air { background: var(--air-t); color: var(--air); }
.water { background: var(--water-t); color: var(--water); }

/* Accent band: which sign am I */
.finder { margin: 34px 0 10px; background: var(--accent); color: var(--accent-ink); border-radius: 28px; padding: 26px 20px 24px; }
.finder h2 { margin: 0 0 16px; font: 900 34px/1.05 var(--display); }
.finder form { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; }
.field { display: grid; gap: 6px; font: 500 15px/1 var(--text); }
.field select { appearance: none; font: 500 18px/1 var(--text); color: var(--ink); background: var(--paper); border: 1px solid var(--paper-3); border-radius: 14px; height: 52px; padding-inline: 16px 36px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%231C2033' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6l6 -6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: left 12px center; }
.finder button { grid-column: 1 / -1; height: 54px; border: 0; border-radius: 999px; background: var(--paper); color: var(--ink); font: 600 18px/1 var(--text); cursor: pointer; }
.finder__out { grid-column: 1 / -1; margin: 6px 0 0; font: 500 19px/1.5 var(--text); }
.finder__out:empty { display: none; }
.finder__out a { color: var(--accent-ink); font-weight: 600; text-underline-offset: 4px; }

/* Stories */
.stories { padding-top: 40px; display: grid; gap: 22px; }
.feature { display: grid; gap: 14px; text-decoration: none; }
.card-art { background: var(--paper-3); border-radius: 22px; padding: 10px; box-shadow: var(--shadow); }
.card-art img { border-radius: 12px; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.feature h3 { margin: 4px 0 0; font: 900 32px/1.12 var(--display); letter-spacing: -.01em; }
.meta { font: 500 15px/1.4 var(--text); color: var(--ink-2); }
.rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.rows a { display: grid; grid-template-columns: 84px 1fr; gap: 14px; align-items: center; text-decoration: none; padding: 8px; border-radius: 18px; }
.rows a:hover { background: var(--paper-2); }
.rows img { width: 84px; height: 84px; object-fit: cover; border-radius: 14px; }
.rows b { display: block; font: 700 21px/1.25 var(--display); }

/* Chips */
.more-topics { padding: 36px 0 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 10px 16px; border-radius: 999px; background: var(--paper-2); text-decoration: none; font: 500 17px/1.2 var(--text); }
.chip:hover { background: var(--paper-3); }
.chip .icon { width: 20px; height: 20px; color: var(--accent); }

/* Footer */
.foot { margin-top: 56px; background: var(--paper-2); padding: 34px 0 30px; }
.foot__brand { font: 900 24px/1 var(--display); margin: 0 0 12px; }
.foot__note { margin: 0 0 18px; font-size: 15px; line-height: 1.7; color: var(--ink-2); max-width: 62ch; }
.foot__links { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 16px; }
.foot__links a { text-decoration: none; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; }
.foot__copy { margin: 18px 0 0; font-size: 14px; color: var(--ink-2); }

/* Sign page */
.crumbs { font: 500 15px/1 var(--text); color: var(--ink-2); padding-block: 4px 2px; display: flex; gap: 8px; align-items: center; }
.crumbs a { text-decoration: none; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; }
.crumbs .icon { width: 16px; height: 16px; }
.sign-head { padding: 22px 0 30px; background: var(--band); }
.sign-head .wrap { display: grid; gap: 22px; }
.sign-head .card-art { background: var(--paper); }
.sign-head h1 { margin: 0; font: 900 66px/.95 var(--display); letter-spacing: -.02em; color: var(--ink); }
.sign-head h1 span { display: block; font-size: .5em; letter-spacing: 0; margin-top: 10px; }
.dates { margin: 12px 0 0; font: 500 19px/1.4 var(--text); }
.facts { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.facts li { background: rgba(246, 244, 236, .72); border-radius: 16px; padding: 10px 12px; }
.facts small { display: block; font: 500 13px/1.3 var(--text); color: var(--ink-2); }
.facts b { font: 700 19px/1.3 var(--display); }
.tabs { position: sticky; top: 64px; z-index: 4; background: var(--paper); }
.tabs .wrap { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding-block: 10px; }
.tabs a { flex: none; display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; font: 500 17px/1 var(--text); padding-inline: 16px; border-radius: 999px; }
.tabs a[aria-current] { background: var(--ink); color: var(--paper); }
.tabs a:not([aria-current]):hover { background: var(--paper-2); }
.page { display: grid; gap: 40px; padding-top: 18px; }
.article { max-width: 620px; }
.article .stamp { font: 500 15px/1 var(--text); color: var(--ink-2); margin: 0 0 18px; }
.article .lead { font-size: 21px; line-height: 1.75; }
.article h2 { font: 900 32px/1.15 var(--display); margin: 44px 0 10px; letter-spacing: -.01em; scroll-margin-top: 140px; }
.article p { margin: 0 0 18px; }
.months { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 14px; }
.months li { display: grid; grid-template-columns: 92px 1fr; gap: 12px; }
.months b { font: 900 21px/1.4 var(--display); }
.months span { line-height: 1.7; }
.sign-strip { display: flex; gap: 14px; overflow-x: auto; scrollbar-width: none; padding: 6px 2px 14px; }
.sign-strip a { flex: none; display: grid; justify-items: center; gap: 6px; text-decoration: none; font: 500 15px/1 var(--text); width: 64px; }
.sign-strip .disc { width: 56px; height: 56px; margin: 0; }
.sign-strip .disc .icon { width: 28px; height: 28px; }
.match { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; background: var(--paper-2); border-radius: 22px; padding: 18px; text-decoration: none; margin-top: 30px; }
.match .pair { display: flex; }
.match .pair .disc { width: 52px; height: 52px; margin: 0; }
.match .pair .disc + .disc { margin-inline-start: -14px; box-shadow: 0 0 0 4px var(--paper-2); }
.match b { display: block; font: 700 22px/1.2 var(--display); }
.match span { font-size: 16px; color: var(--ink-2); }
.side { display: none; gap: 30px; align-content: start; }
.side h2 { font: 700 24px/1.2 var(--display); margin: 0 0 12px; }

/* Desktop */
@media (min-width: 900px) {
  .wrap { padding-inline: 32px; }
  .mast .wrap { min-height: 76px; }
  .nav { display: flex; }
  .drawer { display: none; }
  .hero { padding: 56px 0 10px; }
  .hero h1 { font-size: 92px; }
  .hero h1 em { display: inline; }
  .hero p { font-size: 21px; max-width: 54ch; }
  .sign-grid { grid-template-columns: repeat(6, 1fr); gap: 30px 12px; }
  .disc { width: 84px; height: 84px; }
  .disc .icon { width: 40px; height: 40px; }
  .finder { display: grid; grid-template-columns: 1fr 1.25fr; align-items: center; gap: 30px; padding: 34px 40px; }
  .finder h2 { margin: 0; font-size: 46px; }
  .finder form { grid-template-columns: 1fr 1.3fr auto; align-items: end; }
  .finder button { grid-column: auto; padding-inline: 30px; height: 52px; }
  .stories { grid-template-columns: 1.35fr 1fr; gap: 36px; align-items: start; padding-top: 56px; }
  .feature h3 { font-size: 40px; }
  .sign-head .wrap { grid-template-columns: 1fr 1.05fr; align-items: center; gap: 48px; }
  .sign-head h1 { font-size: 96px; }
  .tabs { top: 76px; }
  .page { grid-template-columns: minmax(0, 620px) 320px; justify-content: space-between; }
  .side { display: grid; }
  .only-phone { display: none; }
  .side .sign-grid { grid-template-columns: repeat(3, 1fr); gap: 14px 6px; }
  .side .disc { width: 56px; height: 56px; }
  .side .disc .icon { width: 28px; height: 28px; }
  .side .sign-grid b { font-size: 18px; }
}

/* Added in the port: what the real pages need beyond the two prototype screens */
.hero--small { padding-bottom: 20px; }
.hero--small h1 { font-size: 48px; }
.hero p a { color: var(--accent); text-underline-offset: 4px; }
.page-head { padding: 18px 0 26px; background: var(--paper-2); }
.page-head .wrap { display: grid; gap: 20px; }
.page-head .card-art { background: var(--paper); }
.page-head h1 { margin: 0; font: 900 40px/1.08 var(--display); letter-spacing: -.01em; }
.page--plain { grid-template-columns: minmax(0, 680px); }
.prose { overflow-wrap: break-word; }
.prose > p:first-child { font-size: 21px; line-height: 1.75; }
.prose h2 { font: 900 30px/1.15 var(--display); margin: 44px 0 10px; letter-spacing: -.01em; scroll-margin-top: 140px; }
.prose h3 { font: 700 23px/1.25 var(--display); margin: 30px 0 8px; scroll-margin-top: 140px; }
.prose p { margin: 0 0 18px; }
.prose ul, .prose ol { margin: 0 0 20px; padding-inline-start: 24px; }
.prose li { margin-bottom: 8px; }
.prose li::marker { color: var(--accent); }
.prose a { color: var(--accent); text-underline-offset: 4px; text-decoration-thickness: 1px; }
.prose strong { font-weight: 600; }
.prose blockquote { margin: 0 0 20px; padding: 16px 18px; background: var(--paper-2); border-radius: 18px; }
.prose blockquote p:last-child { margin: 0; }
.prose table { width: 100%; border-collapse: separate; border-spacing: 0 6px; font-size: 16px; line-height: 1.5; margin: 0 0 20px; }
.prose th { text-align: start; font: 600 15px/1.3 var(--text); color: var(--ink-2); padding: 4px 12px; }
.prose td { background: var(--paper-2); padding: 10px 12px; vertical-align: top; }
.prose td:first-child { border-start-start-radius: 12px; border-end-start-radius: 12px; }
.prose td:last-child { border-start-end-radius: 12px; border-end-end-radius: 12px; }
.prose .table-box { overflow-x: auto; margin: 0 0 20px; }
.prose hr { border: 0; height: 18px; }
.home-text { padding-top: 46px; }
.home-text .prose { max-width: 620px; }
.home-text .prose h2:first-child { margin-top: 0; }
.rows__blank { width: 84px; height: 84px; border-radius: 14px; background: var(--paper-3); }
.more-reads { padding-top: 46px; }
.only-phone { margin-top: 34px; }
.refs { margin-top: 30px; background: var(--paper-2); border-radius: 22px; padding: 18px 20px; }
.refs h2 { font: 700 22px/1.2 var(--display); margin: 0 0 8px; }
.refs ul { margin: 0; padding-inline-start: 20px; font-size: 16px; }
.refs a { color: var(--accent); }
/* The tools (love calculator, sign by birth date) are the same family as the "which sign am I" band */
.calc { margin: 0 0 30px; background: var(--accent); color: var(--accent-ink); border-radius: 28px; padding: 22px 20px; display: grid; gap: 14px; }
.calc__row { display: grid; gap: 14px; }
.calc label { display: grid; gap: 6px; font: 500 15px/1.3 var(--text); }
.calc__date { border: 0; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; min-width: 0; }
.calc__date legend { font: 600 17px/1.3 var(--text); padding: 0; margin-bottom: 8px; }
.calc select { appearance: none; font: 500 18px/1 var(--text); color: var(--ink); background: var(--paper); border: 1px solid var(--paper-3); border-radius: 14px; height: 52px; padding-inline: 16px 36px; width: 100%; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%231C2033' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6l6 -6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: left 12px center; }
.calc button { height: 54px; border: 0; border-radius: 999px; background: var(--paper); color: var(--ink); font: 600 18px/1 var(--text); cursor: pointer; transition: transform 180ms var(--ease); }
.calc button:active { transform: scale(.97); }
.calc__out { font: 500 18px/1.6 var(--text); }
.calc__out:empty { display: none; }
.calc__out p { margin: 0 0 8px; }
.calc__out a { color: var(--accent-ink); font-weight: 600; text-underline-offset: 4px; }
.calc__score { font: 900 56px/1 var(--display); }
.finder :focus-visible, .calc :focus-visible { outline-color: var(--paper); }
@media (min-width: 900px) {
  .page-head { padding: 28px 0 36px; }
  .page-head h1 { font-size: 56px; }
  .page-head--art .wrap { grid-template-columns: 1fr 1.05fr; align-items: center; gap: 48px; }
  .page-head--art .card-art { order: 2; }
  .calc { padding: 28px 32px; }
  .calc__row { grid-template-columns: 1fr 1fr; }
  .calc button { justify-self: start; padding-inline: 34px; }
  .hero--small h1 { font-size: 64px; }
}
