/* Self-hosted, SIL Open Font License. */
@font-face {
  font-family: "Source Serif Pro";
  src: url("/fonts/SourceSerifPro-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans Pro";
  src: url("/fonts/SourceSansPro-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans Pro";
  src: url("/fonts/SourceSansPro-Semibold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* Don Speir — personal site
   Quiet, unhurried: warm off-white, charcoal, one ink-blue accent.
   Headings in a serif; body in a clean sans. No gradients or shadows. */

:root {
  --bg: #f4efe6;
  --bg-photo: #e6e0d4;
  --text: #2c2925;
  --text-muted: #5c574f;
  --accent: #1e3a5f;
  --accent-hover: #152a45;
  --rule: #d4cdbf;
  --focus: #1e3a5f;
  --max: 38rem;
  --space: 1.5rem;
  --font-serif: "Source Serif Pro", Palatino, "Palatino Linotype", Georgia, serif;
  --font-sans: "Source Sans Pro", "Helvetica Neue", Helvetica, "Segoe UI", Arial, sans-serif;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--text);
  background: var(--bg);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.65;
}

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

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  padding: 0.4rem 0.7rem;
  background: var(--bg);
  color: var(--text);
  z-index: 10;
}

.skip:focus {
  top: 0.75rem;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--space);
}

/* Header */

.site-header {
  padding: 1.75rem 0 0;
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem 1.75rem;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 1.15rem;
}

.wordmark {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--text);
  text-decoration: none;
}

.wordmark:hover {
  color: var(--text);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.15rem;
}

.site-nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
}

.site-nav a:hover {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.site-nav a[aria-current="page"] {
  color: var(--accent);
}

/* Main */

.site-main {
  flex: 1 0 auto;
  padding: 2.75rem 0 3.5rem;
}

.page-company .site-main {
  padding-top: 3.25rem;
  padding-bottom: 4rem;
}

h1,
h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
}

h1 {
  font-size: 2.35rem;
}

h2 {
  font-size: 1.35rem;
  margin-top: 2rem;
}

.page-company h1 {
  letter-spacing: 0.01em;
  margin-bottom: 1.35rem;
}

.lede,
.site-main p {
  margin: 0 0 1rem;
}

.lede {
  font-size: 1.15rem;
}

.placeholder {
  color: var(--text-muted);
  font-style: italic;
}

.intro-links {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.35rem;
}

/* Photo placeholder */

.portrait {
  margin: 0 0 2rem;
  max-width: 16rem;
}

.portrait-frame {
  aspect-ratio: 3 / 4;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: var(--bg-photo);
  border: 1px solid var(--rule);
  text-align: center;
}

.portrait figcaption,
.portrait-frame p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--text-muted);
  font-style: italic;
}

.portrait-photo {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--rule);
}

/* Contact form */

.contact-form {
  margin-top: 1.75rem;
  display: grid;
  gap: 1.1rem;
  max-width: 28rem;
}

.contact-form label {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--rule);
  background: #faf7f1;
  color: var(--text);
  font: inherit;
  border-radius: 0;
}

.contact-form textarea {
  min-height: 9rem;
  resize: vertical;
}

.contact-form button {
  justify-self: start;
  padding: 0.55rem 1.15rem;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #f4efe6;
  font: inherit;
  font-size: 0.95rem;
  cursor: pointer;
}

.contact-form button:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Company contact list */

.contact-list {
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
}

.contact-list li {
  margin: 0 0 1rem;
}

.contact-list .label {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.15rem;
}

.contact-list a {
  color: var(--text);
  text-decoration-color: var(--rule);
}

.contact-list a:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

/* Footer */

.site-footer {
  padding: 0 0 2rem;
}

.site-footer .wrap {
  border-top: 1px solid var(--rule);
  padding-top: 1.15rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.site-footer a {
  color: var(--text-muted);
}

.site-footer a:hover {
  color: var(--accent);
}

/* 404 */

.not-found p {
  margin-bottom: 1.25rem;
}

@media (max-width: 40rem) {
  html {
    font-size: 100%;
  }

  h1 {
    font-size: 2rem;
  }

  .site-header {
    padding-top: 1.25rem;
  }

  .site-main {
    padding: 2rem 0 2.75rem;
  }

  .portrait {
    max-width: 100%;
  }
}

.about-photo{margin:1.5rem 0;max-width:480px;}
.about-photo figcaption{font-size:.9rem;color:var(--muted, #666);margin-top:.4rem;}
