/* WilliamLoyd.com — draft parent-company site
   Times New Roman only. Navy and white palette. */

:root {
  --navy: #152238;
  --navy-deep: #0c1828;
  --navy-mid: #243656;
  --navy-soft: #3a4d6b;
  --white: #ffffff;
  --paper: #f3f5f8;
  --text: #152238;
  --muted: #4a5568;
  --rule: #c5cdd8;
  --link: #1a3a6b;
  --link-hover: #0c1828;
  --focus: #c4a35a;
  --measure: 70rem;
  --pad: 1.25rem;
  --radius: 0.25rem;
  --font: "Times New Roman", Times, serif;
}

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

html {
  font-size: 112.5%;
  scroll-behavior: smooth;
}

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

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

a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

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

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

h1,
h2,
h3 {
  font-family: var(--font);
  font-weight: 700;
  line-height: 1.25;
  color: var(--navy-deep);
  margin: 0 0 0.75rem;
}

h1 {
  font-size: 2rem;
  letter-spacing: 0.01em;
}

h2 {
  font-size: 1.45rem;
}

h3 {
  font-size: 1.15rem;
}

p {
  margin: 0 0 1rem;
}

p:last-child {
  margin-bottom: 0;
}

em {
  font-style: italic;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  z-index: 100;
  background: var(--white);
  color: var(--navy);
  padding: 0.5rem 0.85rem;
  font-family: var(--font);
}

.skip-link:focus {
  top: 0.75rem;
}

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

.site-header {
  background: var(--navy-deep);
  color: var(--white);
}

.header-inner {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0.85rem var(--pad);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
}

.brand {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  text-decoration: none;
  color: var(--white);
}

.brand:hover,
.brand:focus-visible {
  color: var(--white);
}

.brand-name {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-tag {
  font-size: 0.95rem;
  font-style: italic;
  color: #d7dde6;
}

.draft-mark {
  display: inline-block;
  margin: 0;
  padding: 0.1rem 0.5rem;
  border: 1px solid #e8d5a3;
  color: #e8d5a3;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.4;
}

.nav-toggle {
  position: absolute;
  left: -9999px;
}

.nav-toggle-label {
  display: none;
  cursor: pointer;
  width: 2.5rem;
  height: 2.25rem;
  border: 1px solid #8a97ab;
  border-radius: var(--radius);
  position: relative;
}

.nav-toggle-label .nav-bars,
.nav-toggle-label .nav-bars::before,
.nav-toggle-label .nav-bars::after {
  position: absolute;
  left: 0.5rem;
  right: 0.5rem;
  height: 2px;
  background: var(--white);
  content: "";
}

.nav-toggle-label .nav-bars {
  top: 50%;
  margin-top: -1px;
}

.nav-toggle-label .nav-bars::before {
  top: -0.45rem;
}

.nav-toggle-label .nav-bars::after {
  top: 0.45rem;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  color: var(--white);
  text-decoration: none;
  padding: 0.2rem 0;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover {
  color: #e8d5a3;
  border-bottom-color: #e8d5a3;
}

.site-nav a[aria-current="page"] {
  color: #e8d5a3;
  border-bottom-color: #e8d5a3;
}

/* ----- Layout ----- */

.site-main {
  flex: 1 0 auto;
}

.wrap {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 2.25rem var(--pad) 3rem;
}

.hero {
  background: var(--navy);
  color: var(--white);
}

.hero .wrap {
  display: grid;
  grid-template-columns: minmax(12rem, 18rem) 1fr;
  gap: 2rem 2.5rem;
  align-items: center;
  padding-top: 2.5rem;
  padding-bottom: 2.75rem;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 0.35rem;
}

.hero .lede {
  font-size: 1.15rem;
  font-style: italic;
  color: #d7dde6;
  margin-bottom: 1.15rem;
}

.hero p {
  color: #eef1f5;
}

.hero-photo {
  margin: 0;
}

.hero-photo img,
.about-photo img {
  width: 100%;
  border: 3px solid var(--white);
  background: var(--navy-deep);
}

.hero-photo figcaption,
.about-photo figcaption {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  font-style: italic;
  color: #c5cdd8;
  text-align: center;
}

.about-photo figcaption {
  color: var(--muted);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin-top: 1.35rem;
}

.btn {
  display: inline-block;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.3;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius);
  text-decoration: none;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--white);
  color: var(--navy-deep);
  border-color: var(--white);
}

.btn-primary:hover {
  background: #e8d5a3;
  border-color: #e8d5a3;
  color: var(--navy-deep);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: #d7dde6;
}

.btn-secondary:hover {
  background: var(--white);
  color: var(--navy-deep);
}

/* ----- Sections and cards ----- */

.section-head {
  margin-bottom: 1.35rem;
}

.section-head p {
  color: var(--muted);
  max-width: 42rem;
}

.card-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.15rem;
}

.card-grid .card {
  flex: 1 1 16.5rem;
  max-width: 22rem;
}

@media (min-width: 50rem) {
  .card-grid .card {
    flex: 0 1 calc((100% - 2.3rem) / 3);
    max-width: calc((100% - 2.3rem) / 3);
  }
}

.card,
.product {
  background: var(--white);
  border: 1px solid var(--rule);
  padding: 1.2rem 1.25rem 1.3rem;
}

.card h3,
.product h2 {
  margin-top: 0;
}

.price {
  font-weight: 700;
  color: var(--navy);
  margin: 0.15rem 0 0.7rem;
}

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

.placeholder-note {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  font-style: italic;
  margin-top: 0.2rem;
}

.band {
  background: var(--paper);
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(12rem, 17rem) 1fr;
  gap: 2rem 2.5rem;
  align-items: start;
}

.about-photo {
  margin: 0;
  position: sticky;
  top: 1rem;
}

.bio p {
  margin-bottom: 1rem;
}

.product + .product {
  margin-top: 1.15rem;
}

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

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2rem 2.5rem;
  align-items: start;
}

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

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

.contact-list span {
  display: block;
  font-weight: 700;
  color: var(--navy);
}

.form-note {
  background: var(--paper);
  border-left: 3px solid var(--navy);
  padding: 0.75rem 1rem;
  margin-bottom: 1.15rem;
  color: var(--text);
}

.contact-form label {
  display: block;
  font-weight: 700;
  margin: 0 0 0.3rem;
}

.contact-form .field {
  margin: 0 0 1rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.4;
  color: var(--text);
  background: var(--white);
  border: 1px solid var(--navy-soft);
  border-radius: var(--radius);
  padding: 0.5rem 0.65rem;
}

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

.contact-form button {
  font-family: var(--font);
  font-size: 1rem;
  background: var(--navy);
  color: var(--white);
  border: 1px solid var(--navy);
  border-radius: var(--radius);
  padding: 0.55rem 1.15rem;
  cursor: default;
}

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

.site-footer {
  background: var(--navy-deep);
  color: #d7dde6;
  margin-top: auto;
}

.footer-inner {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 1.5rem var(--pad) 1.75rem;
  display: grid;
  gap: 0.75rem;
}

.site-footer a {
  color: #e8d5a3;
}

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

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.15rem;
}

.footer-nav a {
  text-decoration: none;
}

.footer-nav a:hover,
.footer-nav a[aria-current="page"] {
  text-decoration: underline;
}

.copyright {
  font-size: 0.9rem;
  margin: 0;
}

/* ----- Responsive ----- */

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

  .header-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    column-gap: 0.75rem;
    padding-top: 0.7rem;
    padding-bottom: 0.7rem;
  }

  .brand {
    grid-column: 1;
    grid-row: 1;
  }

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

  .site-nav {
    grid-column: 1 / -1;
  }

  .site-nav {
    display: none;
    width: 100%;
    flex-basis: 100%;
  }

  .nav-toggle:checked ~ .site-nav,
  .nav-toggle:focus ~ .site-nav {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 0.25rem 0 0.5rem;
  }

  .site-nav a {
    display: block;
    padding: 0.45rem 0;
  }

  .hero .wrap,
  .about-layout,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-photo,
  .about-photo {
    max-width: 18rem;
    margin-left: auto;
    margin-right: auto;
  }

  .about-photo {
    position: static;
  }

  h1 {
    font-size: 1.7rem;
  }
}

@media print {
  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  body {
    background: var(--white);
  }

  .skip-link,
  .nav-toggle,
  .nav-toggle-label {
    display: none !important;
  }

  .site-nav {
    display: block !important;
  }

  .site-nav ul {
    flex-direction: row;
  }

  a {
    text-decoration: none;
  }

  .about-photo {
    position: static;
  }
}

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