/* ==========================================================================
   Clocked-Out Co-work — home page
   Section styles for index.html. Requires style.css.
   ========================================================================== */

section {
  padding: 84px 0;
}

h2 {
  font-size: clamp(1.9rem, 4.6vw, 2.7rem);
  margin-bottom: 1.6rem;
}

/* ---------------------------------------------------------------- hero -- */

.hero {
  background: var(--ink);
  color: var(--cream);
  --knob: var(--ink);
  padding: 96px 0 88px;
  text-align: center;
}

.hero__mark {
  display: block;
  margin: 0;
}

.hero__wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.01em;
  font-size: clamp(2.4rem, 8.4vw, 5.2rem);
  display: block;
  white-space: nowrap;
}

.hero__wordmark .out {
  color: var(--terracotta-bright);
}

.hero__sub {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(0.78rem, 2.3vw, 1.3rem);
  letter-spacing: 0.6em;
  text-indent: 0.6em;
  margin-top: 0.6em;
  color: var(--cream);
}

.hero__lede {
  max-width: 44ch;
  margin: 2.6rem auto 0;
  font-size: clamp(1.02rem, 2.3vw, 1.2rem);
  color: var(--cream-70);
}

.hero__cta {
  margin-top: 2.4rem;
}

.hero__meta {
  margin-top: 1.6rem;
  font-size: 0.92rem;
  color: var(--cream-70);
  letter-spacing: 0.02em;
}

.hero__meta a {
  color: var(--cream);
  text-underline-offset: 3px;
}

/* --------------------------------------------------------------- prose -- */

.prose {
  max-width: 62ch;
}

.prose p {
  color: var(--ink-70);
}

.prose p.emph {
  color: var(--ink);
  font-weight: 500;
}

/* ------------------------------------------------------------ schedule -- */

.sched {
  border-top: 1px solid var(--ink-16);
  margin-top: 0.5rem;
}

.sched__row {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 24px;
  align-items: baseline;
  padding: 22px 4px;
  border-bottom: 1px solid var(--ink-16);
}

.sched__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--terracotta);
  font-variant-numeric: tabular-nums;
}

.sched__what {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.16rem;
}

.sched__dur {
  display: block;
  font-weight: 400;
  font-size: 0.92rem;
  color: var(--ink-70);
  margin-top: 0.25rem;
}

.sched__when {
  font-weight: 500;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 620px) {
  .sched__row {
    grid-template-columns: 38px 1fr;
    gap: 16px;
  }
  .sched__when {
    grid-column: 2;
    margin-top: 0.35rem;
    color: var(--ink-70);
    font-weight: 400;
  }
}

/* ------------------------------------------------------------- details -- */

.details {
  background: var(--ink);
  color: var(--cream);
  --knob: var(--ink);
}

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

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px;
  margin-top: 8px;
}

.card__k {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--terracotta-bright);
  margin-bottom: 0.7rem;
}

.card__v {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  line-height: 1.25;
}

.card__s {
  color: var(--cream-70);
  font-size: 0.98rem;
  margin-top: 0.4rem;
}

.card a {
  color: var(--cream-70);
}

@media (max-width: 760px) {
  .cards {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

/* ---------------------------------------------------- upcoming events -- */

.cal-links {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
  max-width: 62ch;
}

.cal-links li {
  border-bottom: 1px solid var(--ink-16);
}

.cal-links li:first-child {
  border-top: 1px solid var(--ink-16);
}

.cal-links a {
  display: block;
  padding: 0.95rem 0.2rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s ease, padding-left 0.15s ease;
}

.cal-links a::after {
  content: " \2192";
  color: var(--terracotta);
}

.cal-links a:hover,
.cal-links a:focus-visible {
  color: var(--terracotta);
  padding-left: 0.5rem;
}

.cal {
  border: 1px solid var(--ink-20);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  max-width: 840px;
}

.cal iframe {
  display: block;
  width: 100%;
  height: 560px;
  border: 0;
}

@media (max-width: 620px) {
  .cal iframe {
    height: 620px;
  }
}

/* ------------------------------------------------------------ sponsors -- */

.sponsor {
  border: 1px solid var(--ink-20);
  border-radius: var(--radius);
  padding: 38px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 38px;
  align-items: center;
  max-width: 940px;
}

.sponsor h3 {
  font-size: 1.3rem;
  margin-bottom: 0.7rem;
}

.sponsor p {
  color: var(--ink-70);
}

.sponsor img {
  width: 100%;
  border-radius: 10px;
}

@media (max-width: 780px) {
  .sponsor {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 30px;
  }
  .sponsor__shot {
    order: -1;
  }
}
