/* Elmswick Studios: Lamplight site style (v1, 26 Nov 2026).
   Master copy: elmswick-handbook/site-kit/style.css. Every Elmswick site uses this
   file unchanged except the --accent line in the "App colour" block below.
   No scripts, cookies or files from anywhere else: the fonts are in fonts/. */

/* App colour: the only line an app changes. Must pass 4.5:1 on --bg (#18233A). */
:root { --accent: #F2C46B; }

:root {
  --bg: #18233A;      /* evening blue */
  --surface: #1F2C47; /* raised panels */
  --rule: #33425F;    /* lines */
  --text: #F1ECE2;    /* headings, strong text */
  --body: #DCD7CD;    /* body text */
  --muted: #C3C8D4;   /* dates, footers, captions */
  --lamp: #F2C46B;    /* the studio's lamp light */
  color-scheme: dark;
}

@font-face { font-family: "Literata"; src: url("fonts/literata-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Literata"; src: url("fonts/literata-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Literata"; src: url("fonts/literata-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Literata"; src: url("fonts/literata-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font: 18px/1.7 "Literata", Georgia, "Times New Roman", serif;
}

/* Links and focus */
a { color: var(--accent); text-underline-offset: 0.18em; }
a:hover { color: var(--text); }
a:focus-visible { outline: 2px solid var(--lamp); outline-offset: 3px; border-radius: 2px; }
.skip { position: absolute; left: -9999px; top: 0; padding: 12px 16px; background: var(--surface); color: var(--text); z-index: 10; }
.skip:focus { left: 16px; top: 16px; }

/* Studio bar: on every app page, above the app header, leading back to the studio */
.studio-bar {
  max-width: 70rem; margin: 0 auto; padding: 6px 24px;
  display: flex; flex-wrap: wrap; gap: 0 22px; align-items: center; justify-content: space-between;
  font-size: 0.9rem; border-bottom: 1px solid var(--rule);
}
.studio-bar a { display: inline-block; padding: 10px 0; color: var(--muted); text-decoration: none; }
.studio-bar a:hover { color: var(--text); text-decoration: underline; }
.studio-bar .studio { color: var(--lamp); font-weight: 500; }

/* Header: app or studio name, then the page links */
header {
  max-width: 70rem; margin: 0 auto; padding: 20px 24px;
  display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--rule);
}
header .name { display: flex; align-items: center; gap: 14px; color: var(--text); text-decoration: none; font-size: 1.2rem; font-weight: 500; }
header .mark { width: 42px; height: 42px; border-radius: 10px; flex: 0 0 auto; }
nav { display: flex; flex-wrap: wrap; gap: 0 22px; font-size: 1rem; }
nav a { display: inline-block; padding: 10px 0; color: var(--text); text-decoration: none; }
nav a:hover { text-decoration: underline; }
nav a[aria-current="page"] { color: var(--accent); font-weight: 600; }

/* Reading column */
main { max-width: 44rem; margin: 0 auto; padding: 64px 24px 80px; overflow-wrap: anywhere; }
h1, h2, h3 { color: var(--text); line-height: 1.15; }
h1 { font-size: 2.9rem; font-weight: 400; margin: 0 0 0.5rem; letter-spacing: -0.01em; }
h2 { font-size: 1.6rem; font-weight: 500; margin: 3rem 0 0.6rem; }
h3 { font-size: 1.15rem; font-weight: 600; margin: 2rem 0 0.4rem; }
p, ul, ol { margin: 0 0 1.1rem; }
li { margin-bottom: 0.35rem; }
strong { color: var(--text); font-weight: 600; }
.lede { font-size: 1.25rem; line-height: 1.55; color: var(--text); }
.small { font-size: 0.9rem; color: var(--muted); }
.callout { margin: 2rem 0; padding: 22px 26px; background: var(--surface); border-radius: 8px; font-size: 1.15rem; line-height: 1.55; color: var(--text); }
table { width: 100%; border-collapse: collapse; margin: 0 0 1.5rem; font-size: 0.95rem; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { color: var(--text); font-weight: 600; }
.table-wrap { overflow-x: auto; }

/* Store badge placeholder, screenshots and icon (index and press pages) */
.badge { display: inline-block; margin: 0.5rem 0 1.5rem; padding: 12px 20px; border: 1px solid var(--accent); border-radius: 999px; color: var(--text); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr)); gap: 12px; margin: 1rem 0 1.5rem; }
.shot {
  aspect-ratio: 9 / 19.5; background: var(--surface); border: 1px solid var(--rule); border-radius: 12px;
  display: flex; align-items: center; justify-content: center; text-align: center;
  font-size: 0.85rem; color: var(--muted); padding: 8px;
}
.shot img { width: 100%; height: 100%; object-fit: cover; border-radius: 11px; }
.icon { width: 96px; height: 96px; border-radius: 22px; background: var(--surface); border: 1px solid var(--rule); display: flex; align-items: center; justify-content: center; font-size: 0.8rem; color: var(--muted); text-align: center; overflow: hidden; }
.icon img { width: 100%; height: 100%; }

/* Footer */
footer {
  max-width: 70rem; margin: 0 auto; padding: 24px 24px 44px;
  border-top: 1px solid var(--rule); font-size: 0.92rem; color: var(--muted);
}
footer p { margin: 0 0 0.4rem; }
footer a { color: var(--muted); }
footer a:hover { color: var(--text); }

/* Studio home page only */
.hero { position: relative; max-width: 70rem; margin: 0 auto; padding: 96px 24px 104px; text-align: center; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; left: 50%; top: 24px; width: 560px; height: 560px; margin-left: -280px; border-radius: 50%;
  background: radial-gradient(circle, rgba(242,196,107,0.30) 0%, rgba(242,196,107,0.08) 38%, rgba(24,35,58,0) 70%);
  pointer-events: none;
}
.hero > * { position: relative; }
.hero .lamp { display: block; margin: 0 auto 40px; }
.hero h1 { max-width: 52rem; margin: 0 auto; font-size: clamp(2.3rem, 6vw, 3.7rem); line-height: 1.1; }
.hero p { max-width: 42rem; margin: 26px auto 0; font-size: 1.2rem; color: var(--muted); }
.apps { max-width: 55rem; margin: 0 auto; padding: 0 24px 96px; }
.apps h2 { margin: 0 0 0.5rem; font-size: 1.9rem; }
.apps ul { list-style: none; margin: 0; padding: 0; }
.apps li { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; padding: 28px 0; margin: 0; border-bottom: 1px solid var(--rule); }
.apps li img, .apps .blank { width: 72px; height: 72px; border-radius: 16px; flex: 0 0 auto; }
.apps .blank { border: 1px dashed #52617F; }
.apps .about { flex: 1 1 22rem; min-width: 0; }
.apps h3 { margin: 0; font-size: 1.5rem; }
.apps h3 a { color: var(--text); text-decoration: none; }
.apps h3 a:hover { text-decoration: underline; }
.apps .about p { margin: 4px 0 0; font-size: 1.05rem; color: var(--muted); }
.apps .go { padding: 10px 0; }
.contact { background: var(--surface); }
.contact div { max-width: 55rem; margin: 0 auto; padding: 56px 24px; display: flex; flex-direction: column; gap: 10px; }
.contact h2 { margin: 0 0 6px; font-size: 1.6rem; }
.contact p { margin: 0; }

@media (max-width: 600px) {
  body { font-size: 17px; }
  main { padding-top: 44px; }
  h1 { font-size: 2.3rem; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
