/* transparentscreenlock.com: one screen, no scrolling. Left menu, centre content, right ticker. */

@font-face { font-family: 'Quicksand'; font-weight: 300; font-display: swap; src: url('../assets/fonts/quicksand/300.woff2') format('woff2'); }
@font-face { font-family: 'Quicksand'; font-weight: 400; font-display: swap; src: url('../assets/fonts/quicksand/regular.woff2') format('woff2'); }
@font-face { font-family: 'Quicksand'; font-weight: 500; font-display: swap; src: url('../assets/fonts/quicksand/500.woff2') format('woff2'); }
@font-face { font-family: 'Quicksand'; font-weight: 700; font-display: swap; src: url('../assets/fonts/quicksand/700.woff2') format('woff2'); }

:root {
  --dark: #333;
  --sand: #cebfaf;
  --teal: #597c87;
  --paper: #efefef;
  --ink: #232323;
  --panel: 280px;
}

*, *::before, *::after { box-sizing: border-box; }

html, body { height: 100%; margin: 0; }

body {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-family: 'Quicksand', system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

a { color: inherit; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- Left menu ---------- */
.sidenav {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 1000;
  width: var(--panel);
  padding-top: 20px;
  overflow-x: hidden;
  overflow-y: auto;
  color: #fff;
  text-transform: uppercase;
  background: var(--dark);
  border-right: 1px solid grey;
  transition: transform 0.3s ease;
}

.sidenav a { color: #fff; text-decoration: none; }

.sidebar-logo { padding: 20px 0 30px; text-align: center; }
.sidebar-logo img { display: block; width: 80%; max-width: 220px; height: auto; margin: 0 auto; filter: drop-shadow(0 0 3px rgb(0 0 0 / 0.4)); }

.menu-item > summary,
.sidenav > .nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  font-size: 18px;
  cursor: pointer;
  list-style: none;
}

.menu-item > summary::-webkit-details-marker { display: none; }

.menu-item > summary::after {
  content: '';
  border: 6px solid transparent;
  border-top-color: #fff;
  border-bottom-width: 0;
  transition: transform 0.3s ease;
}

.menu-item[open] > summary::after { transform: rotate(180deg); }

.menu-item .content { display: flex; flex-direction: column; align-items: flex-start; padding-bottom: 6px; }
.menu-item .content a { padding: 6px 0 6px 36px; font-size: 16px; }

/* Underline grows from the left on hover and keyboard focus. */
.sidenav a { position: relative; transition: color 0.3s; }
.sidenav a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background: #f0f0f0; transition: width 0.3s ease-out; }
.sidenav a:hover::after, .sidenav a:focus-visible::after { width: 100%; }
.sidenav .nav-link { justify-content: flex-start; width: fit-content; }

.learn-more { margin: 30px 0; text-align: center; }
.learn-more a { display: inline-block; padding: 12px 20px; font-size: 18px; background: #444; border: 1px solid #888; border-radius: 4px; transition: background-color 0.3s; }
.learn-more a::after { display: none; }
.learn-more a:hover { background: #555; }

.sidebar-toggle {
  position: fixed;
  top: 15px;
  left: 15px;
  z-index: 1100;
  display: none;
  padding: 10px;
  cursor: pointer;
  background: var(--dark);
  border: 0;
}

.sidebar-toggle span { display: block; width: 25px; height: 3px; margin: 5px 0; background: #fff; }

/* ---------- Right ticker: lines fade in one after another ---------- */
.ticker {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 1000;
  width: var(--panel);
  padding: 20px 15px;
  overflow: hidden;
  text-transform: uppercase;
  background: var(--dark);
  border-left: 1px solid grey;
}

.ticker ul { margin: 0; padding: 0; list-style: none; }

.ticker li {
  padding: 8px 0;
  font-size: 18px;
  color: #fff;
  opacity: 0;
  transform: translateY(10px);
  animation: fade-line 24s linear infinite;
  animation-delay: calc(var(--i) * 1.5s);
}

@keyframes fade-line {
  0% { opacity: 0; transform: translateY(10px); }
  10% { opacity: 1; transform: none; }
  30% { opacity: 1; }
  40%, 100% { opacity: 0; }
}

/* Anyone who asks for less motion gets the whole list, still. */
@media (prefers-reduced-motion: reduce) {
  .ticker li { opacity: 1; transform: none; animation: none; }
}

/* ---------- Content: fills the screen between the two panels ---------- */
main {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
  margin-inline: var(--panel);
}

.hero {
  display: flex;
  flex: 0 1 auto;
  flex-direction: column;
  justify-content: center;
  padding: clamp(0.75rem, 3vh, 2rem) 1.5rem;
  text-align: center;
  color: #000;
  background: linear-gradient(45deg, #cebfaf, #f2f3f7);
}

.hero__kicker { margin: 0 0 0.5rem; font-size: clamp(0.8rem, 1.6vh, 1rem); font-style: italic; font-weight: 700; letter-spacing: 0.6em; text-transform: uppercase; }
.hero h1 { margin: 0 0 clamp(0.4rem, 1.5vh, 1rem); font-size: clamp(2rem, 6.5vh, 4rem); font-weight: 300; line-height: 1.1; }
.hero h1 b { font-weight: 700; }
.hero p { margin: 0 auto; max-width: 46rem; font-size: clamp(0.95rem, 2.3vh, 1.35rem); font-weight: 300; line-height: 1.5; }

.pick {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 0;
  padding: clamp(0.5rem, 2vh, 1.5rem) 1.5rem;
}

.pick__lead { margin: 0 0 clamp(0.5rem, 2vh, 1.25rem); text-align: center; font-size: clamp(1rem, 2.4vh, 1.4rem); font-weight: 300; }

.cards { flex: 1 1 auto; min-height: 0; max-height: 36rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; max-width: 70rem; width: 100%; margin-inline: auto; }

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(1rem, 4vh, 3rem) 1.75rem;
  overflow: hidden;
  background: var(--sand);
  transition: transform 0.3s, box-shadow 0.3s;
}

/* The teal corner from the original cards. */
.card::before { content: ''; position: absolute; right: -100px; bottom: -100px; width: 200px; height: 200px; background: var(--teal); opacity: 0.1; transform: rotate(45deg); transition: opacity 0.3s; }
.card:hover, .card:focus-within { transform: translateY(-4px); box-shadow: 0 10px 24px rgb(0 0 0 / 0.18); }
.card:hover::before, .card:focus-within::before { opacity: 1; }
.card > * { position: relative; z-index: 1; }

.card svg { width: clamp(3rem, 13vh, 8rem); height: auto; margin-bottom: clamp(0.5rem, 2.5vh, 2rem); fill: none; stroke: var(--teal); stroke-width: 1.6; stroke-linejoin: round; }
.card h2 { margin: 0 0 0.4rem; font-size: clamp(1.25rem, 3.2vh, 1.9rem); }
.card p { margin: 0 0 0.75rem; font-size: clamp(0.85rem, 1.9vh, 1.05rem); line-height: 1.45; }
.card__more { margin-top: auto; font-size: 0.9rem; white-space: nowrap; font-weight: 700; color: #2c444d; }
.card:hover .card__more, .card:focus-within .card__more { color: var(--ink); }

footer { padding: 0.6rem 1rem; font-size: 0.85rem; text-align: center; color: #fff; background: var(--dark); }
footer { margin-inline: var(--panel); }
footer p { margin: 0; }

/* ---------- Narrower screens: the menu slides in from the left, the ticker goes away, the page may scroll ---------- */
@media (max-width: 1554px) {
  :root { --panel: 0px; }
  .sidebar-toggle { display: block; }
  .sidenav { width: 280px; transform: translateX(-100%); }
  .sidenav.open { transform: none; }
  .ticker { display: none; }
}

@media (max-width: 900px), (max-height: 720px) {
  body { overflow: auto; }
  .cards { grid-template-columns: 1fr; }
  .hero { padding-top: 4rem; }
}
