/* ==========================================================================
   Durham Retro Racquet Classic 2026
   Doug’s mockup language, 2026 copy
   ========================================================================== */

:root {
  --black: #292929;
  --red: #fc3517;
  --yellow: #ffd110;
  --white: #ffffff;
  --cream: #fcfbf4;
  --ink: #292929;
  --display: Besley, "Iowan Old Style", Georgia, serif;
  --sans: "Public Sans", Helvetica, Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--black);
}

body {
  margin: 0;
  background-color: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
}

/* Safari 26+ tints browser chrome from a fixed element at the top, not theme-color. */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background-color: var(--black);
  pointer-events: none;
  z-index: 9;
}

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

a {
  color: var(--red);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1,
h2 {
  font-family: var(--display);
  font-weight: 600;
  font-synthesis: none;
  letter-spacing: 0;
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(30px, 5.2vw, 52px);
  line-height: 1.05;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.1;
  color: var(--red);
}

p {
  margin-top: 0;
  margin-bottom: 14px;
  font-size: 18px;
  line-height: 1.6;
}

.container {
  width: 100%;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}

.container--narrow {
  max-width: 640px;
}

/* --- Navigation --- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background-color: var(--black);
  padding: 14px 20px 0;
}

.nav-shell {
  width: 100%;
  max-width: 1140px;
  margin-left: auto;
  margin-right: auto;
}

.nav-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 88px;
}

.logo-link {
  z-index: 5;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.logo-link:hover {
  text-decoration: none;
}

.logo {
  width: 200px;
  height: auto;
  padding-bottom: 12px;
}

.menu-toggle {
  display: none;
}

.nav-menu {
  width: 100%;
}

.nav-menu-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-link {
  display: inline-block;
  padding: 8px 12px;
  color: var(--white);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.2;
  text-decoration: none;
}

.nav-link:hover {
  color: var(--yellow);
  text-decoration: none;
}

.button-primary {
  display: inline-block;
  border: 0;
  background-color: var(--red);
  color: var(--white);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  padding: 10px 18px;
  border-radius: 4px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.button-primary:hover {
  background-color: #d22c13;
  color: var(--white);
  text-decoration: none;
  transform: translateY(-1px);
}

.button-primary--lg {
  padding: 14px 28px;
  font-size: 18px;
}

/* --- Hero --- */

.hero {
  background-color: var(--black);
  color: var(--white);
  padding: 56px 30px 0;
  position: relative;
}

.hero .container {
  text-align: center;
  max-width: 720px;
  padding-bottom: 40px;
}

.hero-kicker {
  margin-bottom: 12px;
  color: var(--yellow);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero h1 {
  color: var(--yellow);
}

.hero-details {
  margin: 10px auto 28px;
  font-family: var(--display);
  font-weight: 400;
  font-synthesis: none;
  font-size: clamp(22px, 2.6vw, 26px);
  line-height: 1.4;
  color: var(--cream);
}

.hero-details a {
  color: var(--cream);
}

.hero-details a:hover {
  color: var(--yellow);
  text-decoration: none;
}

.hero-date {
  display: block;
  margin-top: 8px;
}

.hero-lede {
  max-width: 46ch;
  margin: 0 auto 28px;
  color: #f3f3f3;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.hero-note {
  margin: 0;
  color: #c8c8c8;
  font-size: 14px;
}

/* --- Paper rips --- */

.rip {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
  position: relative;
  z-index: 2;
}

.rip--hero {
  margin-top: -2px;
  height: 96px;
  object-fit: cover;
  object-position: top center;
}

.rip--footer {
  margin-bottom: -1px;
}

/* --- Sections --- */

.section {
  padding: 72px 30px;
}

.section p a:hover {
  text-decoration: underline;
}

.section--register {
  text-align: center;
  padding-bottom: 120px;
}

.section--register p {
  margin-bottom: 24px;
}

.section--shirts {
  background-color: var(--black);
  color: var(--white);
}

.section--shirts h2 {
  color: var(--yellow);
}

.section--shirts p {
  color: #f3f3f3;
}

.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.split-layout--reverse .split-layout__media {
  order: 1;
}

.split-layout--reverse .split-layout__content {
  order: 2;
}

/* --- Polaroids --- */

.polaroid {
  position: relative;
  margin: 16px auto 0;
  padding: 14px 14px 48px;
  max-width: 420px;
  background: var(--white);
  box-shadow: 0 10px 28px rgba(41, 41, 41, 0.18);
}

.polaroid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.polaroid--product img {
  aspect-ratio: 1;
  object-position: center top;
}

.polaroid::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: -12px;
  left: 50%;
  width: 96px;
  height: 32px;
  background: rgba(201, 176, 72, 0.45);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28), 0 1px 3px rgba(41, 41, 41, 0.12);
  transform: translateX(-50%) rotate(-3deg);
}

.polaroid--right {
  transform: rotate(2.4deg);
}

.polaroid--left {
  transform: rotate(-2.2deg);
}

.polaroid--left::before {
  transform: translateX(-50%) rotate(4deg);
}

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

#contact h2 {
  text-align: center;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  color: var(--ink);
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 400;
}

.form-group input,
.form-group textarea {
  width: 100%;
  border: 1px solid #d3cbbd;
  background: var(--white);
  padding: 12px 14px;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.4;
  color: var(--ink);
  border-radius: 2px;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: 0;
  border-color: var(--red);
}

.form-group textarea {
  resize: vertical;
}

/* --- Footer --- */

.site-footer {
  background-color: var(--red);
  padding-top: 8px;
  text-align: center;
  color: var(--white);
}

.site-footer > .container {
  padding: 40px 30px 100px;
}

.footer-thanks {
  margin-bottom: 44px;
  font-family: var(--display);
  font-weight: 600;
  font-synthesis: none;
  font-size: 22px;
  color: var(--white);
}

.footer-logos {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  justify-items: center;
  align-items: center;
  gap: 28px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-logos a {
  display: block;
  line-height: 0;
}

.footer-logos a:hover {
  text-decoration: none;
  opacity: 0.85;
}

.footer-logos li {
  min-width: 0;
}

.footer-logos img {
  height: 48px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.sub-footer {
  width: 100%;
  background-color: #3a1210;
  padding: 18px 40px;
}

.sub-footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px 32px;
  max-width: 1140px;
  margin-left: auto;
  margin-right: auto;
}

.sub-footer__credit {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 12px;
  margin: 0;
  color: var(--white);
  font-size: 13px;
  line-height: 1.3;
}

.sub-footer__credit a {
  display: block;
  line-height: 0;
}

.sub-footer__credit a:hover {
  text-decoration: none;
  opacity: 0.85;
}

.sub-footer__credit img {
  height: 22px;
  width: auto;
}

.sub-footer__copy {
  margin: 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  text-align: right;
}

.sub-footer__copy a {
  color: var(--yellow);
}

/* --- Utility --- */

.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;
}

/* --- Responsive --- */

@media screen and (max-width: 991px) {
  .container {
    max-width: 728px;
  }

  .nav-container {
    justify-content: space-between;
    min-height: 64px;
  }

  .logo-link {
    position: relative;
    left: auto;
    transform: none;
  }

  .logo {
    width: 160px;
  }

  .menu-toggle {
    z-index: 8;
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: transparent;
    border: 0;
    cursor: pointer;
  }

  .menu-toggle__bar {
    width: 22px;
    height: 2px;
    background-color: var(--yellow);
    border-radius: 2px;
  }

  .nav-menu {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 70px;
    z-index: 7;
  }

  .nav-menu[data-open="true"] {
    display: block;
  }

  .nav-menu-inner {
    background-color: var(--black);
    border: 1px solid rgba(255, 209, 16, 0.35);
    border-radius: 4px;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    padding: 20px;
  }
}

@media screen and (max-width: 767px) {
  .hero {
    padding: 40px 16px 0;
  }

  .hero .container {
    padding-bottom: 28px;
  }

  .section {
    padding: 56px 16px;
  }

  .section--register {
    padding-bottom: 100px;
  }

  .nav-menu-inner {
    flex-direction: column;
    align-items: flex-start;
    padding-bottom: 28px;
  }

  .nav-links {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-link {
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .mobile-margin-top-10 {
    margin-top: 10px;
  }

  .split-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .split-layout--reverse .split-layout__media,
  .split-layout--reverse .split-layout__content {
    order: initial;
  }

  .polaroid,
  .polaroid--right,
  .polaroid--left {
    transform: rotate(1.2deg);
    max-width: 360px;
  }

  .site-footer > .container {
    padding: 20px 16px 56px;
  }

  .footer-logos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 16px;
  }

  .footer-logos img {
    height: auto;
    max-height: 36px;
  }

  .sub-footer {
    padding: 16px 20px;
  }

  .sub-footer__inner {
    flex-direction: column;
    align-items: center;
  }

  .sub-footer__credit {
    justify-content: center;
  }

  .sub-footer__copy {
    text-align: center;
  }
}

@media screen and (max-width: 479px) {
  .container {
    max-width: none;
  }
}

.mike {
  position: relative;
}