/* /studies/glyphs/: the glyph study (Grant, 2026-12-03). Sign fonts are Noto subsets in /fonts/glyph-study/. */
@font-face { font-family: "GsSigns"; src: url("../fonts/glyph-study/NotoSansSymbols-Regular.sub.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "GsSigns2"; src: url("../fonts/glyph-study/NotoSansSymbols2-Regular.sub.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "GsMath"; src: url("../fonts/glyph-study/NotoSansMath-Regular.sub.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "GsEgypt"; src: url("../fonts/glyph-study/NotoSansEgyptianHieroglyphs-Regular.sub.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "GsRunic"; src: url("../fonts/glyph-study/NotoSansRunic-Regular.sub.woff2") format("woff2"); font-display: swap; }

.glyph-study {
  --muted: #556156; --rule: #cbcec0; --surface: #fffef8; --tint: #e1eadb; --accent: #a75639;
  --night: #0d1714; --night2: #14231e; --star: #e9e4d2; --sky-muted: #a9b9af; --line: #6c857a;
  --alchemy: #f0c56a; --sky: #9cc9f0; --ancient: #f0a58c; --runes: #a8d8a0; --stars: #f4f1e6; --math: #c5b5f0; --shapes: #b7c0bb;
  --sign: "GsSigns", "GsSigns2", "GsMath", "GsEgypt", "GsRunic", "Segoe UI Symbol", "Segoe UI Historic", "Cambria Math", "Apple Symbols", sans-serif;
  font-size: 19px;
  line-height: 1.6;
}
.glyph-study .gs-wrap { max-width: 46rem; margin: 0 auto; padding: 0 16px; }
.glyph-study .gs-top { padding: 20px 0 8px; }
.glyph-study .gs-kicker { color: var(--muted); font-size: .875rem; letter-spacing: .04em; text-transform: uppercase; margin: 0; }
.glyph-study h1 { font-size: clamp(1.9rem,5vw,2.7rem); line-height: 1.15; margin: .2em 0 .3em; letter-spacing: -.035em; }
.glyph-study .gs-lede { font-size: 1.15rem; margin: 0 0 1em; }
.glyph-study .gs-wrap h2 { font-size: 1.45rem; line-height: 1.25; margin: 2.2em 0 .5em; padding-top: 1em; border-top: 1px solid var(--rule); }
.glyph-study h3 { font-size: 1.1rem; margin: 1.4em 0 .3em; line-height: 1.3; }
.glyph-study p { margin: .6em 0; }
.glyph-study ul { padding-left: 1.2em; }
.glyph-study li { margin: .4em 0; }
.glyph-study .gs-wrap a { color: var(--accent); }
.glyph-study .stamp { display: inline-block; font-size: .875rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; border-radius: 4px; padding: 2px 7px; margin-right: 6px; vertical-align: 2px; line-height: 1.4; }
.glyph-study .s-est { background: #d7e8d2; color: #1f4a2c; }
.glyph-study .s-like { background: #f1e2bd; color: #5a4410; }
.glyph-study .s-unk { background: #e7e1ee; color: #40325a; }
.glyph-study .finding { background: var(--surface); border: 1px solid var(--rule); border-radius: 10px; padding: 14px 18px; margin: 14px 0; }
.glyph-study .finding h3 { margin: .1em 0 .3em; }
.glyph-study .quote { border-left: 4px solid var(--accent); padding: .2em 0 .2em 1em; margin: 1em 0; font-style: italic; }
.glyph-study .who { display: block; font-style: normal; color: var(--muted); font-size: .88rem; margin-top: .3em; }
.glyph-study .check { background: var(--tint); border-radius: 8px; padding: 10px 14px; margin: .6em 0 1.2em; font-size: .95rem; }
.glyph-study .sign-inline { font-family: var(--sign); font-size: 1.15em; font-variant-emoji: text; }
.glyph-study .gs-note { color: var(--muted); font-size: .9rem; }
.glyph-study .gs-credit { margin: 3em 0 1em; color: var(--muted); font-size: .9rem; }

/* the sky */
.glyph-study .sky-band { background: radial-gradient(ellipse at 50% 0%, #1d3029 0%, var(--night) 70%); color: var(--star); margin: 18px 0 0; padding: 18px 0 22px; border-radius: 12px; }
.glyph-study .sky-head { max-width: 72rem; margin: 0 auto; padding: 0 16px; display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; }
.glyph-study .sky-head h2 { border: 0; margin: 0; padding: 0; font-size: 1.15rem; color: var(--star); }
.glyph-study .controls { display: flex; flex-wrap: wrap; gap: 8px; }
.glyph-study button { font: inherit; touch-action: manipulation; cursor: pointer; }
.glyph-study .controls button { font-size: .88rem; min-height: 44px; padding: 6px 14px; border-radius: 22px; border: 1px solid var(--line); background: var(--night2); color: var(--star); }
.glyph-study .controls button[aria-pressed="true"] { background: var(--star); color: var(--night); border-color: var(--star); }
.glyph-study .chips { max-width: 72rem; margin: 10px auto 0; padding: 0 16px; display: flex; flex-wrap: wrap; gap: 6px; }
.glyph-study .chips button { font-size: .875rem; min-height: 44px; padding: 4px 12px; border-radius: 22px; border: 1px solid var(--line); background: transparent; color: var(--sky-muted); }
.glyph-study .chips .dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: 0; }
.glyph-study .chips button[aria-pressed="true"] { color: var(--star); border-color: var(--star); }
.glyph-study :is(.controls button, .chips button, .sign, .card a, .gs-skip):focus-visible { outline: 3px solid var(--alchemy); outline-offset: 2px; }
.glyph-study .gs-skip { position: absolute; left: -9999px; }
.glyph-study .gs-skip:focus { position: static; display: inline-block; margin: 10px 16px 0; color: var(--alchemy); }
.glyph-study .sky-scroll { max-width: 72rem; margin: 12px auto 0; }
.glyph-study .sky-inner { position: relative; padding: 0 16px; }
.glyph-study .sky {
  position: relative; height: min(76vh,700px); height: min(76svh,700px); min-height: 440px; overflow: hidden; border-radius: 12px;
  background-image: radial-gradient(1px 1px at 10% 20%,#ffffff55 50%,transparent 51%), radial-gradient(1px 1px at 70% 80%,#ffffff44 50%,transparent 51%), radial-gradient(1px 1px at 40% 60%,#ffffff33 50%,transparent 51%);
  background-size: 180px 180px, 240px 240px, 310px 310px;
}
.glyph-study .sign {
  position: absolute; transform: translate(-50%,-50%); font-family: var(--sign); font-variant-emoji: text; line-height: 1;
  min-width: 36px; min-height: 36px; background: none; border: 0; padding: 6px; color: var(--c);
  text-shadow: 0 0 10px var(--c); transition: opacity .6s, transform .6s;
}
.glyph-study .sign:focus-visible { z-index: 4; }
.glyph-study .sky.unplaced .sign { visibility: hidden; }
.glyph-study .sign.hide { opacity: 0 !important; animation: none !important; pointer-events: none; transform: translate(-50%,-50%) scale(.4); }
.glyph-study .sign.dim { opacity: .1 !important; animation: none !important; text-shadow: none; }
.glyph-study .sign.sel { transform: translate(-50%,-50%) scale(1.35); z-index: 3; }
@media (prefers-reduced-motion: no-preference) {
  .glyph-study .sign.tw { animation: gs-tw var(--d) ease-in-out infinite alternate; }
  .glyph-study .sky.still .sign { animation-play-state: paused; }
  @keyframes gs-tw { from { opacity: 1; } to { opacity: .62; } }
}
@media (prefers-reduced-motion: reduce) {
  .glyph-study .sign { transition: none; }
  .glyph-study .sign.hide, .glyph-study .sign.sel { transform: translate(-50%,-50%); }
}
.glyph-study .axis { position: relative; height: 1.5em; margin-top: 6px; color: var(--sky-muted); font-size: .875rem; overflow: hidden; }
.glyph-study .axis span { position: absolute; top: 0; white-space: nowrap; }
.glyph-study .axis .a1 { left: 1%; }
.glyph-study .axis .a2 { left: 14%; }
.glyph-study .axis .a3 { left: 58.2%; }
.glyph-study .axis .a4 { right: 1%; }
.glyph-study .now { max-width: 72rem; margin: 8px auto 0; padding: 0 16px; color: var(--sky-muted); font-size: .92rem; min-height: 1.6em; }
.glyph-study .tap { margin: 2px 0 0; color: var(--alchemy); font-size: .95rem; }
/* a sign's description opens over the sky (computers) or slides up from the bottom (phones) */
.glyph-study .card {
  position: absolute; top: 12px; right: 28px; width: min(420px, 46%); z-index: 6; overflow: auto; overscroll-behavior: contain;
  background: var(--night2); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 14px 40px #000b; color: var(--star);
}
.glyph-study .card.left { right: auto; left: 28px; }
.glyph-study .card[hidden] { display: none; }
.glyph-study .card:focus { outline: none; }
.glyph-study .card-bar { position: sticky; top: 0; display: flex; justify-content: flex-end; padding: 8px 8px 0; background: var(--night2); }
.glyph-study .gs-close { min-height: 44px; padding: 6px 16px; border-radius: 22px; border: 1px solid var(--line); background: transparent; color: var(--star); font-size: .875rem; }
.glyph-study .gs-close:focus-visible { outline: 3px solid var(--alchemy); outline-offset: 2px; }
.glyph-study .card-in { padding: 0 18px 16px; display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; }
.glyph-study .tall .card { position: fixed; left: 0; right: 0; bottom: 0; top: auto; width: auto; max-height: 58vh; border-radius: 16px 16px 0 0; border-bottom: 0; }
.glyph-study #gs-after:focus { outline: none; }
.glyph-study .card .big { font-family: var(--sign); font-variant-emoji: text; font-size: 64px; line-height: 1; grid-row: span 6; color: var(--c); text-shadow: 0 0 18px var(--c); }
.glyph-study .card .nm { font-weight: 600; font-size: 1.05rem; margin: 0; color: var(--star); }
.glyph-study .card .meta { color: var(--sky-muted); font-size: .88rem; }
.glyph-study .card h4 { margin: .5em 0 .1em; font-size: .875rem; letter-spacing: .05em; text-transform: uppercase; color: var(--sky-muted); }
.glyph-study .card ul { margin: .2em 0; padding-left: 1.1em; font-family: var(--type, "IBM Plex Sans"), var(--sign); }
.glyph-study .card a { color: var(--alchemy); }
.glyph-study .tag { display: inline-block; border-radius: 4px; padding: 1px 7px; font-size: .875rem; font-weight: 600; margin-left: 6px; vertical-align: 2px; }
.glyph-study .t-tradition { background: #3c5a2f; color: #e3f3d7; }
.glyph-study .t-some { background: #5a4a1f; color: #f6e7bb; }
.glyph-study .t-none { background: #3d3550; color: #e8e0f6; }
@media (max-width: 600px) {
  .glyph-study { font-size: 17px; }
  .glyph-study .sky-band { border-radius: 0; margin-inline: -16px; }
  .glyph-study .sky { height: 62vh; min-height: 380px; }
  .glyph-study .card-in { grid-template-columns: 1fr; }
  .glyph-study .card .big { grid-row: auto; font-size: 52px; }
}

/* /studies/: the list of studies */
.studies-list .study-cards { list-style: none; padding: 0; margin: 1em 0 2em; }
.studies-list .study-card {
  position: relative; display: grid; grid-template-columns: minmax(0,1fr); gap: 12px;
  padding: 22px 64px 20px 24px; border-radius: 11px; background: #1d3027; color: #f4f1e6; text-decoration: none;
}
.studies-list .study-words { display: grid; gap: 4px; }
.studies-list .study-title { font-size: clamp(1.4rem,3vw,1.9rem); font-weight: 600; letter-spacing: -.03em; line-height: 1.2; color: #fffdf5; }
.studies-list .study-text { color: #d9dccf; }
.studies-list .study-date { color: #e9c77b; font-size: .875rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.studies-list .studysigns { width: 100%; height: auto; max-height: 150px; fill: #f3dfa6; }
.studies-list .circle {
  position: absolute; top: 18px; right: 18px; display: grid; place-items: center; width: 31px; height: 31px;
  border: 1px solid #f4f1e688; border-radius: 50%; color: #f4f1e6;
}
.studies-list .study-card:hover .study-title { text-decoration: underline; text-underline-offset: 4px; }
.studies-list .study-card:focus-visible { outline: 3px solid #e9c77b; outline-offset: 3px; }

/* phones: the sky stands upright, time runs top to bottom (no sideways scrolling) */
.glyph-study .dir-tall { display: none; }
.glyph-study .tall .sky { height: 1800px; min-height: 0; }
@media (max-width: 380px) { .glyph-study .tall .sky { height: 1950px; } }
.glyph-study .tall .axis { position: absolute; inset: 0 16px; height: auto; margin: 0; pointer-events: none; }
.glyph-study .tall .axis span { left: 8px; right: auto; }
.glyph-study .tall .axis .a1 { top: 1%; }
.glyph-study .tall .axis .a2 { top: 13%; }
.glyph-study .tall .axis .a3 { top: 59.8%; }
.glyph-study .tall .axis .a4 { top: auto; bottom: 1%; }
.glyph-study .tall .axis span::before { display: none; }
.glyph-study.is-tall .dir-wide { display: none; }
.glyph-study.is-tall .dir-tall { display: inline; }
