:root {
  --ink: #111;
  --ink-soft: #444;
  --muted: #8a857e;
  --line: #e2ded8;
  --paper: #ffffff;
  --paper-alt: #f3f1ee;
  --hero: #0d0d0d;
  --accent: #e7e3de;
  --link: #1a5fb4;
  --max: 1120px;
  --read: 760px;
  --font-head: "League Spartan", Arial, Helvetica, sans-serif;
  --font-body: Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
}
img { max-width: 100%; height: auto; }
a { color: var(--link); }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 500; line-height: 1.2; margin: 1.6em 0 .5em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.read { max-width: var(--read); }

/* Header */
/* White bar, centred logo, menu button on the left, small notch pointing down */
.site-header { position: relative; z-index: 10; background: var(--paper); }
.site-header .bar { position: relative; display: flex; align-items: center; justify-content: center; min-height: 96px; padding: 0 64px; max-width: 1500px; margin: 0 auto; }
.site-header::after { content: ""; position: absolute; left: 50%; bottom: -14px; transform: translateX(-50%); border: 15px solid transparent; border-bottom: 0; border-top: 14px solid var(--paper); }
.logo img { display: block; height: 48px; width: auto; }
.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.nav-btn { position: absolute; left: clamp(12px, 9vw, 160px); top: 50%; transform: translateY(-50%); cursor: pointer; padding: 10px; font-size: 26px; line-height: 1; color: #555; user-select: none; }
.nav-btn:hover { color: #000; }

/* Slide-out menu */
.drawer { position: fixed; top: 0; left: 0; bottom: 0; width: min(320px, 85vw); background: #1a1a1a; color: #fff; padding: 72px 32px 32px; transform: translateX(-100%); transition: transform .25s ease; z-index: 30; }
.drawer ul { list-style: none; margin: 0; padding: 0; }
.drawer a { display: block; color: #fff; text-decoration: none; font-size: 18px; letter-spacing: .5px; padding: 14px 0; border-bottom: 1px solid #333; }
.drawer a:hover, .drawer a.active { color: var(--accent); }
.nav-close { position: absolute; top: 18px; right: 22px; font-size: 34px; line-height: 1; cursor: pointer; }
.scrim { position: fixed; inset: 0; background: rgba(0,0,0,.45); opacity: 0; pointer-events: none; transition: opacity .25s; z-index: 20; }
.nav-toggle:checked ~ .drawer { transform: none; }
.nav-toggle:checked ~ .scrim { opacity: 1; pointer-events: auto; }
.nav-toggle:focus-visible ~ .bar .nav-btn { outline: 2px solid #000; }

@media (max-width: 720px) {
  .site-header .bar { min-height: 72px; padding: 0 48px 0 56px; }
  .nav-btn { left: 6px; }
  .logo img { height: auto; max-height: 34px; max-width: 100%; }
}

/* Buttons */
.btn { display: inline-block; background: var(--accent); color: #000; text-decoration: none; text-transform: uppercase; font-weight: 700; font-size: 14px; letter-spacing: 1px; padding: 14px 26px; border: 0; cursor: pointer; font-family: var(--font-body); }
.btn:hover { background: #d9d3cb; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #333; }

/* Hero */
/* Same light 24% shade and close crop of the photo as the GoDaddy version */
.hero {
  position: relative;
  color: #fff;
  min-height: max(560px, calc(100vh - 96px));
  display: flex; align-items: center;
  background-color: #555;
  background-image: linear-gradient(rgba(0,0,0,.24), rgba(0,0,0,.24)), url("/images/hero.jpg");
  background-repeat: no-repeat;
  background-size: cover, 145% auto;
  background-position: center, 0 14%;
}
.hero .wrap { width: 100%; max-width: 1500px; padding: 60px clamp(20px, 12vw, 250px); position: relative; z-index: 1; }
.hero p { font-size: clamp(18px, 1.5vw, 24px); letter-spacing: 1px; margin: 0 0 18px; text-shadow: 0 2px 6px rgba(0,0,0,.45); }
.hero h1 { font-size: clamp(42px, 5vw, 80px); line-height: 1.15; max-width: 6.9em; margin: 0 0 30px; color: #fff; font-weight: 600; text-shadow: 0 3px 8px rgba(0,0,0,.45); }
.hero .btn { font-size: 15px; padding: 18px 34px; }
/* When the window is taller than the zoomed photo, fall back to filling the area */
@media (max-aspect-ratio: 4/3) { .hero { background-size: cover, cover; background-position: center, 30% 20%; } }
@media (max-width: 720px) { .hero { min-height: 480px; } }

/* Sections */
.section { padding: 70px 0; }
.section-alt { background: var(--paper-alt); }
.section-title { text-align: center; color: var(--muted); font-size: 30px; margin: 0 0 40px; }
.split { display: flex; gap: 48px; align-items: center; }
.split > * { flex: 1 1 0; }
@media (max-width: 720px) { .split { flex-direction: column; } }
.cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.cols > div { padding: 0 28px; border-left: 1px solid var(--line); }
.cols > div:first-child { border-left: 0; }
.cols h3 { text-align: center; margin-top: 0; }
@media (max-width: 720px) { .cols { grid-template-columns: 1fr; gap: 28px; } .cols > div { border-left: 0; padding: 0; } }

/* Page headings */
.page-head { padding: 56px 0 8px; }
.page-head h1 { margin: 0; font-size: clamp(32px, 5vw, 44px); }

/* Warm background on the Articles pages, as on the GoDaddy site */
body.page-articles { background: var(--accent); }
body.page-articles main { padding-bottom: 24px; }
.page-articles .page-head { text-align: center; padding-top: 64px; }
.page-articles .page-head h1 { font-weight: 600; }
/* All text on the Articles list and article pages uses Roboto, including titles and headings */
.page-articles main h1, .page-articles main h2, .page-articles main h3, .page-articles main h4 { font-family: var(--font-body); font-weight: 700; }
.page-articles .article-list li, .page-articles .more, .page-articles .article-body figure img { border-color: #cfc6bc; }
.page-articles .article-list .thumb { background: #b0ada9; }
.page-articles .date, .page-articles .article-head .date { color: #6f6a63; }

/* Article list */
.article-tools { display: flex; gap: 12px; flex-wrap: wrap; margin: 24px 0 8px; }
.article-tools input { flex: 1 1 260px; font: inherit; padding: 10px 14px; border: 1px solid #ccc; border-radius: 4px; }
.article-tools select { font: inherit; padding: 10px; border: 1px solid #ccc; border-radius: 4px; background: #fff; }
.article-list { list-style: none; padding: 0; margin: 0 0 40px; }
.article-list li { display: flex; gap: 20px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.article-list .thumb { flex: 0 0 120px; height: 90px; overflow: hidden; background: var(--paper-alt); border-radius: 4px; }
.article-list .thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.article-list h2 { margin: 2px 0 6px; font-size: 22px; }
.article-list h2 a { color: var(--ink); text-decoration: none; }
.article-list h2 a:hover { text-decoration: underline; }
.article-list .date { color: var(--muted); font-size: 14px; }
.article-list p { margin: 4px 0 0; color: var(--ink-soft); }
.no-results { color: var(--muted); display: none; }
@media (max-width: 520px) { .article-list .thumb { flex-basis: 80px; height: 64px; } }

/* Single article */
.back { display: inline-block; margin-top: 32px; font-size: 15px; text-decoration: none; }
.article-head h1 { margin: 12px 0 6px; font-size: clamp(28px, 4.5vw, 40px); }
.article-head .date { color: var(--muted); font-size: 15px; }
.article-body { margin: 28px 0 48px; }
.article-body p { margin: 0 0 1em; }
.article-body h2 { font-size: 26px; }
.article-body h3 { font-size: 22px; }
.article-body h4 { font-size: 19px; font-weight: 600; }
.article-body figure { margin: 18px 0 26px; }
.article-body figure img { border: 1px solid var(--line); border-radius: 4px; display: block; }
.article-body ul, .article-body ol { padding-left: 1.4em; }
.article-body blockquote { margin: 1em 0; padding: 4px 18px; border-left: 4px solid var(--accent); color: var(--ink-soft); }
.article-body table { border-collapse: collapse; width: 100%; margin: 1em 0; display: block; overflow-x: auto; }
.article-body td, .article-body th { border: 1px solid var(--line); padding: 6px 10px; }
.more { border-top: 1px solid var(--line); padding: 28px 0 56px; }
.more h2 { font-size: 20px; margin-top: 0; }
.more ul { padding-left: 1.2em; }

/* FAQ */
.faq h2 { font-size: 22px; margin-top: 36px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; padding-bottom: 64px; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }
.form label { display: block; font-size: 15px; margin: 14px 0 4px; }
.form input, .form textarea { width: 100%; font: inherit; padding: 10px 12px; border: 1px solid #ccc; border-radius: 4px; }
.form textarea { min-height: 110px; }
.form .btn { margin-top: 18px; }
.form-note { font-size: 14px; color: var(--muted); }
.form-status { margin-top: 12px; font-weight: 700; }
.map { width: 100%; height: 260px; border: 0; margin-top: 12px; }

/* Footer */
.site-footer { background: var(--hero); color: #bbb; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; text-align: center; padding: 28px 20px; }
