/* KALIYADI - optic.css. Besley (variable) + Urbanist (variable), self-hosted next to this file. */
@font-face { font-family: 'Besley'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(besley.woff2) format('woff2'); }
@font-face { font-family: 'Urbanist'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(urbanist.woff2) format('woff2'); }

:root {
  --parch: #f4eeea;
  --cardw: #ffffff;
  --brew: #2b1d15;
  --brew-soft: #5c4a3d;
  --flare: #dfa183;
  --flaredk: #b4714a;
  --flarelt: #f3ddd0;
  --roast: #33241c;
  --seamln: #e6dacf;
  --serif: 'Besley', Georgia, serif;
  --sans: 'Urbanist', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--parch);
  color: var(--brew);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; }
address { font-style: normal; }
a { color: var(--flaredk); }
h1, h2, h3 { font-family: var(--serif); line-height: 1.2; color: var(--brew); }
h1 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 700; }
h2 { font-size: clamp(1.35rem, 2.6vw, 1.9rem); font-weight: 700; }
h3 { font-size: 1.12rem; font-weight: 600; }
.frameline { max-width: 1180px; margin: 0 auto; padding: 0 clamp(.9rem, 3vw, 1.6rem); }

/* ---------- header: browbar / logo row / templebar ---------- */
.browbar { background: var(--roast); color: #e9ddd2; font-size: .8rem; letter-spacing: .04em; }
.browbar .frameline { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 2rem; }
.browbar a { color: var(--flare); text-decoration: none; margin-left: 1rem; }
.browbar a:hover { text-decoration: underline; }
.browbar-motto { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.visor { background: var(--cardw); border-bottom: 1px solid var(--seamln); position: relative; }
.visor-mid { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 4.6rem; }
.visor-home { justify-self: center; display: inline-flex; }
.visor-home img { height: 62px; width: auto; display: block; }
.visor-burger { justify-self: start; display: none; background: none; border: 1px solid var(--seamln); border-radius: 8px; padding: .45rem .6rem; cursor: pointer; }
.visor-burger span { display: block; width: 20px; height: 2px; background: var(--brew); margin: 4px 0; transition: transform .2s, opacity .2s; }
.nav-open .visor-burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-open .visor-burger span:nth-child(2) { opacity: 0; }
.nav-open .visor-burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.squintbox { justify-self: end; position: relative; }
.squintbox input {
  font: inherit; font-size: .88rem; color: var(--brew);
  background: var(--parch); border: 1px solid var(--seamln); border-radius: 999px;
  padding: .45rem 1rem; width: clamp(120px, 18vw, 220px);
}
.squintbox input:focus { outline: 2px solid var(--flare); }
.squintbox-out {
  position: absolute; right: 0; top: calc(100% + .4rem); z-index: 40;
  background: var(--cardw); border: 1px solid var(--seamln); border-radius: 12px;
  box-shadow: 0 12px 30px rgba(43, 29, 21, .14);
  width: min(340px, 86vw); padding: .4rem; display: flex; flex-direction: column;
}
.squintbox-out a { display: block; padding: .45rem .6rem; border-radius: 8px; color: var(--brew); text-decoration: none; font-size: .85rem; }
.squintbox-out a:hover { background: var(--flarelt); }
.squintbox-none { margin: .3rem .6rem; font-size: .85rem; color: var(--brew-soft); }

.templebar { background: var(--flare); }
.temple-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: .2rem; }
.temple-nav a {
  color: var(--brew); text-decoration: none; font-weight: 600; font-size: .92rem;
  padding: .55rem .95rem; letter-spacing: .02em;
}
.temple-nav a:hover, .temple-nav a[aria-current] { background: var(--flaredk); color: #fff; }

/* ---------- hero ---------- */
.sunrise { background: linear-gradient(128deg, var(--roast) 0%, #4a2f1f 55%, #74472c 100%); color: #f4ece4; padding: clamp(1.6rem, 4vw, 3rem) 0; }
.sunrise .frameline { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(1.2rem, 3vw, 2.6rem); align-items: center; }
.sunrise h1 { color: #fff; margin: 0 0 .7rem; }
.sunrise-lead { max-width: 54ch; color: #e7d8cb; margin: 0 0 1.2rem; }
.sunrise-cta { display: flex; gap: .8rem; flex-wrap: wrap; }
.sunrise-cta a { text-decoration: none; font-weight: 700; border-radius: 999px; padding: .65rem 1.3rem; font-size: .95rem; }
.sunrise-cta a:first-child { background: var(--flare); color: var(--brew); }
.sunrise-cta a:first-child:hover { background: var(--flarelt); }
.sunrise-cta a:last-child { border: 1.5px solid var(--flare); color: var(--flare); }
.sunrise-cta a:last-child:hover { background: rgba(223, 161, 131, .14); }

.heliorail { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .7rem; }
.heliorail a { background: rgba(255, 255, 255, .07); border: 1px solid rgba(223, 161, 131, .35); border-radius: 12px; padding: .55rem; text-decoration: none; color: #f4ece4; font-size: .74rem; line-height: 1.35; display: flex; flex-direction: column; gap: .4rem; }
.heliorail a:hover { background: rgba(255, 255, 255, .13); }
.heliorail img { border-radius: 8px; background: #fff; aspect-ratio: 1; object-fit: contain; width: 100%; }
.heliorail b { font-weight: 600; display: block; }

/* ---------- usp band ---------- */
.rayband { background: var(--cardw); border-bottom: 1px solid var(--seamln); }
.rayband .frameline { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; padding-top: 1rem; padding-bottom: 1rem; }
.raycard { font-size: .85rem; color: var(--brew-soft); }
.raycard b { display: block; color: var(--brew); font-size: .95rem; margin-bottom: .15rem; }

/* ---------- product grid ---------- */
.shadegrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 1.1rem; margin: 1.4rem 0 2rem; padding: 0; list-style: none; }
.shadecard { background: var(--cardw); border: 1px solid var(--seamln); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; position: relative; transition: box-shadow .15s; }
.shadecard:hover { box-shadow: 0 10px 26px rgba(43, 29, 21, .12); }
.shadecard-shot { position: relative; aspect-ratio: 1; min-height: 0; background: #fff; }
.shadecard-shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 10px; }
.glintpill { position: absolute; top: .6rem; left: .6rem; z-index: 2; background: var(--roast); color: var(--flare); font-size: .72rem; font-weight: 700; border-radius: 999px; padding: .18rem .55rem; }
.shadecard-meta { padding: .8rem .9rem 1rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.shadecard-meta h3 { margin: 0; font-size: .95rem; font-family: var(--sans); font-weight: 600; line-height: 1.35; }
.shadecard-meta h3 a { color: var(--brew); text-decoration: none; }
.shadecard-meta h3 a::after { content: ''; position: absolute; inset: 0; }
.shadecard-buy { position: relative; z-index: 2; margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
.shadecard-cost { font-weight: 700; font-size: 1.02rem; }
.shadecard-note { font-size: .78rem; color: var(--brew-soft); }

.getpair { font: inherit; font-weight: 700; font-size: .88rem; cursor: pointer; border: 0; border-radius: 999px; background: var(--brew); color: var(--flare); padding: .55rem 1.15rem; display: inline-flex; align-items: center; gap: .45rem; }
.getpair:hover { background: var(--flaredk); color: #fff; }
.getpair svg { width: 17px; height: 17px; flex: none; }
.getpair-slim { padding: .42rem .85rem; font-size: .8rem; }
.getpair-wide { width: 100%; justify-content: center; padding: .8rem 1.2rem; font-size: 1rem; }

/* ---------- category tiles ---------- */
.rangetiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; margin: 1.4rem 0 2rem; }
.rangetile { background: var(--cardw); border: 1px solid var(--seamln); border-radius: 14px; padding: 1.1rem 1.2rem; text-decoration: none; color: var(--brew); display: flex; flex-direction: column; gap: .4rem; }
.rangetile:hover { border-color: var(--flare); box-shadow: 0 8px 22px rgba(43, 29, 21, .1); }
.rangetile b { font-family: var(--serif); font-size: 1.18rem; }
.rangetile span { font-size: .85rem; color: var(--brew-soft); }
.rangetile em { font-style: normal; color: var(--flaredk); font-weight: 700; font-size: .82rem; }

/* ---------- pills ---------- */
.lenschip-row { display: flex; flex-wrap: wrap; gap: .55rem; margin: 1rem 0 1.6rem; }
.lenschip { background: var(--cardw); border: 1px solid var(--seamln); border-radius: 999px; padding: .4rem 1rem; font-size: .86rem; color: var(--brew); text-decoration: none; font-weight: 600; }
.lenschip:hover { border-color: var(--flaredk); color: var(--flaredk); }

/* ---------- tables ---------- */
.sightscroll { overflow-x: auto; }
.sighttable { border-collapse: collapse; width: 100%; background: var(--cardw); border: 1px solid var(--seamln); border-radius: 12px; overflow: hidden; font-size: .9rem; }
.sighttable th, .sighttable td { text-align: left; padding: .6rem .8rem; border-bottom: 1px solid var(--seamln); }
.sighttable th { background: var(--flarelt); font-family: var(--serif); font-size: .88rem; }
.sighttable tr:last-child td { border-bottom: 0; }
@media (max-width: 620px) {
  .sightscroll { box-shadow: inset -14px 0 12px -14px rgba(43, 29, 21, .35); }
  .sighttable th, .sighttable td { white-space: nowrap; padding: .45rem .6rem; font-size: .8rem; }
}

/* ---------- stats ---------- */
.raycount { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin: 1.6rem 0; }
.raycount-cell { background: var(--cardw); border: 1px solid var(--seamln); border-radius: 12px; padding: 1rem; text-align: center; }
.raycount-cell b { display: block; font-family: var(--serif); font-size: 1.5rem; color: var(--flaredk); }
.raycount-cell span { font-size: .8rem; color: var(--brew-soft); }

/* ---------- pair finder ---------- */
.sunpick { background: var(--cardw); border: 1px solid var(--seamln); border-radius: 14px; padding: clamp(1rem, 2.5vw, 1.8rem); margin: 1rem 0 2.2rem; }
.sunpick-lead { margin: 0 0 .8rem; color: var(--brew-soft); max-width: 70ch; }
.sunpick-q { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; padding: .6rem 0; border-top: 1px dashed var(--seamln); }
.sunpick-q > b { font-family: var(--serif); font-size: .95rem; min-width: 13rem; }
.sunpick-opts { display: flex; flex-wrap: wrap; gap: .45rem; }
.sunpick-opt { font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; border: 1px solid var(--seamln); background: var(--parch); color: var(--brew); border-radius: 999px; padding: .32rem .85rem; }
.sunpick-opt:hover { border-color: var(--flaredk); }
.sunpick-opt[aria-pressed="true"] { background: var(--brew); border-color: var(--brew); color: var(--flare); }
.sunpick-tally { margin: 1rem 0 .6rem; font-weight: 700; }
.sunpick-out { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8rem; }
.sunpick-hit { display: block; background: var(--parch); border: 1px solid var(--seamln); border-radius: 10px; padding: .6rem .6rem .8rem; text-decoration: none; color: var(--brew); text-align: center; }
.sunpick-hit:hover { border-color: var(--flare); box-shadow: 0 8px 22px rgba(43, 29, 21, .1); }
.sunpick-hit img { display: block; margin: 0 auto .4rem; background: #fff; border-radius: 8px; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; }
.sunpick-hit b { display: block; font-size: .85rem; line-height: 1.35; margin-bottom: .25rem; }
.sunpick-hit span { color: var(--flaredk); font-weight: 700; font-size: .9rem; }
.sunpick-none { margin: 0; color: var(--brew-soft); }

/* ---------- reviews ---------- */
.hearsay { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; margin: 1.4rem 0 2rem; }
.hearsay-card { background: var(--cardw); border: 1px solid var(--seamln); border-radius: 14px; padding: 1.1rem 1.2rem; font-size: .9rem; }
.hearsay-card blockquote { margin: 0 0 .7rem; color: var(--brew); }
.hearsay-card figcaption { color: var(--brew-soft); font-size: .8rem; }
.hearsay-card figcaption b { color: var(--brew); }
.hearsay-stars { color: var(--flaredk); letter-spacing: .12em; font-size: .8rem; margin-bottom: .45rem; }

/* ---------- faq ---------- */
.quizfold { max-width: 780px; margin: 1.2rem 0 2rem; }
.quizfold details { background: var(--cardw); border: 1px solid var(--seamln); border-radius: 12px; margin-bottom: .6rem; padding: 0 1.1rem; }
.quizfold summary { cursor: pointer; font-weight: 700; padding: .85rem 0; list-style: none; position: relative; padding-right: 1.6rem; }
.quizfold summary::after { content: '+'; position: absolute; right: .2rem; top: .7rem; font-size: 1.2rem; color: var(--flaredk); }
.quizfold details[open] summary::after { content: '\2212'; }
.quizfold details > p { margin: 0 0 1rem; color: var(--brew-soft); }

/* ---------- essay / long text ---------- */
.longview { max-width: 74ch; color: var(--brew-soft); }
.longview h2, .longview h3 { color: var(--brew); }

/* ---------- section titles ---------- */
.crownline { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin: 2.2rem 0 .3rem; }
.crownline h2 { margin: 0; }
.crownline a { font-size: .88rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.crownline a:hover { text-decoration: underline; }
.crownline + p { margin-top: .3rem; color: var(--brew-soft); max-width: 74ch; }

/* ---------- PDP ---------- */
.trailline { font-size: .8rem; color: var(--brew-soft); margin: 1rem 0; }
.trailline a { color: var(--brew-soft); text-decoration: none; }
.trailline a:hover { color: var(--flaredk); }
.pairpage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.2rem, 3vw, 2.4rem); margin-bottom: 2rem; }
.pairshot { background: var(--cardw); border: 1px solid var(--seamln); border-radius: 16px; padding: 1.2rem; align-self: start; }
.pairshot img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.pairhead h1 { margin: .2rem 0 .6rem; font-size: clamp(1.35rem, 2.6vw, 1.85rem); }
.pairhead .glintline { color: var(--flaredk); font-weight: 700; font-size: .9rem; margin-bottom: .8rem; }
.facetrow { display: flex; flex-wrap: wrap; gap: .4rem; margin: .5rem 0 .8rem; }
.facetbit { background: var(--flarelt); color: var(--roast); border-radius: 999px; padding: .18rem .7rem; font-size: .8rem; font-weight: 700; letter-spacing: .02em; }
.priceledge { background: var(--cardw); border: 1px solid var(--seamln); border-radius: 14px; padding: 1rem 1.2rem; margin: 1rem 0 1.4rem; }
.priceledge-sum { font-family: var(--serif); font-size: 1.7rem; font-weight: 700; margin-bottom: .6rem; }
.priceledge-per { display: block; font-family: var(--sans); font-size: .85rem; font-weight: 600; color: var(--brew-soft); margin-top: .15rem; }
.priceledge-stock { font-size: .85rem; color: var(--brew-soft); margin: 0 0 .6rem; }
.priceledge-note { font-size: .78rem; color: var(--brew-soft); margin-top: .6rem; min-height: 1em; }
.pairfacts { margin: 1.4rem 0; }
.pairfacts h2 { font-size: 1.2rem; }
.pairintro { color: var(--brew-soft); }
.pairfeats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 1.2rem 0 2rem; padding: 0; list-style: none; }
.pairfeats li { background: var(--cardw); border: 1px solid var(--seamln); border-radius: 12px; padding: 1rem 1.1rem; font-size: .9rem; color: var(--brew-soft); }
.pairfeats b { display: block; color: var(--brew); margin-bottom: .3rem; }
.pairsay { margin: 1.2rem 0 2rem; }
.glassrow { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(1rem, 3vw, 2.4rem); margin: 2rem 0; align-items: start; }
.glassrow h2 { font-size: 1.2rem; }
.glassrow h2:first-child { margin-top: 0; }
.boxline { list-style: none; margin: 0 0 1.6rem; padding: 0; }
.boxline li { padding: .45rem 0 .45rem 1.6rem; border-bottom: 1px dashed var(--seamln); position: relative; color: var(--brew-soft); font-size: .92rem; }
.boxline li::before { content: '\2713'; position: absolute; left: .1rem; color: var(--flaredk); font-weight: 700; }
ol.boxline { counter-reset: step; }
ol.boxline li::before { counter-increment: step; content: counter(step); }

/* ---------- guides ---------- */
.notegrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; margin: 1.4rem 0 2rem; }
.notegrid a { background: var(--cardw); border: 1px solid var(--seamln); border-radius: 14px; padding: 1.1rem 1.2rem; text-decoration: none; color: var(--brew); }
.notegrid a:hover { border-color: var(--flare); }
.notegrid b { font-family: var(--serif); font-size: 1.08rem; display: block; margin-bottom: .35rem; }
.notegrid span { font-size: .85rem; color: var(--brew-soft); }
.notegrid em { font-style: normal; color: var(--flaredk); font-weight: 700; font-size: .82rem; display: block; margin-top: .5rem; }
.notepage { max-width: 74ch; }
.notepage h2 { margin-top: 1.8rem; }
.notepage p, .notepage li { color: var(--brew-soft); }

/* ---------- footer ---------- */
.dusk { background: var(--roast); color: #cbb9ab; margin-top: 3rem; font-size: .88rem; }
.dusk a { color: var(--flare); text-decoration: none; }
.dusk a:hover { text-decoration: underline; }
.dusk-cols { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 1.6rem; padding: 2.2rem 0 1.6rem; }
.dusk-cols h3 { color: #f4ece4; font-size: .95rem; margin: 0 0 .7rem; }
.dusk-cols ul { list-style: none; margin: 0; padding: 0; }
.dusk-cols li { margin-bottom: .45rem; }
.dusk-brand img { height: 56px; width: auto; margin-bottom: .7rem; }
.dusk-cheat { border-top: 1px solid rgba(223, 161, 131, .25); padding: 1.2rem 0; }
.dusk-cheat h3 { color: #f4ece4; font-size: .9rem; margin: 0 0 .5rem; }
.dusk-cheat p { margin: .2rem 0; font-size: .8rem; }
.dusk-note { border-top: 1px solid rgba(223, 161, 131, .25); padding: 1rem 0 1.4rem; font-size: .78rem; color: #a08d7e; }
.dusk-note p { margin: .3rem 0; }

/* ---------- misc ---------- */
.stocktick { font-size: .85rem; color: var(--brew-soft); margin: -.4rem 0 1rem; }
.backline { margin: 2rem 0; }
[hidden] { display: none !important; }

/* ---------- mobile ---------- */
@media (max-width: 900px) {
  .sunrise .frameline { grid-template-columns: 1fr; }
  .heliorail { grid-template-columns: repeat(4, minmax(130px, 1fr)); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .4rem; }
  .heliorail a { scroll-snap-align: start; }
  .rayband .frameline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rangetiles, .hearsay, .notegrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pairpage { grid-template-columns: 1fr; }
  .glassrow { grid-template-columns: 1fr; }
  .sunpick-q > b { min-width: 100%; }
  .dusk-cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .visor-burger { display: block; }
  .templebar { display: none; }
  .nav-open .templebar { display: block; }
  .temple-nav { flex-direction: column; }
  .temple-nav a { padding: .7rem 1rem; }
  .browbar-links { display: none; }
  .raycount { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sunpick-out { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rangetiles, .hearsay, .notegrid, .pairfeats { grid-template-columns: 1fr; }
  .shadegrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
  .shadecard-meta { padding: .6rem .7rem .8rem; }
  .shadecard-buy { flex-direction: column; align-items: stretch; }
  .getpair { justify-content: center; }
  .dusk-cols { grid-template-columns: 1fr; }
  .visor-home img { height: 50px; }
}
