/* Jamie's website: one shared stylesheet.
   Plain, minimal and calm: white paper, ink-black text, one soft accent.
   Colors and fonts live in :root so the whole look can change in one place. */

:root {
  --bg: #ffffff;          /* plain white page */
  --surface: #fafaf8;     /* very faint panel */
  --text: #1f1f1f;        /* ink */
  --muted: #6b6b6b;       /* secondary text */
  --accent: #1f1f1f;      /* links stay ink-colored, underlined */
  --soft: #8a9a8b;        /* one quiet sage touch, used sparingly */
  --border: #e6e6e3;
  --placeholder: #f6f5f1; /* gentle highlight for text still to be written */

  --font-body: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-head: "Source Serif 4", Georgia, serif;
  --font-ui: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --max: 38rem;           /* narrow column, like a page in a book */
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161616;
    --surface: #1d1d1d;
    --text: #ececea;
    --muted: #a3a3a0;
    --accent: #ececea;
    --soft: #9fb0a0;
    --border: #2e2e2c;
    --placeholder: #232320;
  }
}

* { box-sizing: border-box; }

html { font-size: 112.5%; } /* 18px base for easy reading */

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: var(--border);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  transition: text-decoration-color .15s;
}
a:hover { text-decoration-color: var(--text); }

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

/* Header: centered name, small spaced-out menu */
.site-header { padding: 3rem 0 1.5rem; text-align: center; }
.site-header .wrap { display: flex; flex-direction: column; align-items: center; gap: 0.9rem; }
.site-name {
  font-family: var(--font-head); font-size: 1.9rem; font-weight: 400;
  letter-spacing: 0.01em; color: var(--text); text-decoration: none;
}
.site-nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.3rem 1.6rem;
  font-family: var(--font-ui); font-size: 0.68rem;
  letter-spacing: 0.16em; text-transform: uppercase;
}
.site-nav a { color: var(--muted); text-decoration: none; padding: 0.2rem 0; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); }
.site-nav a[aria-current="page"] { border-bottom: 1px solid var(--text); }

/* Main content */
main { padding: 1.5rem 0 4rem; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.3; font-weight: 400; }
h1 { font-size: 2.1rem; margin: 0 0 1.25rem; }
h2 {
  font-size: 0.72rem; font-family: var(--font-ui); font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted);
  margin: 3.5rem 0 1rem; padding-top: 1.5rem; border-top: 1px solid var(--border);
}
article h2 {
  font-family: var(--font-head); font-size: 1.35rem; font-weight: 600;
  letter-spacing: 0; text-transform: none; color: var(--text);
  border-top: 0; padding-top: 0; margin: 2.25rem 0 0.75rem;
}
h3 { font-size: 1.3rem; margin: 0 0 0.35rem; }
h3 a { text-decoration: none; }
h3 a:hover { text-decoration: underline; text-decoration-color: var(--text); }
p { margin: 0 0 1.2rem; }
.lede { font-size: 1.15rem; font-style: italic; color: var(--muted); }
ul { padding-left: 1.1rem; }
li { margin-bottom: 0.4rem; }
li::marker { color: var(--soft); }

/* Hero on the home page: centered, quiet */
.hero { text-align: center; padding: 1.5rem 0 1rem; }
.hero-photo {
  width: 7.5rem; height: 7.5rem; border-radius: 50%;
  object-fit: cover; margin: 0 auto 1.5rem;
  filter: grayscale(0.15);
}
main > .wrap > .hero-photo { margin: 0 0 1.5rem; }
.hero h1 { font-size: 2.4rem; }

/* Buttons: thin outlines, nothing loud */
.button {
  display: inline-block; font-family: var(--font-ui); font-size: 0.7rem;
  letter-spacing: 0.14em; text-transform: uppercase;
  background: var(--text); color: var(--bg); text-decoration: none;
  padding: 0.75rem 1.4rem; border: 1px solid var(--text); border-radius: 0;
  cursor: pointer; margin: 0.25rem;
}
.button:hover { opacity: 0.85; }
.button.secondary { background: transparent; color: var(--text); }

/* Writing list: no boxes, just entries separated by space and a hairline */
.cards { display: grid; gap: 0; margin: 0.5rem 0 1rem; }
.card { padding: 1.4rem 0; border-bottom: 1px solid var(--border); }
.card:first-child { padding-top: 0.25rem; }
.card .meta {
  font-family: var(--font-ui); font-size: 0.68rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--soft); margin-bottom: 0.4rem;
}
.card p { margin: 0; color: var(--muted); }
.cards img { border: 1px solid var(--border); }

/* Email sign-up: a simple framed note, centered */
.signup {
  text-align: center; border: 1px solid var(--border);
  padding: 2rem 1.5rem; margin: 3.5rem 0 0; background: var(--surface);
}
.signup h2 {
  margin-top: 0; padding-top: 0; border-top: 0;
  font-family: var(--font-head); font-size: 1.4rem; font-weight: 400;
  letter-spacing: 0; text-transform: none; color: var(--text);
}
.signup label { text-align: left; }
form .row { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; }
label { display: block; font-family: var(--font-ui); font-size: 0.75rem; color: var(--muted); margin: 0 0 0.35rem; }
input, textarea {
  font: inherit; font-size: 1rem; color: var(--text);
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 0; padding: 0.65rem 0.8rem; width: 100%;
}
input:focus, textarea:focus { outline: none; border-color: var(--text); }
.row input { flex: 1 1 14rem; width: auto; }
.row .button { margin: 0; }
.field { margin-bottom: 1.1rem; }
textarea { min-height: 9rem; resize: vertical; }

/* Placeholder text: shows clearly what still needs Jamie's words.
   Remove the "placeholder" class once the real text is in. */
.placeholder {
  background: var(--placeholder);
  outline: 1px dashed var(--border);
  outline-offset: 2px;
}
.note { font-family: var(--font-ui); font-size: 0.75rem; color: var(--muted); }

/* Footer */
.site-footer {
  text-align: center; padding: 2rem 0 3rem;
  font-family: var(--font-ui); font-size: 0.72rem; letter-spacing: 0.04em; color: var(--muted);
}
.site-footer .wrap { border-top: 1px solid var(--border); padding-top: 2rem; }

@media (max-width: 30rem) {
  html { font-size: 106.25%; }
  h1, .hero h1 { font-size: 1.85rem; }
  .site-header { padding-top: 2rem; }
}
