/* Palette taken from the original WordPress theme:
   background #fff5da, foreground/secondary #c40cd4, primary #fc04fc. */
:root {
  --bg: #fff5da;
  --bg-soft: #fbeec6;
  --ink: #241f14;
  --muted: #6b6151;
  --line: #ecdfba;
  --accent: #c40cd4;
  --accent-ink: #ffffff;
  --accent-soft: rgba(196, 12, 212, 0.08);
  --max: 940px;
}

* { box-sizing: border-box; }

/* One fixed light appearance — the site does not follow the system theme. */
html { background: var(--bg); color-scheme: only light; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); }

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

/* Header */
header { border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: 16px; padding: 16px 0; }
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { height: 56px; width: auto; }
nav { margin-left: auto; display: flex; gap: 22px; }
nav a { text-decoration: none; color: var(--muted); font-size: 15px; }
nav a:hover, nav a[aria-current="page"] { color: var(--ink); }

/* Front page hero with the full logo */
.masthead { text-align: center; padding: 6vw 0 1vw; }
/* Scales with the container, which is already capped at --max. */
.masthead img { width: 62%; height: auto; }

.hero { padding: 40px 0 56px; }
.hero.center { text-align: center; }
.hero h1 {
  margin: 0 0 22px;
  font-size: clamp(28px, 4.6vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.03em;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p.lead { margin: 0 auto; font-size: 19px; color: var(--muted); max-width: 58ch; }

/* Skills */
.skills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}
.hero.center .skills { justify-content: center; }
.skills li {
  border: 1px solid var(--line);
  background: var(--bg-soft);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 15px;
}
.skills li.primary {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--ink);
  font-weight: 600;
}

section { padding: 48px 0; border-top: 1px solid var(--line); }
section h2 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin: 0 0 24px;
}

/* Form */
form { display: grid; gap: 16px; max-width: 520px; }
label { display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
input, textarea {
  font: inherit;
  color: var(--ink);
  background: #fffdf5;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  width: 100%;
}
input:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
textarea { min-height: 140px; resize: vertical; }
button {
  font: inherit;
  font-weight: 600;
  color: var(--accent-ink);
  background: var(--accent);
  border: 0;
  border-radius: 10px;
  padding: 13px 22px;
  cursor: pointer;
  justify-self: start;
}
button:disabled { opacity: 0.6; cursor: default; }
.form-note { font-size: 14px; margin: 0; }
.form-note.ok { color: #1c7c3f; }
.form-note.err { color: #b3261e; }

/* Article */
article { padding: 48px 0 64px; max-width: 72ch; }
article h1 { font-size: clamp(26px, 4vw, 36px); letter-spacing: -0.02em; margin: 0 0 6px; }
article .updated { color: var(--muted); margin: 0 0 32px; font-size: 15px; }
article h2 {
  font-size: 19px;
  text-transform: none;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 34px 0 10px;
}
article ul { padding-left: 20px; }
article li { margin-bottom: 6px; }

footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 44px;
  color: var(--muted);
  font-size: 14px;
}
footer .row { display: flex; flex-wrap: wrap; gap: 12px 22px; align-items: center; }
footer a { color: var(--muted); }
footer .sep { margin-left: auto; }
