/* Kevin Griffin — kevingriffin-new.github.io
 * "Field notebook" — warm paper, deep ink, sage accent, a mono face for the
 * technical labels. Sized to ride on top of Collards' default Spinneret
 * templates: body content lives inside #content > main, with auto <hr> rules
 * and a <header class=summary> Collards emits above the page body.
 */

:root {
  --ink:     #211f1a;
  --muted:   #6b665b;
  --faint:   #908a7c;
  --rule:    #ded8c8;
  --hair:    #e9e3d4;
  --accent:  #2f6b45;
  --accent2: #b5552a;
  --bg:      #f7f3e9;
  --card:    #fcf9f1;
  --measure: 40rem;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", "Cascadia Code", Menlo, monospace;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Cambria, Georgia, serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink:     #ece9e0;
    --muted:   #a39d8f;
    --faint:   #7c766a;
    --rule:    #34322b;
    --hair:    #2a2823;
    --accent:  #82c79a;
    --accent2: #e0926a;
    --bg:      #14130f;
    --card:    #1b1a15;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  background:
    radial-gradient(120% 60% at 50% -10%, color-mix(in srgb, var(--accent) 6%, transparent), transparent 60%),
    var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.08rem;
  line-height: 1.62;
  margin: 0;
  padding: 0 1.25rem;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

#content {
  max-width: var(--measure);
  margin: 0 auto;
  padding: clamp(2.5rem, 8vw, 5rem) 0 4rem;
}

main { display: block; }

::selection { background: color-mix(in srgb, var(--accent) 28%, transparent); }

/* Collards emits stray rules and an auto metadata header (Source: File / Log)
 * plus an empty neighbors section. None of that belongs on a landing page. */
#content > hr,
main > hr,
.summary .metadata,
.neighbors:empty { display: none; }

/* ---- Hero ---------------------------------------------------------------- */

header.summary { margin: 0; }

h1 {
  font-size: clamp(2.3rem, 7vw, 3.1rem);
  line-height: 1.05;
  letter-spacing: -.02em;
  margin: 0;
  font-weight: 600;
}

p.tagline {
  font-family: var(--mono);
  font-size: .82rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin: .9rem 0 .2rem;
}

p.sub {
  color: var(--muted);
  font-style: italic;
  font-size: 1.18rem;
  margin: 0 0 2.4rem;
}

/* ---- Section headers ----------------------------------------------------- */

h2 {
  font-family: var(--mono);
  font-size: .76rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .2em;
  color: var(--faint);
  margin: 3rem 0 1.25rem;
  display: flex;
  align-items: center;
  gap: .9rem;
}
h2::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--rule);
}

/* ---- Body ---------------------------------------------------------------- */

p { margin: 0 0 1.05rem; }

strong { font-weight: 600; }
em { color: var(--ink); }

/* "Selected work" entries: bold accent project name + subtle hanging marker. */
p.field {
  position: relative;
  padding-left: 1.1rem;
  margin-bottom: 1.15rem;
}
p.field::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: .42rem;
  height: .42rem;
  border: 1.5px solid var(--accent);
  border-radius: 1px;
  transform: rotate(45deg);
}
p.field strong { color: var(--accent); }
p.field strong a { color: inherit; }

/* ---- Links --------------------------------------------------------------- */

a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--accent) 40%, transparent);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 2.5px;
  transition: text-decoration-color .15s ease, color .15s ease;
}
a:hover {
  text-decoration-color: var(--accent);
  color: var(--accent2);
}

/* ---- Contact list -------------------------------------------------------- */

ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
}
ul li {
  margin: .35rem 0;
  font-family: var(--mono);
  font-size: .92rem;
}

/* ---- Footer -------------------------------------------------------------- */

small { color: var(--faint); font-size: .82rem; }

/* The trailing "Built with Collards" line sits after a real divider. */
main > p:has(small) {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--hair);
}

/* ---- Small screens ------------------------------------------------------- */

@media (max-width: 30rem) {
  body { font-size: 1.04rem; }
  p.sub { font-size: 1.08rem; }
}
