/* gregmccarvell.com
   One typeface, two grounds: spruce for who, paper for the message.
   The name is the page's one loud thing; everything else stays quiet. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/fonts/bricolage-grotesque.woff2") format("woff2");
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
}

:root {
  --spruce: #1f4d3a;
  --spruce-deep: #163829;
  --paper: #f2f4ec;
  --ink: #14201a;
  --mist: #b9cbbf;
  --brass: #c8a24a;
  --rule: rgba(242, 244, 236, 0.2);
  --gutter: clamp(1.25rem, 5vw, 4rem);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--spruce);
  color: var(--paper);
  font-family: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  font-size: 1.125rem;
  line-height: 1.5;
  font-optical-sizing: auto;
}

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

a { color: inherit; }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 4px; border-radius: 2px; }

/* ── The plate: the name, a lot line, and a few words ───────────────── */

.plate { padding: clamp(3rem, 9vw, 7rem) 0 clamp(3rem, 7vw, 5.5rem); }

/* The name is sized off the column it sits in, so the surname runs the
   column's full width at every size: 31cqi is where "McCarvell" meets the
   right edge at this weight and width. */
.plate .wrap { container-type: inline-size; }
.name {
  margin: 0;
  font-weight: 800;
  font-stretch: 75%;
  font-size: clamp(3.5rem, 21vw, 17.5rem); /* where container units are not known */
  font-size: clamp(3.5rem, 31cqi, 24rem);
  line-height: 0.84;
  letter-spacing: -0.025em;
}
.name span { display: block; }

.line { height: 3px; background: var(--brass); margin: clamp(1.5rem, 4vw, 3rem) 0 clamp(1.25rem, 3vw, 2rem); }

.intro { max-width: 34rem; }
.intro p { margin: 0 0 0.5rem; }
.role { font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 600; line-height: 1.2; }
.what { color: var(--mist); }

.jump {
  display: inline-block;
  margin-top: 1.25rem;
  padding: 0.8rem 1.4rem;
  background: var(--paper);
  color: var(--spruce-deep);
  font-weight: 700;
  text-decoration: none;
  border-radius: 999px;
}
.jump:hover { background: var(--brass); color: var(--ink); }

/* ── My sites: one row each ─────────────────────────────────────────── */

.sites { padding-bottom: clamp(3.5rem, 8vw, 6rem); }
.sites h2, .message h2 {
  margin: 0 0 1rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--mist);
}
.sites ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.sites li { border-bottom: 1px solid var(--rule); }
.sites a {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.15rem;
  padding: 1.15rem 0;
  text-decoration: none;
}
.domain {
  font-size: clamp(1.5rem, 3.4vw, 2.5rem);
  font-weight: 700;
  font-stretch: 85%;
  line-height: 1.1;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}
.about { color: var(--mist); }
.sites a:hover .domain { color: var(--brass); }

@media (min-width: 52rem) {
  .sites a { grid-template-columns: minmax(0, 5fr) minmax(0, 4fr); align-items: baseline; gap: 2rem; padding: 1.4rem 0; }
}

/* ── The message: paper ground ──────────────────────────────────────── */

.message { background: var(--paper); color: var(--ink); padding: clamp(3rem, 8vw, 6rem) 0; scroll-margin-top: 0; }
.message .wrap { display: grid; gap: 2rem; }
.message h2 {
  color: var(--spruce);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  font-stretch: 75%;
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}
.ask p { margin: 0; max-width: 26rem; color: #3b4a42; }

@media (min-width: 56rem) {
  .message .wrap { grid-template-columns: minmax(0, 4fr) minmax(0, 5fr); gap: 4rem; align-items: start; }
}

/* The form is the server's. These only bring it into the page's voice. */
.form .gt-scope { font-family: inherit; }
.form .gt-scope .lf-title { display: none; } /* the section already says it */
.form .gt-scope input,
.form .gt-scope textarea,
.form .gt-scope select { font-family: inherit; border-radius: 6px; }
.form .gt-scope button[type="submit"] {
  background: var(--spruce);
  border-color: var(--spruce);
  color: var(--paper);
  font-family: inherit;
  font-weight: 700;
  border-radius: 999px;
}
.form .gt-scope button[type="submit"]:hover { background: var(--spruce-deep); border-color: var(--spruce-deep); }

/* ── Foot ───────────────────────────────────────────────────────────── */

.foot { background: var(--spruce-deep); color: var(--mist); font-size: 0.9rem; padding: 2.5rem 0 3rem; }
.foot p { margin: 0 0 0.75rem; max-width: 46rem; }
.foot a { color: var(--paper); }
/* Listing-data notices, when there are any: the server's words, our colours. */
.foot .gt-compliance, .foot .gt-compliance p, .foot .gt-compliance small { color: var(--mist); font-size: 0.8rem; }
.foot .gt-compliance a { color: var(--paper); }

/* ── A page that is not here ────────────────────────────────────────── */

.lost { min-height: 100vh; }
.foot .gt-scope { display: block; }
.foot .gt-compliance { margin: 1.5rem 0 0; padding: 0; background: none; border: 0; }
