:root {
  --navy: #1B2A3A;
  --rust: #8C4414;
  --rust-dark: #6f3610;
  --bg: #ffffff;
  --surface: #f7f4ee;
  --border: #e3ddd0;
  --text: #25303b;
  --muted: #5d6874;
  --max: 1040px;
  --radius: 10px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.65;
  font-size: 1.05rem;
}

img { max-width: 100%; height: auto; }
a { color: var(--rust); }
a:hover { color: var(--rust-dark); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }

h1, h2, h3, .wordmark, .wordmark-sm {
  font-family: "Rokkitt", Georgia, "Times New Roman", serif;
  color: var(--navy);
  line-height: 1.15;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); font-weight: 800; margin: 0 0 .4em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.1rem); font-weight: 800; margin: 2em 0 .5em; }
h3 { font-size: 1.5rem; font-weight: 800; margin: 0 0 .3em; }

/* Header */
.site-header { border-bottom: 3px solid var(--rust); background: var(--bg); }
.header-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-top: 10px; padding-bottom: 10px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.wordmark { font-size: 1.9rem; font-weight: 800; letter-spacing: .02em; white-space: nowrap; }
.wordmark .navy { color: var(--navy); }
.wordmark .rust { color: var(--rust); }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; }
.site-nav a, .nav-member { color: var(--navy); text-decoration: none; font-weight: 600; padding: 6px 2px; border-bottom: 3px solid transparent; }
.site-nav a:hover { color: var(--rust); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--rust); }
.nav-form { display: inline; margin: 0; }
.nav-member { background: none; border: 0; font: inherit; font-weight: 600; cursor: pointer; color: var(--rust) !important; }

/* Hero */
.hero { background: #fff; text-align: center; padding-top: 24px; }
.hero img { display: block; margin: 0 auto; width: 100%; max-width: 900px; }
.hero-text { padding: 8px 0 28px; }
.hero-text .tagline { font-family: "Rokkitt", Georgia, serif; color: var(--rust); font-size: clamp(1.3rem, 3vw, 1.8rem); font-weight: 600; margin: 0; }

/* Content */
.content { padding: 32px 0 56px; }
.narrow { max-width: 760px; }
.lead { font-size: 1.2rem; color: var(--muted); }
.page-title { padding-top: 36px; }
.status { display: inline-block; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 2px 14px; font-size: .92rem; color: var(--navy); font-weight: 600; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 20px; margin: 20px 0; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; }
.card p { margin: .4em 0; }
.card .status { align-self: flex-start; margin-top: auto; }
.card .actions { margin-top: 14px; }
.button { display: inline-block; background: var(--rust); color: #fff !important; text-decoration: none; padding: 9px 20px; border-radius: 6px; font-weight: 600; border: 0; cursor: pointer; font-size: 1rem; }
.button:hover { background: var(--rust-dark); }
.link-more { font-weight: 600; margin-right: 18px; }

.callout { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 22px 26px; margin: 36px 0 0; }
.callout a { color: #f1b27a; }

/* Figures / screenshots */
figure { margin: 24px 0; }
figcaption { color: var(--muted); font-size: .95rem; margin-top: 6px; }
.screens { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.screens figure { margin: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; }
.screens img { display: block; margin: 0 auto; max-height: 300px; width: auto; border-radius: 6px; }

ul.learned { padding-left: 1.2em; }
ul.learned li { margin-bottom: .7em; }

/* Forms */
.form-row { margin-bottom: 18px; }
label { display: block; font-weight: 600; margin-bottom: 4px; color: var(--navy); }
input[type=text], input[type=email], input[type=password], select, textarea {
  width: 100%; max-width: 560px; padding: 10px 12px; font: inherit; border: 1px solid #bdb6a6; border-radius: 6px; background: #fff; color: var(--text);
}
textarea { max-width: 100%; }
input:focus, select:focus, textarea:focus, a:focus-visible, button:focus-visible { outline: 3px solid #f1b27a; outline-offset: 1px; }
.errorlist { color: #a1260f; list-style: none; padding: 0; margin: 4px 0; font-size: .95rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Footer */
.site-footer { background: var(--navy); color: #d6dde5; padding: 26px 0; margin-top: 40px; }
.site-footer a { color: #f1b27a; }
.site-footer p { margin: .2em 0; }
.wordmark-sm { color: #fff; letter-spacing: .04em; font-size: 1.15rem; }
.small { font-size: .92rem; }

@media (max-width: 560px) {
  .wordmark { font-size: 1.5rem; }
  .site-nav { gap: 2px 14px; }
}

/* Projects and updates */
.badge-private { display: inline-block; vertical-align: middle; background: var(--navy); color: #fff; font-family: system-ui, sans-serif; font-size: .7rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; padding: 2px 10px; border-radius: 999px; }
.card-text p:first-child { margin-top: 0; }
.prose img { border-radius: 8px; }
.prose table { border-collapse: collapse; }
.prose th, .prose td { border: 1px solid var(--border); padding: 6px 10px; }
.update { border-top: 1px solid var(--border); padding-top: 12px; margin-top: 24px; }
.update h3 { margin-bottom: 0; }
.update-date { color: var(--muted); font-size: .95rem; margin: 0 0 .5em; }
