/* Maine Tech Week — site styles.
   Design tokens migrated from the Elementor kit of the WordPress build:
   white canvas, black ink, brand orange #F59E2C (20%-alpha tint for bands),
   Instrument Sans everywhere, pill buttons that invert on hover. */

/* ── Fonts (self-hosted Instrument Sans variable, migrated from the WP build) ── */
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 100%;
  font-display: swap;
  src: url('/assets/fonts/instrumentsans-f587e727.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 100%;
  font-display: swap;
  src: url('/assets/fonts/instrumentsans-40fe78bf.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Instrument Sans';
  font-style: italic;
  font-weight: 400 700;
  font-stretch: 100%;
  font-display: swap;
  src: url('/assets/fonts/instrumentsans-a98c6e59.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Instrument Sans';
  font-style: italic;
  font-weight: 400 700;
  font-stretch: 100%;
  font-display: swap;
  src: url('/assets/fonts/instrumentsans-8b11717f.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ── Tokens ── */
:root {
  --color-primary: #F59E2C;
  --color-secondary: #000000;
  --color-text: #000000;
  --color-accent: rgba(245, 158, 44, 0.20);
  --color-hover: #4D4D4D;
  --color-white: #FFFFFF;
  --font-sans: 'Instrument Sans', ui-sans-serif, system-ui, sans-serif;
  --content-max: 1140px;
  --radius-pill: 30px;
  --section-pad: 100px;
  --header-h: 90px;
}

/* ── Base ── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 20px;
  line-height: 30px;
  font-weight: 400;
  color: var(--color-text);
  background: var(--color-white);
  /* Sticky footer: short pages (404, empty lists) must not leave a white
     band under the footer. */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1 0 auto; }
.site-footer { margin-top: auto; }
img { max-width: 100%; height: auto; }
a { color: inherit; }
h1 { font-size: 32px; font-weight: 700; text-transform: uppercase; line-height: 1.25; margin: 0 0 0.5em; }
h2 { font-size: 20px; font-weight: 700; line-height: 1.3; margin: 1em 0 0.5em; }
h3 { font-size: 24px; font-weight: 500; text-transform: uppercase; margin: 1em 0 0.5em; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ── Layout primitives ── */
.container { max-width: var(--content-max); margin: 0 auto; padding: 0 20px; }
.container--narrow { max-width: 820px; }
.container--form { max-width: 760px; }
.center { text-align: center; }
.section { padding: var(--section-pad) 0; }
.section--tight { padding: 50px 0; }
.section__heading { font-size: 32px; font-weight: 700; text-align: center; margin: 0 0 0.75em; }
.statement {
  font-size: 32px; font-weight: 500; line-height: 48px;
  text-transform: uppercase; text-align: center; margin: 0 0 1em;
}
.subheading {
  font-size: 32px; font-weight: 500; line-height: 48px;
  text-align: center; margin: 0 auto 1em; max-width: 900px;
}
.prose { width: 65%; margin: 0 auto; }
.prose h2 { font-size: 20px; font-weight: 700; margin-top: 1.6em; }
.prose ul { padding-left: 1.3em; }
.center .prose, .prose.center { text-align: center; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--color-primary); color: var(--color-secondary);
  font-family: var(--font-sans); font-size: 20px; font-weight: 700;
  line-height: 20px; text-transform: uppercase; letter-spacing: -0.9px;
  text-decoration: none; border: 0; cursor: pointer;
  border-radius: var(--radius-pill); padding: 10px 30px;
  transition: background 0.2s ease, color 0.2s ease;
}
.btn:hover { background: var(--color-secondary); color: var(--color-primary); }
.btn--inverse { background: var(--color-secondary); color: var(--color-primary); }
.btn--inverse:hover { background: var(--color-hover); color: var(--color-accent); }
.btn--square { border-radius: 0; }
.btn--form { background: var(--color-secondary); color: #F99F1F; border-radius: 21px; }
.btn--form:hover { background: var(--color-hover); color: var(--color-white); }
.button-row { display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; margin: 1.5em 0 0.5em; }
.btn svg { flex: none; }

/* ── Header ── */
.site-header { background: var(--color-accent); position: relative; z-index: 10; }
.site-header__inner {
  max-width: var(--content-max); margin: 0 auto; padding: 0 20px;
  min-height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
}
.site-header__logo { display: flex; align-items: center; }
.site-header__logo img { width: 91px; height: auto; }
.site-nav { display: flex; gap: 32px; }
.site-nav a {
  color: var(--color-text); text-decoration: none; font-size: 20px;
  transition: color 0.15s ease;
}
.site-nav a:hover, .site-nav a.is-active { color: var(--color-hover); }
.site-header__burger { display: none; }

/* ── Hero (home, 2026 redesign: white field, big lockup left, meta right) ── */
.hero { background: var(--color-white); }
.hero__inner {
  max-width: var(--content-max); margin: 0 auto;
  padding: 40px 20px;
  min-height: 590px;
  display: flex; align-items: center; gap: 40px;
}
.hero__logo, .hero__meta { flex: 1 1 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.hero__logo img { width: min(640px, 100%); height: auto; }
.hero__meta h1 { margin: 0; }
.hero__dates { font-size: 24px; font-weight: 500; text-transform: uppercase; margin: 0.25em 0 0; }

/* ── Merch band (home) ── */
.merch__inner { display: flex; align-items: center; gap: 50px; }
.merch__image { flex: 1 1 45%; }
.merch__image img { width: 100%; border-radius: 8px; }
.merch__body { flex: 1 1 55%; }
.merch__heading h1 { font-size: 32px; text-transform: none; line-height: 1.3; }
.merch__buttons { display: flex; gap: 20px; flex-wrap: wrap; }

/* ── "We Are Maine Tech Week" speaker gallery (home) ── */
.home-gallery {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
  margin: 30px 0 40px;
}
.home-gallery__tile {
  position: relative; display: block; aspect-ratio: 3 / 2; overflow: hidden;
}
.home-gallery__tile img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.home-gallery__name {
  position: absolute; inset: 0; display: flex; align-items: flex-end;
  padding: 12px; color: var(--color-white); font-size: 16px; font-weight: 700;
  background: rgba(0, 0, 0, 0.5); opacity: 0; transition: opacity 0.4s ease;
}
.home-gallery__tile:hover .home-gallery__name { opacity: 1; }

/* ── Major sponsors logo band (home) ── */
.sponsor-band {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 10px; margin-top: 30px;
}
.sponsor-band__logo {
  height: 120px; display: flex; align-items: center; justify-content: center;
  padding: 10px;
}
.sponsor-band__logo img { max-height: 100%; max-width: 220px; object-fit: contain; }

/* ── Logo divider (schedule page) ── */
.logo-divider {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 70%; margin: 24px auto;
}
.logo-divider span { flex: 1; height: 2px; background: var(--color-primary); }
.logo-divider img { width: 65px; height: auto; flex: none; }

/* ── Schedule listing (migrated from the WP [mtw_schedule] shortcode) ── */
.mtw-schedule { margin: 1rem 0; }
.mtw-day {
  margin: 2rem 0 1.5rem; font-size: clamp(25px, 3vw, 32px); font-weight: 700;
  padding-top: 30px; position: relative; padding-bottom: 0.75rem;
}
.mtw-day::after {
  content: ""; position: absolute; left: 0; width: 120px; height: 2px; bottom: 0;
  background: var(--color-primary); border-radius: 2px;
}
.mtw-slot { margin: 0 0 1.25rem 0; }
.mtw-slot-time { font-weight: 400; margin: 0.25rem 0 0.5rem 0; }
.mtw-session { margin-left: 1.25rem; }
.mtw-session-title { font-weight: 700; margin: 0.25rem 0; }
.mtw-session-venue { font-size: 16px; color: var(--color-hover); margin: 0 0 0.25rem; }
.mtw-session-desc { font-size: 16px; color: var(--color-hover); margin: 0.25rem 0 0.5rem; max-width: 62ch; }
.mtw-speakers { margin: 0 0 0.5rem 1rem; font-size: 16px; }
.mtw-speakers a { color: var(--color-primary); }
.mtw-speakers a:hover { color: var(--color-hover); }
.mtw-speaker-line { opacity: 0.9; }

/* ── Archive shell (speakers/sponsors): white→orange gradient + sticky rail ── */
.archive {
  display: flex;
  background: linear-gradient(90deg, var(--color-white) 0%, var(--color-white) 66.66%, var(--color-primary) 66.66%);
}
.archive__content { flex: 1 1 66.66%; padding: var(--section-pad) 40px; }
.archive__rail { flex: 1 1 33.33%; background: var(--color-primary); padding: 40px; }
.archive__rail img { position: sticky; top: 40px; width: 100%; }

/* ── Speaker cards ── */
.speaker-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 32px 20px; margin-top: 40px;
}
.speaker-card {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  text-decoration: none; text-align: center;
}
.speaker-card__photo {
  width: 170px; height: 170px; border-radius: 50%; object-fit: cover;
  border: 1px solid var(--color-primary);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease;
  margin-bottom: 10px;
  background: var(--color-accent);
  display: block;
}
.speaker-card:hover .speaker-card__photo { transform: scale(1.02); }
.speaker-card__name {
  font-size: 20px; font-weight: 700; text-transform: uppercase;
  line-height: 20px; letter-spacing: -0.9px;
}
.speaker-card__title { font-size: 20px; line-height: 1.3; }
.speaker-card__company { font-size: 16px; color: var(--color-primary); }

/* ── Speaker detail ── */
.speaker-single__inner { display: flex; gap: 60px; align-items: flex-start; }
.speaker-single__photo { flex: 1 1 45%; }
.speaker-single__photo img { width: 100%; border-radius: 24px; }
.speaker-single__body { flex: 1 1 55%; display: flex; flex-direction: column; gap: 10px; }
.speaker-single__company { font-size: 16px; text-transform: uppercase; margin: 0; }
.speaker-single__name { color: var(--color-primary); margin: 0; }
.speaker-single__title { font-size: 20px; font-weight: 700; margin: 0; }
.speaker-single__bio p { margin: 0 0 1em; }
.speaker-single__link a { color: var(--color-secondary); }
.speaker-single__link a:hover { color: var(--color-primary); }
.speaker-single__divider { border: 0; border-top: 2px solid var(--color-accent); margin: 20px 0; width: 100%; }
.speaker-session { margin-bottom: 12px; }
.speaker-session__title { font-weight: 700; }
.speaker-session__when { font-size: 16px; color: var(--color-hover); }

/* ── Sponsor cards ── */
.sponsor-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 40px 24px; margin-top: 40px;
}
.sponsor-card {
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  gap: 16px; text-decoration: none; text-align: center;
  transition: transform 0.2s ease;
}
.sponsor-card:hover { transform: translateY(-5px); }
.sponsor-card__logo {
  width: 200px; height: 200px; display: flex; align-items: center; justify-content: center;
  background: var(--color-white); border-radius: 8px; padding: 16px;
}
.sponsor-card__logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.sponsor-card__name { font-size: 20px; font-weight: 700; }

/* ── Contact page ── */
.contact-hero__inner {
  max-width: var(--content-max); margin: 0 auto; padding: 40px 20px;
  min-height: 500px; display: flex; align-items: center; gap: 50px;
}
.contact-hero__logo { flex: 1 1 50%; display: flex; justify-content: center; }
.contact-hero__logo img { width: min(565px, 100%); }
.contact-hero__statement { flex: 1 1 50%; width: auto; margin: 0; }
.info-strip { background: var(--color-accent); }
.info-strip__inner {
  max-width: var(--content-max); margin: 0 auto; padding: 20px;
  min-height: 100px; display: flex; align-items: center; justify-content: space-around;
  gap: 20px; flex-wrap: wrap;
}
.info-strip__city { font-size: 24px; font-weight: 700; text-transform: uppercase; margin: 0; }
.info-strip__dates { font-size: 24px; font-weight: 500; text-transform: uppercase; margin: 0; }

.contact-form { display: flex; flex-direction: column; gap: 20px; }
.contact-form__field { display: flex; flex-direction: column; gap: 6px; }
.contact-form__name { border: 0; padding: 0; margin: 0; }
.contact-form__name legend { font-size: 14px; color: #262626; padding: 0; margin-bottom: 6px; }
.contact-form__name-row { display: flex; gap: 16px; }
.contact-form__name-row > div { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.contact-form__name-row input { width: 100%; }
.contact-form__sublabel { font-size: 13px; color: #7f7f7f; }
.contact-form__field label { font-size: 14px; color: #262626; }
.contact-form__field .req { color: #ff0000; }
.contact-form__field input,
.contact-form__field textarea {
  font-family: var(--font-sans); font-size: 17px; color: #444444;
  border: 1px solid #cccccc; border-radius: 0; padding: 10px 12px; background: var(--color-white);
}
.contact-form__field input:focus,
.contact-form__field textarea:focus { outline: 2px solid var(--color-primary); outline-offset: -1px; }
.contact-form .btn--form { align-self: flex-start; }
#contact-status { min-height: 1.5em; }

/* ── Newsletter bar ── */
/* The author display:flex would otherwise override the UA [hidden] rule,
   leaving the bar visible after dismissal. */
.newsletter-bar[hidden] { display: none; }
.newsletter-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  background: #fdf2e2; border-top: 1px solid var(--color-accent);
  padding: 14px 56px 14px 20px; min-height: 80px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
}
.newsletter-bar__form {
  display: flex; gap: 10px; width: min(600px, 100%); justify-content: center;
}
.newsletter-bar__form input[type="text"],
.newsletter-bar__form input[type="email"] {
  flex: 1 1 33%; font-family: var(--font-sans); font-size: 16px;
  border: 1px solid var(--color-accent); border-radius: 0; padding: 10px 12px;
}
.newsletter-bar__form .btn { font-size: 16px; padding: 10px 20px; }
.newsletter-bar__status { margin: 0; font-size: 14px; min-height: 0; }
.newsletter-bar__status:empty { display: none; }
.newsletter-bar__close {
  position: absolute; top: 8px; right: 12px;
  background: none; border: 0; font-size: 28px; line-height: 1;
  cursor: pointer; color: var(--color-secondary); padding: 4px;
}
.newsletter-bar__close:hover { color: var(--color-hover); }
body { padding-bottom: 0; }

/* ── Footer ── */
.site-footer { background: var(--color-secondary); color: var(--color-white); }
.site-footer__inner {
  max-width: var(--content-max); margin: 0 auto; padding: 30px 20px;
  min-height: 150px; display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.site-footer__brand { display: flex; align-items: center; gap: 20px; }
.site-footer__brand img { width: 91px; height: auto; }
.site-footer__tagline { font-size: 16px; margin: 0; }
.site-footer__links { display: flex; flex-direction: row-reverse; align-items: center; gap: 28px; }
.site-footer__social { display: flex; gap: 14px; }
.site-footer__social a { color: var(--color-white); display: flex; }
.site-footer__social a:hover { color: var(--color-hover); }
.site-footer__nav { display: flex; flex-direction: column; }
.site-footer__nav a {
  color: var(--color-white); text-decoration: none; font-size: 16px; padding: 3px 0;
}
.site-footer__nav a:hover { color: var(--color-hover); }
.site-footer__credit {
  margin: 0; padding: 0 20px 18px; text-align: center; font-size: 13px;
}
.site-footer__credit a { color: rgba(255, 255, 255, 0.65); text-decoration: none; }
.site-footer__credit a:hover { color: var(--color-primary); }

/* ── Tablet ── */
@media (max-width: 1024px) {
  .site-header__burger {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    background: none; border: 0; cursor: pointer; padding: 10px;
  }
  .site-header__burger span:not(.visually-hidden) {
    display: block; width: 26px; height: 3px; background: var(--color-secondary); border-radius: 2px;
  }
  .site-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #fdf2e2; flex-direction: column; gap: 0; padding: 10px 0;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  }
  body.nav-open .site-nav { display: flex; }
  .site-nav a { padding: 12px 24px; }
  .home-gallery { grid-template-columns: repeat(2, 1fr); }
}

/* ── Mobile ── */
@media (max-width: 767px) {
  :root { --section-pad: 40px; }
  body { font-size: 18px; line-height: 28px; }
  .prose { width: 95%; }
  .statement, .subheading, .section__heading { font-size: 26px; line-height: 36px; }
  .hero__inner { flex-direction: column; min-height: 0; padding-bottom: 60px; }
  .merch__inner { flex-direction: column; }
  .home-gallery { grid-template-columns: 1fr; }
  .sponsor-band__logo { height: 90px; }
  .archive { display: block; background: var(--color-white); }
  .archive__content { padding: 50px 20px; }
  .archive__rail { display: none; }
  .speaker-single__inner { flex-direction: column; gap: 30px; }
  .contact-hero__inner { flex-direction: column; min-height: 0; }
  .info-strip__inner { flex-direction: column; text-align: center; }
  .site-footer__inner { flex-direction: column; text-align: center; }
  .site-footer__brand { flex-direction: column; }
  .site-footer__links { flex-direction: column; gap: 12px; }
  .newsletter-bar__form { flex-wrap: wrap; }
  .newsletter-bar__form input[type="text"],
  .newsletter-bar__form input[type="email"] { flex: 1 1 45%; }
}
