/* YAYC site. Values match the old Jekyll site (SinglePaged look). */

/* Raleway, OFL 1.1 (/licenses/Raleway-OFL.txt). One variable font per subset. */
@font-face { font-family: 'Raleway'; font-style: normal; font-weight: 400 700;
  src: url(/fonts/1Ptug8zYS_SKggPNyCAIT5lu.36920a27f3.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: 'Raleway'; font-style: normal; font-weight: 400 700;
  src: url(/fonts/1Ptug8zYS_SKggPNyCkIT5lu.ac99ad1c43.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Raleway'; font-style: normal; font-weight: 400 700;
  src: url(/fonts/1Ptug8zYS_SKggPNyCIIT5lu.49d1df3871.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: 'Raleway'; font-style: normal; font-weight: 400 700;
  src: url(/fonts/1Ptug8zYS_SKggPNyCMIT5lu.2d603982ca.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Raleway'; font-style: normal; font-weight: 400 700;
  src: url(/fonts/1Ptug8zYS_SKggPNyC0ITw.b1bef1f03a.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --nav-bg: #111;
  --accent: #cc3333;
  --text-light: #e8e8e8;
  --muted: #777;
  --noise: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAF0lEQVQIHWP8//+/MQMaYELjg7kUCgIASm8DOqGzfp8AAAAASUVORK5CYII=);
  /* FA 4.7 em box: 1792 units; circle glyph: 1536 units wide. */
  --icon-size: 130px;
  --icon-shift: -8px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: #fff;
  color: #444;
  font: 14px/21px "Raleway", "HelveticaNeue-Light", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

h1, h2, h3, h4, h5, h6 { font-weight: 300; }
h1 { font-size: 46px; line-height: 50px; margin-block-end: 14px; }
h2 { font-size: 35px; line-height: 40px; margin-block-end: 10px; }
h3 { font-size: 28px; line-height: 34px; margin-block-end: 8px; }
h4 { font-size: 21px; line-height: 30px; margin-block-end: 4px; }
h5 { font-size: 17px; line-height: 24px; }

p { margin-block-end: 20px; }
strong { font-weight: bold; }
em { font-style: italic; }
a { text-decoration: underline; }

ul, ol { margin-block-end: 20px; }
ul { list-style: square outside; }
ol { list-style: decimal outside; }
li { line-height: 18px; margin-block-end: 12px; }

blockquote, blockquote p { font-size: 17px; line-height: 24px; color: var(--muted); font-style: italic; }
blockquote {
  margin-block-end: 20px;
  padding-block: 9px 0;
  padding-inline: 19px 20px;
  border-inline-start: 1px solid #ddd;
}

img { max-width: 100%; height: auto; vertical-align: middle; }

.text-accent { color: var(--accent); }
.text-white, .text-white a { color: var(--text-light); }


/* ----- language bar ----- */

.langbar {
  position: fixed;
  top: 70px;
  right: 10px;
  z-index: 101;
  max-width: 95vw;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(17, 17, 17, 0.85);
  line-height: 26px;
  text-align: center;
}
.langbar a {
  padding: 0 6px;
  color: #aaa;
  font-size: 13px;
  text-decoration: none;
  white-space: nowrap;
}
.langbar a:hover { color: #fff; }
.langbar a.active { color: var(--accent); font-weight: bold; }


/* ----- top menu ----- */

nav {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 100;
  background: var(--nav-bg);
  font-size: 15px;
}
nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0;
  list-style: none;
}
nav li {
  min-width: 110px;
  margin: 0;
  padding: 3px;
  border-top: 3px solid var(--bg);
  line-height: 60px;
  text-align: center;
  text-transform: uppercase;
}
nav li:hover, nav li.active {
  padding-top: 0;
  border-top: 6px solid var(--accent);
}
nav a {
  display: block;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  opacity: 0.6;
  transition: opacity 0.2s;
}
nav a:hover { opacity: 1; }


/* ----- sections ----- */

/* --bg and --fg come from content/site.yml, set inline per section. */
.section {
  position: relative;
  display: block;
  width: 100%;
  min-height: 300px;
  padding: 180px 0;
  background-color: var(--bg);
  color: var(--fg);
  scroll-margin-top: 170px;
}
.section a { color: var(--fg); }

.container {
  position: relative;
  width: 960px;
  margin: 0 auto;
  overflow-wrap: break-word;
}
.center { text-align: center; }

.container h1, .container h2, .container h3, .container h4 {
  margin-block-end: 20px;
  padding: 0 4%;
  font-weight: 600;
  text-align: center;
}
.container p, .container ul, .container ol { font-size: 17px; padding: 0 5%; }
.container ul, .container ol { padding: 0 8%; }
.container p:first-of-type { margin-block-start: 40px; }

#footer {
  min-height: 0;
  padding: 16px 0;
  background: var(--nav-bg);
  color: var(--text-light);
  text-align: center;
}
#footer .container p { margin: 0; font-size: 14px; }
#footer a { color: var(--accent); }


/* ----- round section icons ----- */

.subtlecircle {
  z-index: 3;
  border-radius: 50%;
  background: var(--noise);
  box-shadow: 0 1px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
}

/* Hero logo: a 320px dark disc around the app icon. */
.logo {
  position: relative;
  display: inline-block;
  width: 320px;
  height: 320px;
  vertical-align: middle;
  border: 4px solid rgba(255, 255, 255, 0.4);
  background: rgba(0, 0, 0, 0.8);
}
.logo img {
  position: absolute;
  top: 53%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Divider between sections: a red disc with a glyph, half over the section above. */
.sectiondivider {
  position: absolute;
  inset-block-start: -135px;
  inset-inline-start: 50%;
  width: 270px;
  height: 270px;
  margin-inline-start: -135px;
  padding: 15px;
  color: var(--bg);
}
.sectiondivider .disc, .sectiondivider .glyph {
  position: absolute;
  inset-inline: 0;
  margin-inline: auto;
}
/* Same box as the old icon font: line box 2em tall, starting at padding + shift. */
.sectiondivider .disc {
  --d: calc(var(--icon-size) * 2 * 1536 / 1792);
  top: calc(15px + var(--icon-shift) + var(--icon-size) - var(--d) / 2);
  width: var(--d);
  height: var(--d);
  border-radius: 50%;
  background: #ff0000;
}
.sectiondivider .glyph {
  top: calc(15px + var(--icon-shift) + var(--icon-size) / 2);
  width: calc(var(--icon-size) * var(--adv) / 1792);
  height: var(--icon-size);
  fill: #444;
}
.sectiondivider h5 {
  position: absolute;
  bottom: 50px;
  z-index: 6;
  display: block;
  width: 240px;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
}


/* ----- screenshots ----- */

.screenshot-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 90%;
  margin: 40px auto;
}
.screenshot-thumb {
  display: block;
  overflow: hidden;
  border-radius: 12px;
  background: #111;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}
.screenshot-thumb:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
}
.screenshot-thumb img { display: block; width: 100%; }
.screenshot-thumb span {
  display: block;
  padding: 10px 16px;
  background: rgba(0, 0, 0, 0.65);
  color: #ddd;
  font-size: 13px;
  font-style: italic;
  text-align: center;
}

/* Overlays sit on the (left-to-right) app screenshot: physical sides on purpose. */
.screenshot {
  position: relative;
  overflow: visible;
  border-radius: 12px;
  background: #111;
  box-shadow: 0 8px 48px rgba(0, 0, 0, 0.8);
}
.screenshot img { display: block; width: auto; max-height: 80vh; }
.screenshot figcaption {
  padding: 12px 20px;
  background: rgba(0, 0, 0, 0.65);
  color: #ddd;
  font-size: 15px;
  font-style: italic;
  text-align: center;
}

.anno-num, .num {
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-style: normal;
  font-weight: 700;
  text-align: center;
}
.anno-num {
  position: absolute;
  z-index: 2;
  width: 18px;
  height: 18px;
  font-size: 10px;
  line-height: 18px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
  pointer-events: none;
}
.anno-num::before {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 100%;
  width: 1px;
  height: var(--stick, 0px);
  background: rgba(204, 51, 51, 0.7);
  transform: translateX(-50%);
}
.anno-legend-inset {
  position: absolute;
  z-index: 3;
  padding: 10px 14px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.82);
  color: #eee;
  font-size: 14px;
  line-height: 1.7;
  pointer-events: none;
}
.anno-legend-inset .num {
  display: inline-block;
  width: 20px;
  height: 20px;
  margin-right: 4px;
  font-size: 11px;
  line-height: 20px;
  vertical-align: middle;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
}
.lightbox:target { display: flex; }
.lightbox-bg { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.6); }
.lightbox .screenshot { z-index: 1; width: fit-content; }
.lightbox-close {
  position: absolute;
  top: 50%;
  right: -32px;
  z-index: 2;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #333;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 52px;
  line-height: 60px;
  text-align: center;
  text-decoration: none;
  opacity: 0.9;
  transform: translateY(-50%);
  transition: opacity 0.2s;
}
.lightbox-close:hover { background: #555; opacity: 1; }


/* ----- smaller screens (same breakpoints as before) ----- */

@media (min-width: 768px) and (max-width: 959px) {
  .container { width: 768px; }
}
@media (max-width: 767px) {
  :root { --icon-size: 100px; --icon-shift: -14px; }
  .container { width: 96%; }
  .container h1 { font-size: 30px; }
  .container h2 { font-size: 24px; }
  .container h3 { font-size: 20px; }
  .container h4 { font-size: 18px; }
  .section { padding: 80px 0; }
  .sectiondivider {
    inset-block-start: -100px;
    width: 200px;
    height: 200px;
    margin-inline-start: -100px;
  }
  .sectiondivider h5 { bottom: 30px; width: 170px; }
  .screenshot-grid { grid-template-columns: 1fr; max-width: 95%; }
}
@media (min-width: 480px) and (max-width: 767px) {
  .container { width: 92%; }
}
@media (max-width: 679px) {
  nav { font-size: 11px; }
  nav li { min-width: 60px; line-height: 40px; }
}
@media (max-width: 380px) {
  nav li { min-width: 90px; line-height: 20px; }
}
