/* ---------------------------------------------------------------
   shared styles — keep it minimal
   edit colors / spacing here once, applies everywhere
   --------------------------------------------------------------- */

:root {
  --text: #fff;
  --muted: #ccc;
  --link: #87ceeb;
  --link-visited: #5fa8c9;
  --bg: #000;
  --measure: 36rem;     /* line length cap */
  --leading: 1.7;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 18px;
}

body {
  margin: 0;
  padding: 4rem 1.5rem 6rem;
  background: var(--bg);
  color: var(--text);
  font-family: "Helvetica";
  font-size: 17px
  
  

}

main {
  max-width: var(--measure);
  margin: 0 auto;
}

/* ---- headings ---- */

h1, h2, h3 {
  font-weight: normal;
  font-style: normal;
  letter-spacing: 0;
  margin: 0 0 1.5rem;
  text-transform: lowercase;
}

h1 {
  font-size: 1.5rem;
  margin-bottom: 3rem;
}

h2 {
  font-size: 1.15rem;
  margin-top: 3rem;
}

h3 {
  font-size: 1rem;
  margin-top: 2rem;
}

/* ---- text ---- */

p {
  margin: 0 0 1.25rem;
}

em, i {
  font-style: italic;
}

small, .muted {
  color: var(--muted);
  font-size: 0.875rem;
}

/* ---- links ---- */

a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 2px;
}

a:visited {
  color: var(--link-visited);
}

a:hover {
  text-decoration: none;
}

/* ---- lists ---- */

ul, ol {
  padding-left: 1.25rem;
  margin: 0 0 1.5rem;
}

li {
  margin-bottom: 0.4rem;
}

/* ---- index page link list ---- */

.index-list {
  list-style: none;
  padding-left: 0;
  margin: 2rem 0;
}

.index-list li {
  margin-bottom: 1rem;
}

/* ---- nav at the top of inner pages ---- */

nav.top {
  max-width: var(--measure);
  margin: 0 auto 3rem;
  font-size: 0.9rem;
}

/* ---- footer ---- */

footer {
  max-width: var(--measure);
  margin: 6rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid #ddd;
  font-size: 0.85rem;
  color: var(--muted);
}

/* ---- images (for case studies) ---- */

img, figure {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 2rem 0;
}

figure {
  margin: 2.5rem 0;
}

figcaption {
  font-size: 0.85rem;
  color: var(--muted);
  font-style: italic;
  margin-top: 0.5rem;
}

/* ---- block quotes ---- */

blockquote {
  margin: 2rem 0;
  padding-left: 1.25rem;
  border-left: 2px solid #ccc;
  font-style: italic;
  color: var(--muted);
}

/* ---- horizontal rule ---- */

hr {
  border: 0;
  border-top: 1px solid #ddd;
  margin: 3rem 0;
}

/* ---- code (in case any case study needs it) ---- */

code, pre {
  font-family: "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.9rem;
}

pre {
  background: #f3f1ec;
  padding: 1rem;
  overflow-x: auto;
  line-height: 1.5;
}

/* ---- footnote ---- */

.note {
  margin-top: 0.5rem;
  font-size: 0.8rem;
}

/* ---- expandable entries (accordion) ---- */

.entries {
  margin: 2.5rem 0;
}

.entry-toggle {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.6rem;
  width: 100%;
  padding: 0.6rem 0;
  background: none;
  border: 0;
  margin: 0;
  font: inherit;
  font-size: 1.05rem;
  text-align: left;
  color: var(--link);
  cursor: pointer;
}

.entry-toggle:hover span:last-child {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.entry-toggle em {
  color: var(--muted);
}

.entry-toggle .caret {
  flex: none;
  color: var(--muted);
  transition: transform 0.3s ease;
}

.entry.open .entry-toggle .caret {
  transform: rotate(90deg);
}

/* smooth height animation via grid-template-rows 0fr -> 1fr */
.entry-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s ease;
}

.entry.open .entry-body {
  grid-template-rows: 1fr;
}

.entry-inner {
  overflow: hidden;
}

.entry-content {
  padding: 0.25rem 0 2rem;
}

.entry-content > *:first-child {
  margin-top: 0;
}

/* ---- screenshot placeholders (swap .frame for an <img> when ready) ---- */

.shot {
  margin: 2.5rem 0;
}

.shot img {
  display: block;
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
  border-radius: 1rem;
}

.shot figcaption {
  text-align: center;
}

.shot .frame {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 13rem;
  padding: 1.5rem;
  border: 1px dashed #444;
  border-radius: 1rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}

/* ---- embedded video (responsive 16:9) ---- */

.video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 2.5rem 0;
  border-radius: 1rem;
  overflow: hidden;
}

.video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---- mobile ---- */

@media (max-width: 480px) {
  html { font-size: 17px; }
  body { padding: 2.5rem 1.25rem 4rem; }
  h1 { margin-bottom: 2rem; }
}
