/* Island Road Studios — shared styles.
   Light-first: the studio is the company behind the game, not the game. Sunder's
   void indigo (#141433) is reused as INK rather than ground, which keeps the
   family resemblance without making this look like a second copy of the game. */

:root {
  --paper:     #eef1f6;
  --surface:   #ffffff;
  --raised:    #e4e9f1;
  --line:      #d3dae6;
  --ink:       #141433;
  --ink-soft:  #454372;
  --muted:     #6f6d96;
  --amber:     #9a6410;
  --tide:      #0f8a7e;
  --shadow:    0 1px 2px rgba(20,20,51,.05), 0 12px 32px -18px rgba(20,20,51,.25);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper:    #101028;
    --surface:  #17173a;
    --raised:   #1d1d45;
    --line:     #2b2b5a;
    --ink:      #edecf7;
    --ink-soft: #c2c0dc;
    --muted:    #8d8ab2;
    --amber:    #ffd76a;
    --tide:     #2dd4bf;
    --shadow:   0 1px 2px rgba(0,0,0,.4), 0 14px 36px -20px rgba(0,0,0,.75);
  }
}
:root[data-theme="dark"] {
  --paper: #101028; --surface: #17173a; --raised: #1d1d45; --line: #2b2b5a;
  --ink: #edecf7; --ink-soft: #c2c0dc; --muted: #8d8ab2;
  --amber: #ffd76a; --tide: #2dd4bf;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 14px 36px -20px rgba(0,0,0,.75);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Newsreader, Georgia, "Times New Roman", serif;
  font-size: 17px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 44rem; margin: 0 auto; padding: 2.5rem 1.4rem 4rem; }

/* ---- masthead / nav ---- */
.top { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-bottom: 2.5rem; }
.wordmark {
  font-family: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  font-weight: 800; font-size: 1.02rem; letter-spacing: -.015em;
  color: var(--ink); text-decoration: none;
}
.wordmark span { color: var(--amber); }
nav { display: flex; gap: 1.4rem; }
nav a {
  font-family: "Bricolage Grotesque", sans-serif; font-size: .82rem; font-weight: 600;
  color: var(--muted); text-decoration: none;
}
nav a:hover, nav a[aria-current="page"] { color: var(--ink); }

/* ---- type ---- */
h1 {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 800; font-size: clamp(2.1rem, 7vw, 3.1rem); line-height: 1.06;
  letter-spacing: -.028em; margin: 0 0 1.1rem; text-wrap: balance;
}
h2 {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 700; font-size: 1.28rem; letter-spacing: -.015em;
  margin: 3rem 0 .8rem; text-wrap: balance;
}
h3 { font-family: "Bricolage Grotesque", sans-serif; font-weight: 700; font-size: 1.02rem; margin: 2rem 0 .5rem; }
p { margin: 0 0 1.15rem; color: var(--ink-soft); }
.lede { font-size: 1.24rem; line-height: 1.55; color: var(--ink); max-width: 32rem; }
strong { color: var(--ink); font-weight: 600; }
a { color: var(--amber); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 2px; }
.eyebrow {
  font-family: "Bricolage Grotesque", sans-serif; font-size: .72rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: var(--tide);
  display: block; margin-bottom: .7rem;
}
.mono { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: .88em; }

/* ---- the work ---- */
.work {
  display: grid; grid-template-columns: 88px 1fr; gap: 1.4rem;
  align-items: start; padding: 1.5rem; margin: 1.5rem 0;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 4px; box-shadow: var(--shadow);
}
.work img { width: 88px; height: 88px; border-radius: 18px; display: block; }
.work h3 { margin: 0 0 .3rem; font-size: 1.16rem; }
.work p { margin: 0 0 .6rem; font-size: .96rem; }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.tag {
  font-family: "Bricolage Grotesque", sans-serif; font-size: .68rem; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase;
  padding: .18rem .5rem; border-radius: 2px;
  background: var(--raised); color: var(--muted);
}
@media (max-width: 30rem) { .work { grid-template-columns: 1fr; } }

/* ---- contact block ---- */
.contact {
  margin: 2rem 0; padding: 1.4rem 1.5rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: 4px;
}
.contact p:last-child { margin-bottom: 0; }
.addr { font-family: "JetBrains Mono", monospace; font-size: 1.02rem; font-weight: 700; color: var(--ink); }

/* ---- plain feature list ---- */
.plain { list-style: none; padding: 0; margin: 0 0 1.15rem; }
.plain li {
  position: relative; padding-left: 1.1rem; margin-bottom: .55rem;
  color: var(--ink-soft); font-size: .98rem;
}
.plain li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 5px; height: 5px; border-radius: 50%; background: var(--tide);
}

/* ---- faction grid ----
   The swatch is the faction's real in-game colour, pulled from TRIBE_DEFS. If a
   colour is repainted in the game, repaint it here too — this table is the only
   place on the site that claims to show what the board looks like. */
.facs {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: .5rem;
  margin: 1.3rem 0 1.5rem;
}
.fac {
  display: flex; gap: .7rem; align-items: flex-start;
  padding: .7rem .85rem; background: var(--surface);
  border: 1px solid var(--line); border-radius: 4px;
}
.fac .sw {
  flex: none; width: 14px; height: 14px; margin-top: .18rem;
  border-radius: 3px; background: var(--c);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.18);
}
.fac b {
  display: block; font-family: "Bricolage Grotesque", sans-serif;
  font-size: .92rem; font-weight: 700; color: var(--ink); letter-spacing: -.01em;
}
.fac small { display: block; font-size: .8rem; line-height: 1.45; color: var(--muted); }
@media (max-width: 34rem) { .facs { grid-template-columns: 1fr; } }

/* ---- development log ---- */
.log { list-style: none; padding: 0; margin: 1.2rem 0 0; }
.log li {
  padding: .8rem 0 .85rem; border-top: 1px solid var(--line);
  color: var(--ink-soft); font-size: .96rem;
}
.log li:last-child { border-bottom: 1px solid var(--line); }
.log time {
  display: block; font-family: "JetBrains Mono", monospace;
  font-size: .74rem; color: var(--tide); margin-bottom: .2rem;
}

.postal {
  margin: 1rem 0 0; padding-top: .9rem; border-top: 1px solid var(--line);
  font-size: .88rem; line-height: 1.6; color: var(--muted);
}
.postal strong { color: var(--ink-soft); }

/* ---- footer ---- */
footer {
  margin-top: 4rem; padding-top: 1.5rem; border-top: 1px solid var(--line);
  font-size: .84rem; color: var(--muted);
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
footer a { color: var(--muted); }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
