/* jaredeckersley.com: single hand-written stylesheet. Always black (legacy look), no light mode. */
/* Always-black theme inspired by the legacy 2004 site (css/main.css, css/home.css, images/*.gif).
   Contrast ratios are against --bg (#000) unless noted; all text pairs meet WCAG AA. */
:root {
  --bg: #000000;          /* legacy body background */
  --surface: #111111;     /* card panels (darkened take on the legacy #4A4A4A side panel) */
  --surface-2: #4a4a4a;   /* legacy #contentRight panel: chips/hover */
  --text: #ffffff;        /* legacy header/footer/menu text, 21:1 */
  --body: #e6e6e6;        /* body copy, 16.7:1 on #000, 15:1 on #111 */
  --muted: #999999;       /* legacy secondary text (.date), 7.4:1 on #000, 6.6:1 on #111 */
  --border: #333333;      /* legacy #content right border */
  --frame: #ffffff;       /* legacy 1px white frame lines */
  --accent: #ffcc00;      /* legacy active menu / hover / page-options bar, 13.9:1 */
  --accent-text: #000000; /* legacy black text on the yellow bar */
  --ok: #8fd694; --err: #ff6666; /* legacy a:active red, 7.3:1 */
  --radius: 4px; --shadow: none;
  --maxw: 68rem;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg);
  font: 1.0625rem/1.65 Arial, Helvetica, sans-serif;
  color: var(--body);
  display: flex; flex-direction: column; min-height: 100vh;
}
img { max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: .15em; }
a:visited { color: #e6b800; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { line-height: 1.2; margin: 1.6em 0 .5em; color: var(--text); }
h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); letter-spacing: -.02em; }
h2 { font-size: 1.5rem; } h3 { font-size: 1.2rem; } h4 { font-size: 1rem; }
code { font-size: .92em; background: var(--surface-2); color: var(--text); padding: .1em .35em; border-radius: 3px; }
.wrap { width: min(100% - 2rem, var(--maxw)); margin-inline: auto; }
main { flex: 1; padding-bottom: 3rem; }

.skip { position: absolute; left: -999px; top: 0; background: var(--accent); color: var(--accent-text); font-weight: 700; padding: .5rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; }

.site-header { background: var(--bg); border-bottom: 1px solid var(--frame); box-shadow: 0 6px 0 var(--accent); margin-bottom: 6px; }
.bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; padding-block: .75rem; }
.brand { display: block; line-height: 0; }
.brand img { display: block; }
.site-header ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; }
.site-header nav a {
  display: inline-block; padding: .35rem 0; color: var(--text); text-decoration: none;
  font-weight: 700; font-size: .9375rem; text-transform: uppercase; letter-spacing: .02em;
}
.site-header nav a::after { content: " \25B8"; font-size: .8em; }          /* legacy menu_arrow.gif */
.site-header nav a:hover { color: var(--accent); }
.site-header nav a[aria-current="page"] { color: var(--accent); }
.site-header nav a[aria-current="page"]::after { content: " \25BE"; }      /* legacy menu_arrow_down.gif */

.site-footer { border-top: 1px solid var(--frame); color: var(--text); font-size: .9rem; }

.hero { padding-block: 2.5rem 1rem; }
.hero h1 { margin-top: .5em; max-width: 22ch; }
.hero img { border-radius: 8px; }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 60ch; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.btn {
  display: inline-block; padding: .6rem 1.1rem; border-radius: 8px; border: 2px solid var(--accent);
  background: var(--accent); color: var(--accent-text); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
}
.btn.alt { background: transparent; color: var(--text); border-color: var(--frame); }
.btn.alt:hover { color: var(--accent); border-color: var(--accent); }
a.btn:visited { color: var(--accent-text); } a.btn.alt:visited { color: var(--text); }
.btn:hover { filter: brightness(1.08); }

.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: 1rem; }
.tile {
  display: flex; align-items: center; gap: 1rem; padding: 1rem; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); color: var(--text); text-decoration: none;
}
a.tile:visited { color: var(--text); }
.tile:hover { border-color: var(--accent); }
.tile img, .thumb { border-radius: 8px; flex: none; }

.clients { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.clients li { padding: .35rem .8rem; border-radius: 999px; background: var(--surface-2); color: var(--text); font-size: .95rem; }

.toc ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }

.card {
  display: grid; grid-template-columns: auto 1fr; gap: 1.25rem; align-items: start;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 1.5rem; margin-block: 1.5rem; scroll-margin-top: 1rem;
}
.card.plain { display: block; }
.card > div > :first-child, .card > :first-child { margin-top: 0; }
.edition { display: inline-block; font-size: .8rem; font-weight: 600; color: var(--muted); border: 1px solid var(--muted); border-radius: 999px; padding: .1rem .6rem; vertical-align: middle; }
@media (max-width: 40rem) { .card { grid-template-columns: 1fr; } }

details { margin-top: 1rem; }
summary { cursor: pointer; font-weight: 600; color: var(--accent); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); gap: 1rem; margin-top: 1rem; }
.gallery figure { margin: 0; }
.gallery img { border: 1px solid var(--border); border-radius: 6px; display: block; }
figcaption { font-size: .85rem; color: var(--muted); margin-top: .3rem; }

form.contact { max-width: 36rem; display: grid; gap: 1.1rem; }
.field { display: grid; gap: .35rem; }
label { font-weight: 600; }
input, textarea {
  font: inherit; color: var(--text); background: var(--surface); width: 100%;
  border: 1px solid var(--muted); border-radius: 4px; padding: .6rem .75rem;
}
input:focus, textarea:focus { border-color: var(--accent); }
[aria-invalid="true"] { border-color: var(--err); }
.error { color: var(--err); margin: 0; font-size: .9rem; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.notice { padding: .8rem 1rem; border-radius: 8px; border: 1px solid currentColor; }
.notice.ok { color: var(--ok); } .notice.err { color: var(--err); }
form.contact .btn { justify-self: start; }

@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
