/* Gavin Kelly's Blog — clean rebuild of the GoDaddy Website Builder export */

@font-face {
  font-family: 'Playfair Display';
  font-weight: 400 700;
  font-display: swap;
  src: url(/assets/fonts/playfair-display-latin.woff2) format('woff2');
}
@font-face {
  font-family: 'Open Sans';
  font-weight: 400 700;
  font-display: swap;
  src: url(/assets/fonts/open-sans-latin.woff2) format('woff2');
}
@font-face {
  font-family: 'Open Sans';
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
  src: url(/assets/fonts/open-sans-italic-latin.woff2) format('woff2');
}

:root {
  --black: #000000;
  --panel: #111111;
  --text: #ffffff;
  --muted: #b8b8b8;
  --dim: #969696;
  --placeholder: #919191;
  --line: #e2e2e2;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Open Sans', 'Helvetica Neue', Arial, sans-serif;
}

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

body {
  margin: 0;
  background: var(--black);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip: rect(0 0 0 0); clip-path: inset(50%);
  overflow: hidden; white-space: nowrap;
}

.container {
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: 24px;
}

/* ---------- Header ---------- */

.site-header {
  max-width: 1160px;
  margin-inline: auto;
  padding: 32px 24px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.site-logo {
  display: inline-block;
  border: 1px solid var(--text);
  padding: 8px 16px;
  color: var(--text);
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.4;
  text-decoration: none;
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}

.nav-toggle svg { display: block; }

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: inline-block;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  color: var(--text);
  font-size: 16px;
  letter-spacing: 2.5px;
  text-decoration: none;
  text-transform: uppercase;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] { border-bottom-color: var(--text); }

@media (max-width: 768px) {
  .site-header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 24px;
  }

  .site-logo {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
  }

  .nav-toggle {
    display: block;
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
  }

  .site-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    display: none;
  }

  .site-nav.open { display: block; }

  .site-nav ul {
    flex-direction: column;
    align-items: center;
    gap: 4px;
  }
}

/* ---------- Hero (home) ---------- */

.hero {
  display: flex;
  margin-top: 16px;
  margin-bottom: 80px;
}

.hero figure { flex: 1 1 65%; margin: 0; }

.hero img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-panel {
  flex: 1 1 35%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: var(--panel);
  text-align: center;
}

.hero-panel h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: 44px;
  font-weight: 400;
  line-height: 1.35;
}

@media (max-width: 768px) {
  .hero { display: block; margin-bottom: 56px; }
  .hero-panel { padding: 56px 24px; }
  .hero-panel h1 { font-size: 32px; }
}

/* ---------- Shared content ---------- */

.narrow {
  max-width: 774px;
  margin-inline: auto;
  padding-inline: 24px;
}

.prose p { margin: 0 0 1.6em; color: var(--muted); }

/* ---------- About ---------- */

.about {
  display: flex;
  align-items: flex-start;
  gap: 48px;
  margin-top: 48px;
  margin-bottom: 80px;
}

.about figure { flex: 0 0 339px; margin: 0; }

.about img { display: block; width: 100%; height: auto; }

.about-text { flex: 1 1 auto; }

@media (max-width: 768px) {
  .about { display: block; margin-top: 24px; }
  .about figure { margin-bottom: 32px; }
}

/* ---------- Blog ---------- */

.coming-soon {
  max-width: 725px;
  margin: 48px auto 80px;
  padding: 20px 24px;
  border: 1px solid #1f1f1f;
  background: #191919;
  color: var(--dim);
  text-align: center;
}

/* ---------- Media ---------- */

.page-title {
  margin: 72px 0 40px;
  font-family: var(--sans);
  font-size: 32px;
  font-weight: 400;
  text-align: center;
}

.news-list {
  max-width: 774px;
  margin: 0 auto 80px;
  padding-inline: 24px;
}

.news-list ul { margin: 0; padding-left: 20px; color: var(--muted); }

.news-list li { margin-bottom: 2px; }

.news-list a { color: var(--text); text-decoration: underline; }

.news-list a:hover { text-decoration: none; }

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

.contact-wrap {
  max-width: 774px;
  margin: 48px auto 80px;
  padding-inline: 24px;
}

.contact-wrap h1 {
  margin: 0 0 32px;
  font-family: var(--sans);
  font-size: 22px;
  font-weight: 400;
}

.field { margin-bottom: 24px; }

.field label {
  display: block;
  margin-bottom: 8px;
  color: var(--placeholder);
}

.field input,
.field textarea {
  width: 100%;
  padding: 8px;
  border-radius: 4px;
  background: var(--black);
  color: var(--text);
  font: inherit;
}

.field input { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; }

.field textarea { min-height: 150px; resize: vertical; border: 1px solid var(--line); }

.field ::placeholder { color: var(--placeholder); }

.btn-primary {
  display: inline-block;
  width: 100%;
  padding: 16px;
  border: 0;
  background: var(--text);
  color: var(--black);
  font: inherit;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  text-align: center;
  cursor: pointer;
}

/* ---------- Social links ---------- */

.social {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin: 0 0 64px;
  padding: 0 24px;
  list-style: none;
}

.social a {
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: #fff;
  font-size: 18px;
  line-height: 1;
  transition: opacity .15s ease;
}

.social a:hover { opacity: .85; }


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

.site-footer {
  padding: 24px;
  color: var(--dim);
  font-size: 13px;
  letter-spacing: 1.8px;
  text-align: center;
  text-transform: uppercase;
}

