/* =========================================================================
   Show & Tell — landing page
   --------------------------------------------------------------------------
   The session "foyer". Cream paper background, oversized serif masthead,
   a marqueed event ticker, and two tiles that visually preview the two sites'
   distinct aesthetics (light pinboard vs dark lab) before the user clicks.
   --------------------------------------------------------------------------
   Palette: CQU primary (Dark Green #1f4040 / Hero Green #c7db5c / White)
            with Pale Green #dfe99a for atmosphere, and Plum #a85b8b as a
            single off-brand accent on Site 02 to push contrast further.
   Type:    Georgia (display, matches the flyer) + Tahoma (body) +
            ui-monospace stack for the Site 02 code preview.
   ========================================================================= */

:root {
  --green-dark:  #1f4040;
  --green-deep:  #163030;       /* near-black green for tile-rewriter */
  --green-hero:  #c7db5c;
  --green-pale:  #dfe99a;
  --green-mid:   #218541;
  --grey-body:   #575756;
  --plum:        #a85b8b;
  --paper:       #faf7ed;       /* warm cream */
  --paper-line:  rgba(31, 64, 64, 0.06);

  --serif:  Georgia, "Fields", "Times New Roman", serif;
  --sans:   Tahoma, "Noto Sans", Verdana, sans-serif;
  --mono:   ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas,
            "Liberation Mono", monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--paper);
  color: var(--green-dark);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Subtle paper-grain via a low-opacity SVG noise overlay (data URI) plus a
   faint horizontal-line pattern that hints at the flyer's grid. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(
      to bottom,
      transparent 0,
      transparent 31px,
      var(--paper-line) 31px,
      var(--paper-line) 32px
    );
  z-index: 0;
}

main.page {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: 56px 32px 48px;
}

/* ---------- masthead ---------- */

.masthead {
  margin-bottom: 56px;
}

.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--green-dark);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 10px;
  border: 1px solid var(--green-dark);
  border-radius: 999px;
}

.eyebrow .dot {
  width: 7px;
  height: 7px;
  background: var(--green-hero);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(199, 219, 92, 0.7);
  animation: pulse 2.4s ease-out infinite;
}

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0    rgba(199, 219, 92, 0.7); }
  70%  { box-shadow: 0 0 0 10px rgba(199, 219, 92, 0);   }
  100% { box-shadow: 0 0 0 0    rgba(199, 219, 92, 0);   }
}

.title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(72px, 14vw, 200px);
  line-height: 0.92;
  letter-spacing: -0.02em;
  color: var(--green-dark);
  margin: 28px 0 24px;
}

.title-row {
  display: block;
}

.title-row--amp {
  margin: -4px 0 -8px;
  padding-left: clamp(48px, 8vw, 120px);
}

.title-row--amp em {
  font-style: italic;
  color: var(--green-hero);
  font-size: 1.32em;
  font-weight: 400;
  display: inline-block;
  transform: translateY(0.06em);
  -webkit-text-stroke: 1px var(--green-dark);
  paint-order: stroke fill;
}

.lede {
  max-width: 640px;
  font-family: var(--serif);
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.5;
  color: var(--grey-body);
  margin-top: 12px;
}

/* ---------- ticker ---------- */

.ticker {
  margin: 56px 0 48px;
  background: var(--green-dark);
  color: var(--green-hero);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}

.ticker::before, .ticker::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 60px;
  z-index: 2;
  pointer-events: none;
}
.ticker::before { left: 0;  background: linear-gradient(to right, var(--green-dark), transparent); }
.ticker::after  { right: 0; background: linear-gradient(to left,  var(--green-dark), transparent); }

.ticker-track {
  display: inline-flex;
  gap: 28px;
  padding: 14px 0;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
  animation: marquee 36s linear infinite;
}

.ticker-track .sep {
  color: var(--green-pale);
  opacity: 0.6;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

@keyframes marquee {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
  .eyebrow .dot { animation: none; }
}

/* ---------- tiles ---------- */

.tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 64px;
}

@media (max-width: 820px) {
  .tiles { grid-template-columns: 1fr; }
}

.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 28px 28px 24px;
  text-decoration: none;
  border-radius: 8px;
  min-height: 520px;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1),
              box-shadow 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
  isolation: isolate;
}

.tile:hover {
  transform: translateY(-4px);
}

.tile-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 700;
}

.tile-eyebrow { opacity: 1; }

.tile-status {
  font-family: var(--serif);
  font-style: italic;
  letter-spacing: 0.04em;
  text-transform: none;
  font-weight: 400;
  font-size: 13px;
}

.tile-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(48px, 6vw, 84px);
  line-height: 0.95;
  letter-spacing: -0.015em;
}

.tile-blurb {
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.5;
  max-width: 36ch;
}

.tile-cta {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding-top: 16px;
  border-top: 1px dashed currentColor;
}

.tile-cta .cta-arrow {
  font-size: 22px;
  transform: translateX(0);
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.tile:hover .cta-arrow {
  transform: translateX(8px);
}

/* ---------- tile 01: Tool Wall (light / papery) ---------- */

.tile--wall {
  background: #ffffff;
  color: var(--green-dark);
  border: 1px solid rgba(31, 64, 64, 0.14);
  box-shadow: 0 1px 0 rgba(31, 64, 64, 0.04),
              0 12px 28px -16px rgba(31, 64, 64, 0.18);
}

.tile--wall:hover {
  box-shadow: 0 2px 0 var(--green-hero),
              0 22px 38px -16px rgba(31, 64, 64, 0.28);
}

.tile--wall .tile-head { color: var(--green-dark); }
.tile--wall .tile-status { color: var(--grey-body); }

.tile-preview {
  position: relative;
  height: 220px;
  margin: 4px 0;
}

.card-preview {
  position: absolute;
  width: 240px;
  background: var(--paper);
  border: 1px solid rgba(31, 64, 64, 0.18);
  border-radius: 4px;
  padding: 14px 16px 12px;
  box-shadow: 0 6px 14px -8px rgba(31, 64, 64, 0.35);
  font-family: var(--sans);
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.card-preview h3 {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 700;
  margin: 6px 0 4px;
  color: var(--green-dark);
}

.card-preview p {
  font-size: 13px;
  line-height: 1.4;
  color: var(--grey-body);
  font-family: var(--serif);
  font-style: italic;
}

.card-preview .card-link {
  display: block;
  margin-top: 8px;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--green-dark);
  font-weight: 700;
}

.cat-pill {
  display: inline-block;
  padding: 2px 8px;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  border-radius: 999px;
  background: var(--green-hero);
  color: var(--green-dark);
}

.cat-pill--coding  { background: var(--green-pale); }
.cat-pill--writing { background: #ffd36c; }   /* CQU tertiary yellow */

/* Hand-arranged Polaroid stack: each card peeks at a different rotation */
.card-preview--a { top: 0;   left: 0;   transform: rotate(-3.2deg); z-index: 3; }
.card-preview--b { top: 22px; left: 60px; transform: rotate(2deg);   z-index: 2; }
.card-preview--c { top: 56px; left: 120px; transform: rotate(-1.4deg); z-index: 1; }

.tile--wall:hover .card-preview--a { transform: rotate(-4deg) translate(-4px, -2px); }
.tile--wall:hover .card-preview--b { transform: rotate(2.6deg) translate(2px, -3px); }
.tile--wall:hover .card-preview--c { transform: rotate(-0.6deg) translate(6px, -1px); }

/* ---------- tile 02: Prompt Rewriter (dark / lab) ---------- */

.tile--rewriter {
  background: var(--green-deep);
  color: var(--green-pale);
  border: 1px solid rgba(199, 219, 92, 0.14);
}

.tile--rewriter::before {
  /* Subtle terminal scanline atmosphere */
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 3px,
    rgba(199, 219, 92, 0.025) 3px,
    rgba(199, 219, 92, 0.025) 4px
  );
  pointer-events: none;
  z-index: -1;
}

.tile--rewriter:hover {
  box-shadow: 0 0 0 1px var(--green-hero),
              0 22px 38px -16px rgba(0, 0, 0, 0.55);
}

.tile--rewriter .tile-head { color: var(--green-hero); }
.tile--rewriter .tile-status { color: var(--plum); }
.tile--rewriter .tile-title { color: #ffffff; }
.tile--rewriter .tile-title::after {
  content: "";
  display: inline-block;
  width: 0.15em;
  height: 0.85em;
  background: var(--green-hero);
  margin-left: 0.1em;
  vertical-align: -0.06em;
  animation: caret 1.05s steps(2) infinite;
}

@keyframes caret { 50% { opacity: 0; } }

.tile--rewriter .tile-blurb { color: var(--green-pale); opacity: 0.88; }

.tile-preview--code {
  flex: 1;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(199, 219, 92, 0.16);
  border-radius: 4px;
  padding: 14px 16px;
  overflow: hidden;
  position: relative;
}

.tile-preview--code pre {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.6;
  color: var(--green-pale);
  white-space: pre;
}

.c-com    { color: var(--plum); font-style: italic; }
.c-typing { color: #ffffff; }

.c-cursor {
  display: inline-block;
  width: 7px;
  height: 14px;
  background: var(--green-hero);
  margin-left: 2px;
  vertical-align: -2px;
  animation: caret 1s steps(2) infinite;
}

.bar {
  display: inline-block;
  height: 8px;
  width: 32px;
  background: rgba(199, 219, 92, 0.15);
  margin: 0 6px;
  vertical-align: 0;
  position: relative;
  overflow: hidden;
}

.bar::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  background: var(--green-hero);
}

.bar-1::after { width: 20%; }
.bar-2::after { width: 40%; }
.bar-3::after { width: 60%; }
.bar-4::after { width: 80%; }
.bar-5::after { width: 100%; }

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

.schedule {
  border-top: 1px solid var(--green-dark);
  padding-top: 32px;
  margin-bottom: 56px;
}

.schedule-heading {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 22px;
  color: var(--grey-body);
  margin-bottom: 18px;
}

.schedule-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media (max-width: 720px) {
  .schedule-list { grid-template-columns: 1fr 1fr; }
}

.schedule-list li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 0 0;
  border-top: 2px solid var(--green-hero);
}

.schedule-list .time {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--green-dark);
}

.schedule-list .event {
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.4;
  color: var(--grey-body);
}

.schedule-list em {
  font-style: italic;
  color: var(--green-dark);
}

/* ---------- footer ---------- */

.page-foot {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px dashed var(--green-dark);
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  align-items: baseline;
  font-size: 13px;
  color: var(--grey-body);
}

.contact a {
  color: var(--green-dark);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--green-hero);
  text-underline-offset: 3px;
  text-decoration-thickness: 2px;
}

.contact a:hover {
  background: var(--green-hero);
}

.accreditation {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--grey-body);
}
