/*
 * The shared look of every page: type, header, footer, buttons, hero,
 * sections and cards. Phone first (designed at 375px); wider screens from
 * 760px. Follows the look of kyzmacademy-com-837767.hostingersite.com. All values come from tokens.css.
 * The sign-up pages add sign-up.css after this file.
 */

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--navy);
  font-family: var(--body);
  font-size: var(--text-size-phone);
  line-height: var(--line-height);
  overflow-wrap: break-word;
  /* A short page (Contact, About) still ends with the footer at the bottom. */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body > main { flex: 1 0 auto; }

h1, h2, h3 {
  font-family: var(--heading);
  font-weight: 800;
  line-height: 1.17;
  letter-spacing: -.025em;
  text-wrap: balance;
  margin: 0 0 16px;
}
h1 { font-size: clamp(32px, 7vw, 50px); }
h2 { font-size: clamp(25px, 5vw, 32px); }
h3 { font-size: 20px; line-height: 1.25; }
p { margin: 0 0 18px; max-width: 70ch; }

a { color: inherit; text-decoration: underline; text-underline-offset: 4px; }
a:hover { text-decoration-thickness: 2px; }
img { display: block; max-width: 100%; height: auto; }
button, input { font: inherit; }

:focus-visible { outline: 3px solid var(--navy); outline-offset: 4px; }

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

.container {
  width: calc(100% - 2 * var(--gutter-phone));
  max-width: var(--container);
  margin: 0 auto;
}
.narrow { max-width: 760px; }

.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 100;
  transform: translateY(-150%);
  background: var(--navy); color: #fff;
  padding: 12px 20px; border-radius: var(--radius);
}
.skip-link:focus { transform: none; }

/* Header: logo and Sign up on one row; on a phone the menu sits on a second row. */
.site-header { background: var(--cream); border-bottom: 1px solid var(--line); }
.header-inner {
  display: flex; flex-wrap: wrap; align-items: center;
  column-gap: 12px; padding: 10px 0 4px;
}
.brand { display: inline-flex; width: 104px; margin-right: auto; }
.header-sign-up { min-height: 44px; padding: 9px 20px; }
.site-menu { order: 3; width: 100%; }
.site-menu ul { list-style: none; margin: 0 0 0 -12px; padding: 0; display: flex; gap: 4px; }
.site-menu a {
  display: inline-flex; align-items: center;
  min-height: 44px; padding: 8px 12px;
  font-weight: 600; text-decoration: none;
}
.site-menu a:hover { text-decoration: underline; }
.site-menu a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--coral); text-decoration-thickness: 3px; }

/* Buttons. The Sign up button is always a direct link to /sign-up/. */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: var(--tap);
  padding: 13px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--navy);
  font-size: 16px; font-weight: 600; line-height: 1.4;
  color: var(--navy); text-decoration: none;
  cursor: pointer;
  transition: background .16s, transform .16s;
}
.button:hover { text-decoration: none; transform: translateY(-2px); }
.button.primary { background: var(--coral); border-color: var(--coral); }
.button.primary:hover { background: var(--coral-hover); border-color: var(--coral-hover); }
.button.secondary { background: transparent; }
.button.secondary:hover { background: var(--cream-hover); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 0; }
.actions .button { flex: 1 1 100%; }

/* Hero */
.hero { padding: 28px 0 40px; }
.hero-text { padding-bottom: 32px; }
.hero-grid { display: grid; gap: 28px; }
.lead { font-size: 17px; line-height: 1.6; }
.illustration { margin: 0; border-radius: var(--radius-card); overflow: hidden; }
.illustration img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }

/* Home: the line is the page's heading, so it is set a little smaller than
   other headings; the waiting-list line sits under the button (L-0595). */
.home-line { font-size: clamp(26px, 6.4vw, 40px); }
.waiting-list { font-weight: 600; margin: 16px 0 0; }

/* Sections */
.section { padding: var(--section-pad-phone) 0; border-top: 1px solid var(--line); }
.section-alt { background: var(--cream-deep); }

/* Contact: the one line, with the address as a link. */
.contact-line a {
  display: inline-flex; align-items: center; min-height: var(--tap);
  text-decoration-color: var(--coral); text-decoration-thickness: 3px;
}
/* Home: the watch line; its three channel names are links inside the sentence. */
.watch-line { margin: 0; }

/* Footer */
.site-footer { background: var(--cream-final); padding: 32px 0 24px; font-size: 15px; }
.footer-inner p { margin: 0 0 6px; }
.footer-name { font-family: var(--heading); font-weight: 800; font-size: 18px; }
.footer-menu ul { list-style: none; margin: 8px 0 8px -12px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; }
.footer-menu a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 12px; }
.footer-social { list-style: none; margin: 0 0 8px -12px; padding: 0; display: flex; gap: 4px; }
.footer-contact a { display: inline-flex; align-items: center; min-height: 44px; }
.footer-copyright { color: var(--muted); }

/* Channel icon links (footer and thank-you page): a 48px tap area each. */
.follow-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: var(--tap); height: var(--tap); border-radius: 50%;
  color: inherit;
}
.follow-icon:hover { background: var(--cream-hover); }
.follow-icon svg { display: block; }

@media (min-width: 760px) {
  body { font-size: var(--text-size); }
  .container { width: calc(100% - 2 * var(--gutter)); }
  .header-inner { flex-wrap: nowrap; min-height: 96px; padding: 0; column-gap: 24px; }
  .brand { width: 130px; }
  .site-menu { order: 0; width: auto; }
  .site-menu ul { margin: 0; gap: 8px; }
  .hero { padding: 56px 0 72px; }
  .hero-text { padding-bottom: 48px; }
  .hero-grid { grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
  .lead { font-size: 19px; }
  .actions .button { flex: 0 0 auto; min-width: 200px; }
  .section { padding: var(--section-pad) 0; }
  .site-footer { padding: 48px 0 32px; }
  .footer-menu ul { display: flex; flex-wrap: wrap; column-gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
