/*
 * Tidekin Studio site (26 Nov 2026), made by the rules of the unslop skill (github.com/heydamir/unslop, CC BY 4.0).
 * Direction: sunny, handmade, a little cheeky; the world is the app icon's golden-hour cove. The one bright element is
 * the hero scene; everything else is a quiet warm ramp with the icon's dark teal as ink. The signature is that ink
 * drawn as a contour, round the Tidekin and round the phones. Spacing on a 4px grid, one accent (the sun's orange,
 * darkened for text), no glows, washes or coloured shadows.
 *
 * The hero scene is in layers so the text and the Tidekin can never meet: the page draws the sun and its rays, centred
 * on the Tidekin wherever the layout puts him, and Tools/make_site_hero.py makes his cut-out and prints the numbers
 * marked "from the tool" below.
 */
@font-face {
  font-family: "Lilita One";
  src: url("LilitaOne-Regular.ttf") format("truetype");
  font-display: swap;
}

:root {
  color-scheme: light;
  --bg: #f8f4ec;
  --card: #fffdf8;
  --raised: #f1ebdf;
  --ink: #123f3c;          /* primary text, the icon's contour */
  --ink-2: #3f5e5b;        /* secondary text */
  --ink-3: #5f7471;        /* muted, meta only */
  --hair: rgba(18, 63, 60, 0.10);
  --accent: #b4500c;       /* the sun's orange, dark enough for text on the page (4.6:1) */
  --display: "Lilita One", "Arial Rounded MT Bold", system-ui, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/24px var(--body);
}
img { display: block; }

a { color: var(--accent); text-underline-offset: 3px; transition: color 160ms var(--ease); }
a:hover { color: var(--ink); }
a:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; border-radius: 4px; }

.wrap { max-width: 1280px; margin: 0 auto; padding: 0 32px; }

/* Navigation */
.top {
  height: 64px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand {
  font: 400 22px/1 var(--display);
  color: var(--ink); text-decoration: none;
}
.top nav { display: flex; gap: 24px; }
.top nav a {
  padding: 12px 0;
  color: var(--ink-2); font-size: 15px; line-height: 20px; font-weight: 500;
  text-decoration-line: underline; text-decoration-color: transparent; text-underline-offset: 6px;
  transition: color 160ms var(--ease), text-decoration-color 160ms var(--ease);
}
.top nav a:hover { color: var(--ink); text-decoration-color: currentColor; }
.top nav a[aria-current="page"] { color: var(--ink); text-decoration-color: currentColor; }

/* On the home page the navigation lies on the scene */
.over { position: absolute; top: 0; left: 0; right: 0; z-index: 2; }
.over .top nav a { color: var(--ink); }

/* Hero: the scene edge to edge, the text on its calm side, the Tidekin in his own column */
.hero {
  --t: clamp(340px, 44vw, 600px);   /* the drawn Tidekin's width; the sun is measured in it */
  position: relative; isolation: isolate;
  overflow: hidden; overflow: clip;
  display: grid; align-items: center;
  /* Nearly the first screen, so "Our games" shows under it; never taller than the scene is wide enough for */
  min-height: clamp(560px, min(calc(100vh - 104px), 62vw), 820px);
  min-height: clamp(560px, min(calc(100svh - 104px), 62vw), 820px);
  padding: 88px 0 40px;
  background: #ffa321;
}
.hero .wrap {
  width: 100%;
  display: grid; grid-template-columns: minmax(0, 1fr) var(--t);
  column-gap: clamp(24px, 4vw, 56px); align-items: center;
}
.hero .name { margin: 0 0 12px; font: 400 20px/24px var(--display); color: var(--ink); }
.hero h1 {
  margin: 0 0 20px;
  font: 400 clamp(34px, 4.3vw, 56px)/1.06 var(--display);
  color: var(--ink);
}
.hero h1 span { display: block; }
.hero .lede, .game .about, .shots figcaption { text-wrap: balance; }
.hero .lede { margin: 0; max-width: 28rem; font-size: 20px; line-height: 30px; font-weight: 500; color: var(--ink); }
.hero .soon { margin: 24px 0 0; font-size: 15px; line-height: 20px; font-weight: 600; color: var(--ink); }

.hero-art { position: relative; aspect-ratio: 1.1515; }   /* from the tool: the Tidekin's own box */
.hero-art img {                                             /* from the tool: the cut-out round that box */
  position: absolute; left: -4.58%; top: -10.27%;
  width: 115.17%; max-width: none; height: auto;
}
/* The icon's sun, with twelve rays that fade out with distance. Three layers, the top one first: the sun's own colours
   growing opaque outwards (that is the rays' fade, without a mask), the rays, the sun. */
.hero-art::before {
  content: "";
  position: absolute; z-index: -1;
  left: 50%; top: 40%;
  width: 300vmax; height: 300vmax;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(circle,
      rgba(255, 246, 196, 0) 0,
      rgba(255, 212, 77, 0.206) calc(var(--t) * 0.765),
      rgba(255, 163, 33, 0.498) calc(var(--t) * 1.848),
      #ed7f15 calc(var(--t) * 3.71),
      #e0640c calc(var(--t) * 5.098)),
    repeating-conic-gradient(
      rgba(255, 255, 255, 0.22) 0deg 14.85deg,
      rgba(255, 255, 255, 0) 15.15deg 29.85deg,
      rgba(255, 255, 255, 0.22) 30deg),
    radial-gradient(circle,
      #fff6c4 0,
      #ffd44d calc(var(--t) * 0.765),
      #ffa321 calc(var(--t) * 1.848),
      #e0640c calc(var(--t) * 5.098));
}

/* Games: the game beside three screens from the real game */
.games { padding-top: 56px; padding-bottom: 96px; }
.games h2.section {
  margin: 0 0 32px;
  font: 400 32px/36px var(--display);
}
.game {
  display: grid;
  grid-template-columns: minmax(0, 336px) minmax(0, 1fr);
  column-gap: 56px; align-items: start;
}
.game .icon { width: 88px; height: 88px; border-radius: 20px; margin-bottom: 20px; }
.game h3 { margin: 0 0 8px; font: 400 28px/32px var(--display); }
.game .about { margin: 0 0 24px; font-size: 17px; line-height: 28px; color: var(--ink-2); }
.facts { margin: 0; border-top: 1px solid var(--hair); }
.facts div {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--hair);
  font-size: 14px; line-height: 20px;
}
.facts dt { color: var(--ink-3); }
.facts dd { margin: 0; font-weight: 500; text-align: right; }

.shots {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px;
  margin: 0; padding: 0; list-style: none;
}
.shots figure { margin: 0; }
/* The radii are shares of the frame so the corner stays a phone's at any size (the screen is 600 x 1298) */
.phone {
  border: 6px solid var(--ink);
  border-radius: 14% / 6.5%;
  overflow: hidden;
  background: var(--ink);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}
.phone img { width: 100%; height: auto; border-radius: 12% / 5.5%; }
.shots figcaption { margin-top: 16px; font-size: 14px; line-height: 20px; color: var(--ink-2); }
.shots figcaption strong {
  display: block; margin-bottom: 4px;
  font: 400 18px/24px var(--display); color: var(--ink);
}

/* Privacy and support */
.doc-layout { display: grid; grid-template-columns: minmax(0, 720px) 220px; gap: 80px; justify-content: space-between; }
.doc { max-width: 720px; padding-top: 48px; padding-bottom: 80px; }
.doc h1 { margin: 0 0 8px; font: 400 40px/44px var(--display); }
.doc .date { margin: 0 0 32px; color: var(--ink-3); font-size: 14px; line-height: 20px; }
.doc h2 { margin: 40px 0 8px; font-size: 20px; line-height: 28px; font-weight: 600; scroll-margin-top: 24px; }
.doc p, .doc li { font-size: 17px; line-height: 28px; color: var(--ink); }
.doc p { margin: 0 0 16px; }
.doc ul { margin: 0 0 16px; padding-left: 24px; }
.doc li { margin: 4px 0; }
.doc .box {
  margin: 0 0 16px; padding: 20px;
  background: var(--card);
  border: 1px solid var(--hair);
  border-radius: 12px;
}
.doc .box p:last-child { margin-bottom: 0; }
.toc { padding-top: 140px; }
.toc nav { position: sticky; top: 24px; }
.toc h2 { margin: 0 0 12px; font-size: 14px; line-height: 20px; font-weight: 600; color: var(--ink-2); }
.toc ol { margin: 0; padding: 0; list-style: none; border-left: 1px solid var(--hair); }
.toc a {
  display: block; padding: 4px 0 4px 16px;
  font-size: 14px; line-height: 20px; color: var(--ink-3); text-decoration: none;
}
.toc a:hover { color: var(--ink); }
.button {
  display: inline-flex; align-items: center; height: 44px; padding: 0 20px;
  border-radius: 10px; background: var(--ink); color: #fff;
  font-size: 15px; font-weight: 500; text-decoration: none;
  transition: background-color 160ms var(--ease), transform 120ms var(--ease);
}
.button:hover { background: #1c5450; color: #fff; }
.button:active { transform: scale(0.98); }
.button:focus-visible { outline-color: var(--ink); border-radius: 10px; }
.notfound { padding-top: 96px; padding-bottom: 128px; max-width: 560px; }
.notfound h1 { margin: 0 0 12px; font: 400 48px/52px var(--display); }
.notfound p { margin: 0 0 24px; font-size: 18px; line-height: 28px; color: var(--ink-2); }

/* Footer */
footer {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 32px;
  border-top: 1px solid var(--hair);
  padding: 32px 0 48px;
  font-size: 14px; line-height: 20px; color: var(--ink-3);
}
footer .links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
footer a { color: var(--ink-2); text-decoration: none; }
footer a:hover { color: var(--ink); }

@media (max-width: 1100px) {
  .hero .lede { font-size: 18px; line-height: 28px; }
}

/* Tablets: the game's words above its screens */
@media (max-width: 1024px) {
  .doc-layout { display: block; }
  .toc { display: none; }
  .game { grid-template-columns: minmax(0, 1fr); row-gap: 40px; }
  .game-info { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 40px; align-items: end; }
  .game .about { margin-bottom: 0; }
}

/* Narrow tablets and phones: the text on top, the Tidekin below it */
@media (max-width: 840px) {
  .hero {
    --t: min(80vw, 440px);
    display: block; min-height: 0;
    padding-bottom: 44px;
  }
  .hero .wrap { display: block; }
  .hero h1 { font-size: clamp(28px, 8.8vw, 52px); margin-bottom: 16px; }
  .hero .soon { margin-top: 16px; }
  .hero-art { width: var(--t); margin: 48px auto 0; }
}

@media (max-width: 720px) {
  .wrap { padding: 0 20px; }
  .top nav { gap: 20px; }
  .hero .name { font-size: 18px; margin-bottom: 8px; }
  .games { padding-top: 48px; padding-bottom: 64px; }
  .games h2.section { font-size: 28px; line-height: 32px; margin-bottom: 24px; }
  .game { row-gap: 32px; }
  .game-info { display: block; }
  .game .icon { width: 80px; height: 80px; border-radius: 18px; margin-bottom: 16px; }
  .game h3 { font-size: 24px; line-height: 28px; }
  .game .about { margin-bottom: 24px; }
  .shots {
    display: flex; gap: 16px;
    overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: 20px;
    margin: 0 -20px; padding: 0 20px 8px;
  }
  .shots li { flex: 0 0 64%; max-width: 260px; scroll-snap-align: start; }
  .notfound { padding-top: 48px; padding-bottom: 80px; }
  .notfound h1 { font-size: 36px; line-height: 40px; }
  .doc { padding-top: 32px; padding-bottom: 64px; }
  .doc h1 { font-size: 32px; line-height: 36px; }
  footer { flex-direction: column; align-items: flex-start; gap: 12px; }
}
