/*
Theme Name: SKIpad
Theme URI: https://skipad.at
Author: SKIpad
Description: Custom theme for SKIpad — Formula Student recalibrated for winter, Sölden, Austria.
Version: 1.0.0
Requires PHP: 8.1
License: GNU General Public License v2 or later
Text Domain: skipad
*/

@import url('https://fonts.googleapis.com/css2?family=Roboto+Condensed:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700&display=swap');

:root {
  --navy: #000b27;
  --blue: #094e7e;
  --ice: #45c3d7;
  --coral: #f26547;
  --snow: #f5f9fb;
  --slate: #607287;
  --pale: #d9e2eb;
  --white: #fff;
  --ink: #09152d;
  --display: 'Roboto Condensed', sans-serif;
  --body: 'Roboto Condensed', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--snow); color: var(--ink); font-family: var(--body); }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; cursor: pointer; }

.site-header {
  align-items: center;
  background: var(--navy);
  border-bottom: 1px solid rgb(255 255 255 / 12%);
  color: var(--white);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  height: 88px;
  padding: 0 4.5vw;
  position: relative;
  z-index: 10;
}
.brand img, .footer-brand img {
  display: block;
  height: 46px;
  object-fit: contain;
  object-position: left center;
  width: 155px;
}
.brand img { filter: brightness(0) invert(1); }
.site-header nav { display: flex; gap: 42px; }
.site-header nav a {
  color: rgb(255 255 255 / 70%);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  transition: color 180ms ease;
}
.site-header nav a:hover { color: var(--ice); }
.nav-cta {
  align-items: center;
  display: flex;
  font-family: var(--display);
  font-size: 15px;
  font-weight: 700;
  gap: 12px;
  justify-self: end;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.icon {
  height: 19px;
  stroke: currentColor;
  stroke-linecap: square;
  stroke-width: 1.8;
  width: 19px;
}

.hero {
  background: var(--navy);
  color: var(--white);
  min-height: calc(100vh - 88px);
  overflow: hidden;
  padding: 7.5vh 4.5vw 24px;
  position: relative;
}
.hero::before {
  background-image: linear-gradient(rgb(69 195 215 / 5.5%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(69 195 215 / 5.5%) 1px, transparent 1px);
  background-size: 72px 72px;
  content: '';
  inset: 0;
  mask-image: linear-gradient(to right, black, transparent 65%);
  pointer-events: none;
  position: absolute;
}
.hero-grid {
  align-items: center;
  display: grid;
  gap: 5vw;
  grid-template-columns: minmax(0, 1.02fr) minmax(380px, .98fr);
  margin: 0 auto;
  max-width: 1500px;
  position: relative;
}
.hero-copy { padding-bottom: 4vh; position: relative; z-index: 2; }
.eyebrow {
  align-items: center;
  color: var(--ice);
  display: flex;
  font-size: 11px;
  font-weight: 700;
  gap: 12px;
  letter-spacing: .18em;
  margin-bottom: 28px;
  text-transform: uppercase;
}
.eyebrow > span { background: currentColor; height: 2px; width: 30px; }
h1, h2, h3 { font-family: var(--display); margin: 0; text-transform: uppercase; }
h1 {
  font-size: clamp(74px, 8.4vw, 142px);
  font-style: italic;
  font-weight: 700;
  letter-spacing: -.055em;
  line-height: .77;
}
h1 em, h2 em { color: var(--ice); font-style: italic; }
.hero-copy > p {
  color: rgb(255 255 255 / 66%);
  font-size: 15px;
  line-height: 1.75;
  margin: 40px 0 34px;
  max-width: 510px;
}
.hero-actions { align-items: center; display: flex; gap: 32px; flex-wrap: wrap; }
.button {
  align-items: center;
  display: inline-flex;
  font-family: var(--display);
  font-size: 15px;
  font-weight: 700;
  gap: 26px;
  letter-spacing: .06em;
  padding: 17px 20px;
  text-transform: uppercase;
  transition: background 180ms ease, transform 180ms ease;
}
.button:hover, .submit-button:hover { transform: translateY(-2px); }
.button-primary { background: var(--coral); color: var(--white); }
.button-primary:hover { background: #ff7659; }
.text-link {
  border-bottom: 1px solid rgb(255 255 255 / 30%);
  color: rgb(255 255 255 / 86%);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  padding-bottom: 6px;
  text-transform: uppercase;
}
.text-link span { color: var(--ice); margin-left: 8px; }
.hero-visual { min-height: 64vh; position: relative; }
.image-frame { height: 60vh; min-height: 480px; overflow: hidden; position: relative; }
.image-frame::after {
  background: linear-gradient(140deg, rgb(0 11 39 / 3%), rgb(0 11 39 / 28%));
  content: '';
  inset: 0;
  position: absolute;
}
.image-frame img, .photo-break > img { height: 100%; object-fit: cover; width: 100%; }
.image-frame img { filter: saturate(.76) contrast(1.06); }
.hero-ticket {
  align-items: center;
  background: var(--ice);
  bottom: 0;
  color: var(--navy);
  display: flex;
  gap: 22px;
  left: -54px;
  min-width: 315px;
  padding: 19px 24px;
  position: absolute;
}
.hero-ticket > span {
  border-right: 1px solid rgb(0 11 39 / 30%);
  font-family: var(--display);
  font-size: 44px;
  font-style: italic;
  font-weight: 700;
  line-height: 1;
  padding-right: 22px;
}
.hero-ticket small, .hero-ticket strong { display: block; text-transform: uppercase; }
.hero-ticket small { font-size: 8px; font-weight: 700; letter-spacing: .17em; margin-bottom: 4px; }
.hero-ticket strong { font-family: var(--display); font-size: 18px; letter-spacing: .04em; }
.altitude {
  background: var(--coral);
  color: var(--white);
  padding: 14px 16px;
  position: absolute;
  right: -18px;
  text-align: right;
  top: 34px;
}
.altitude span, .altitude strong { display: block; }
.altitude span { font-size: 8px; font-weight: 700; letter-spacing: .14em; }
.altitude strong { font-family: var(--display); font-size: 22px; font-style: italic; }
.hero-rail {
  align-items: center;
  color: rgb(255 255 255 / 35%);
  display: flex;
  font-size: 8px;
  font-weight: 700;
  gap: 14px;
  letter-spacing: .16em;
  margin-top: 4vh;
  text-transform: uppercase;
}
.hero-rail > div { background: rgb(255 255 255 / 18%); height: 1px; width: 100px; }
.scroll-note { margin-left: auto; }

.intro-section, .format-section { padding: 130px 5vw; }
.intro-section {
  display: grid;
  gap: 64px 6vw;
  grid-template-columns: .3fr 1.1fr .85fr;
  margin: 0 auto;
  max-width: 1500px;
}
.section-index {
  color: var(--coral);
  font-family: var(--display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .08em;
}
.kicker {
  color: var(--blue);
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .18em;
  margin-bottom: 22px;
  text-transform: uppercase;
}
.intro-heading h2, .format-heading h2, .registration-intro h2 {
  font-size: clamp(56px, 6.5vw, 100px);
  font-style: italic;
  font-weight: 700;
  letter-spacing: -.045em;
  line-height: .84;
}
.intro-heading h2 em, .format-heading h2 em { color: var(--blue); }
.intro-copy { border-left: 1px solid var(--pale); padding-left: 36px; }
.intro-copy p { color: var(--slate); font-size: 13px; line-height: 1.8; margin: 24px 0 0; }
.intro-copy .lead { color: var(--ink); font-size: 16px; font-weight: 600; line-height: 1.65; margin-top: 0; }
.stats-grid { display: grid; grid-column: 1 / -1; grid-template-columns: repeat(4, 1fr); }
.stats-grid article {
  border: 1px solid var(--pale);
  display: flex;
  flex-direction: column;
  min-height: 190px;
  padding: 28px;
}
.stats-grid article + article { border-left: 0; }
.stats-grid strong {
  color: var(--blue);
  font-family: var(--display);
  font-size: 70px;
  font-style: italic;
  letter-spacing: -.04em;
  line-height: 1;
}
.stats-grid span {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .15em;
  margin-top: auto;
  text-transform: uppercase;
}
.stats-grid .stat-accent { background: var(--coral); border-color: var(--coral); color: var(--white); }
.mountain-mark { height: 72px; stroke: currentColor; stroke-width: 1.5; width: 110px; }

.photo-break { height: min(78vh, 780px); overflow: hidden; position: relative; }
.photo-break::after {
  background: linear-gradient(90deg, rgb(0 11 39 / 55%), transparent 55%);
  content: '';
  inset: 0;
  position: absolute;
}
.photo-break > img { filter: saturate(.72); }
.photo-caption {
  bottom: 28px;
  color: var(--white);
  display: flex;
  font-size: 8px;
  font-weight: 700;
  justify-content: space-between;
  left: 4.5vw;
  letter-spacing: .16em;
  position: absolute;
  right: 4.5vw;
  text-transform: uppercase;
  z-index: 2;
}
.photo-label {
  color: var(--white);
  font-family: var(--display);
  font-size: clamp(62px, 8vw, 130px);
  font-style: italic;
  font-weight: 700;
  left: 4.5vw;
  letter-spacing: -.01em;
  line-height: .8;
  position: absolute;
  top: 70px;
  z-index: 2;
}

.format-section { background: var(--white); }
.format-heading {
  display: grid;
  gap: 5vw;
  grid-template-columns: .45fr 1.1fr .65fr;
  margin: 0 auto 76px;
  max-width: 1400px;
}
.format-heading > div .section-index { display: block; margin-bottom: 46px; }
.format-heading > p { align-self: end; color: var(--slate); font-size: 13px; line-height: 1.8; margin: 0; }
.day-list { margin: 0 auto; max-width: 1400px; }
.day-card {
  align-items: start;
  border-top: 1px solid var(--pale);
  display: grid;
  gap: 48px;
  grid-template-columns: .3fr 1fr auto;
  padding: 40px 0;
  transition: padding 180ms ease;
}
.day-card:last-child { border-bottom: 1px solid var(--pale); }
.day-card:hover { padding-left: 14px; }
.day-number { color: var(--coral); font-family: var(--display); font-size: 46px; font-style: italic; font-weight: 700; }
.date { color: var(--blue); display: block; font-size: 9px; font-weight: 700; letter-spacing: .17em; margin-bottom: 10px; }
.day-card h3 { font-size: clamp(32px, 3.5vw, 52px); font-style: italic; letter-spacing: -.02em; }
.day-card p { color: var(--slate); font-size: 12px; line-height: 1.75; margin: 12px 0 0; max-width: 630px; }
.day-icon {
  border: 1px solid var(--pale);
  border-radius: 50%;
  color: var(--blue);
  display: grid;
  font-size: 18px;
  height: 52px;
  place-items: center;
  width: 52px;
}

.registration-section {
  background: var(--navy);
  color: var(--white);
  display: grid;
  gap: 7vw;
  grid-template-columns: .7fr 1fr;
  padding: 120px 5vw;
}
.registration-intro { max-width: 530px; }
.eyebrow-light { margin-bottom: 40px; }
.registration-intro h2 em { color: var(--ice); }
.registration-intro > p {
  color: rgb(255 255 255 / 62%);
  font-size: 14px;
  line-height: 1.8;
  margin: 38px 0;
  max-width: 460px;
}
.registration-note { border-left: 2px solid var(--coral); display: flex; flex-direction: column; gap: 5px; padding: 5px 0 5px 18px; }
.registration-note strong { font-family: var(--display); font-size: 17px; letter-spacing: .07em; text-transform: uppercase; }
.registration-note span { color: rgb(255 255 255 / 48%); font-size: 10px; }
.form-wrap { background: var(--snow); color: var(--ink); min-height: 680px; padding: 46px; }
.form-heading > div:first-child {
  display: flex;
  font-family: var(--display);
  font-size: 14px;
  font-weight: 700;
  justify-content: space-between;
  letter-spacing: .1em;
}
.form-heading strong { color: var(--blue); }
.progress { background: var(--pale); height: 2px; margin: 18px 0 38px; }
.progress span { background: var(--coral); display: block; height: 100%; width: 100%; }
.form-note { color: var(--slate); font-size: 11px; line-height: 1.6; margin: 0 0 28px; }
.form-grid { display: grid; gap: 25px 24px; grid-template-columns: 1fr 1fr; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field-wide { grid-column: 1 / -1; }
.field > span { font-size: 9px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.field input, .field select, .field textarea {
  background: transparent;
  border: 0;
  border-bottom: 1px solid #becbd7;
  border-radius: 0;
  color: var(--ink);
  font-size: 13px;
  outline: 0;
  padding: 9px 0 12px;
  resize: vertical;
  transition: border-color 160ms ease;
  width: 100%;
}
.field textarea { border: 1px solid #becbd7; margin-top: 3px; padding: 13px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); }
.field input::placeholder, .field textarea::placeholder { color: #8492a2; }
.consent {
  align-items: start;
  color: var(--slate);
  display: flex;
  font-size: 9px;
  gap: 10px;
  line-height: 1.55;
  margin: 26px 0;
}
.consent input { accent-color: var(--coral); margin-top: 2px; }
.form-error {
  background: rgb(242 101 71 / 10%);
  border: 1px solid var(--coral);
  color: var(--coral);
  font-size: 12px;
  font-weight: 600;
  margin: 0 0 24px;
  padding: 12px 16px;
}
.submit-button, .success-panel a.button {
  align-items: center;
  background: var(--coral);
  border: 0;
  color: var(--white);
  cursor: pointer;
  display: flex;
  font-family: var(--display);
  font-size: 16px;
  font-weight: 700;
  gap: 36px;
  justify-content: space-between;
  letter-spacing: .08em;
  padding: 18px 20px;
  text-transform: uppercase;
  transition: transform 180ms ease, background 180ms ease;
  width: 100%;
}
.success-panel { align-items: center; display: flex; flex-direction: column; justify-content: center; min-height: 590px; text-align: center; }
.success-panel .success-number { color: var(--coral); font-family: var(--display); font-size: 14px; font-weight: 700; }
.success-panel .mountain-mark { color: var(--blue); height: 95px; margin: 34px 0; width: 150px; }
.success-panel h3 { font-size: clamp(38px, 4vw, 60px); font-style: italic; }
.success-panel p { color: var(--slate); font-size: 13px; line-height: 1.7; margin: 20px auto 34px; max-width: 440px; }
.success-panel a.button { max-width: 290px; }

footer {
  align-items: center;
  background: var(--white);
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  padding: 65px 5vw 28px;
}
footer > p { color: var(--slate); font-size: 11px; text-align: center; }
.footer-links { display: flex; font-size: 10px; font-weight: 700; gap: 22px; justify-content: flex-end; letter-spacing: .06em; text-transform: uppercase; }
.footer-bottom {
  border-top: 1px solid var(--pale);
  color: var(--slate);
  display: flex;
  font-size: 8px;
  grid-column: 1 / -1;
  justify-content: space-between;
  letter-spacing: .12em;
  margin-top: 48px;
  padding-top: 20px;
  text-transform: uppercase;
}

/* Generic page template (e.g. Imprint) */
.skipad-page { background: var(--white); margin: 0 auto; max-width: 820px; padding: 90px 20px 110px; }
.skipad-page h1 { font-size: clamp(42px, 6vw, 64px); font-style: italic; margin-bottom: 30px; }
.skipad-page .skipad-content { color: var(--slate); font-size: 14px; line-height: 1.8; }
.skipad-page .skipad-content p { margin: 0 0 1.2em; }

@media (max-width: 1050px) {
  .site-header nav { display: none; }
  .site-header { grid-template-columns: 1fr 1fr; }
  .hero-grid { gap: 42px; grid-template-columns: 1fr; }
  .hero-copy { padding: 35px 0 0; }
  .hero-visual { margin-left: 8vw; }
  .image-frame { height: 55vh; }
  .intro-section { grid-template-columns: .2fr 1fr .85fr; }
  .registration-section { gap: 70px; grid-template-columns: 1fr; }
  .registration-intro { max-width: 700px; }
}

@media (max-width: 760px) {
  .site-header { height: 72px; padding: 0 20px; }
  .brand img { height: 34px; width: 118px; }
  .nav-cta { font-size: 12px; }
  .hero { min-height: auto; padding: 45px 20px 22px; }
  h1 { font-size: clamp(60px, 19vw, 90px); line-height: .8; }
  .hero-copy > p { margin: 30px 0; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 24px; }
  .hero-visual { margin: 20px 0 0 28px; min-height: 460px; }
  .image-frame { height: 440px; min-height: 0; }
  .hero-ticket { bottom: -18px; left: -28px; min-width: 265px; }
  .altitude { right: -8px; }
  .scroll-note { display: none; }
  .intro-section, .format-section { padding: 88px 20px; }
  .intro-section { display: block; }
  .intro-heading { margin: 30px 0 40px; }
  .intro-heading h2, .format-heading h2, .registration-intro h2 { font-size: clamp(52px, 16vw, 76px); }
  .intro-copy { padding-left: 22px; }
  .stats-grid { grid-template-columns: 1fr 1fr; margin-top: 55px; }
  .stats-grid article { min-height: 150px; padding: 20px; }
  .stats-grid article + article { border-left: 1px solid var(--pale); }
  .stats-grid article:nth-child(n + 3) { border-top: 0; }
  .stats-grid strong { font-size: 54px; }
  .photo-break { height: 72vh; }
  .photo-label { font-size: 62px; left: 20px; top: 50px; }
  .format-heading { display: block; }
  .format-heading h2 { margin: 28px 0; }
  .day-card { gap: 16px; grid-template-columns: 52px 1fr; }
  .day-icon { display: none; }
  .day-number { font-size: 36px; }
  .registration-section { padding: 88px 20px; }
  .form-wrap { margin: 0 -6px; min-height: 0; padding: 30px 22px; }
  .form-grid { grid-template-columns: 1fr; }
  .field-wide { grid-column: auto; }
  footer { gap: 24px; grid-template-columns: 1fr; text-align: center; }
  .footer-brand { justify-self: center; }
  footer > p { margin: 0; }
  .footer-links { justify-content: center; }
  .footer-bottom { align-items: center; flex-direction: column; gap: 8px; grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: .01ms !important; }
}
