:root {
  --riverstone-blue: #044da1;
  --riverstone-blue-dark: #02356f;
  --riverstone-blue-soft: #eaf2fb;
  --background: #f6f9fc;
  --text: #111827;
  --muted: #5f6b7a;
  --card: #ffffff;
  --border: #dce7f4;
  --shadow: rgba(4, 77, 161, 0.1);
  --shadow-hover: rgba(4, 77, 161, 0.18);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--background);
  color: var(--text);
}

.clock-home {
  display: grid;
  min-height: 100vh;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  background:
    radial-gradient(circle at top, rgba(4, 77, 161, 0.14), rgba(246, 249, 252, 0) 42%),
    linear-gradient(135deg, rgba(4, 77, 161, 0.1), rgba(246, 249, 252, 0) 44%),
    #ffffff;
}

.clock-header {
  padding: 38px 30px 8px;
  text-align: center;
}

.clock-logo {
  display: block;
  width: min(660px, 78vw);
  height: auto;
  margin: 0 auto;
}

.clock-main {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 22px;
  padding: 10px 24px 110px;
  text-align: center;
}

.clock-date,
.clock-time {
  margin: 0;
}

.clock-date {
  color: var(--riverstone-blue-dark);
  font-size: clamp(30px, 4vw, 58px);
  font-weight: 700;
}

.clock-time {
  color: var(--text);
  font-size: clamp(82px, 14vw, 208px);
  font-weight: 700;
  line-height: 0.95;
}

.dashboard-entry {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 66px;
  border-radius: 8px;
  padding: 0 32px;
  background: var(--riverstone-blue);
  color: #ffffff;
  font-size: clamp(19px, 2.2vw, 26px);
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 12px 30px var(--shadow-hover);
}

.dashboard-entry:hover,
.dashboard-entry:focus {
  background: var(--riverstone-blue-dark);
  outline: none;
}

.site-header {
  background: #ffffff;
  border-bottom: 5px solid var(--riverstone-blue);
  padding: 28px 20px;
}

.header-inner {
  display: flex;
  max-width: 1100px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
}

.site-logo {
  display: block;
  width: min(430px, 48vw);
  height: auto;
}

.logo-link {
  display: inline-flex;
  color: inherit;
  text-decoration: none;
}

.header-copy {
  max-width: 440px;
  text-align: right;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--riverstone-blue);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.site-header h1 {
  margin: 0;
  color: var(--text);
  font-size: clamp(25px, 3.6vw, 40px);
  line-height: 1.08;
}

.container {
  max-width: 1100px;
  margin: 36px auto;
  padding: 0 20px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
}

.dashboard-card {
  display: flex;
  min-height: 184px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 10px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 26px;
  color: var(--text);
  text-decoration: none;
  box-shadow: 0 8px 24px var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}

.dashboard-card:hover,
.dashboard-card:focus {
  transform: translateY(-3px);
  background: #fbfdff;
  box-shadow: 0 12px 30px var(--shadow-hover);
  border-color: var(--riverstone-blue);
  outline: none;
}

.dashboard-card:focus-visible {
  outline: 3px solid rgba(4, 77, 161, 0.28);
  outline-offset: 3px;
}

.card-icon {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 8px;
  background: var(--riverstone-blue-soft);
  color: var(--riverstone-blue);
  font-size: 30px;
  line-height: 1;
}

.card-title {
  display: block;
  color: var(--riverstone-blue-dark);
  font-size: 22px;
  font-weight: 700;
}

.card-text {
  display: block;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}

.site-footer {
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  padding: 22px 20px 74px;
}

.site-footer p {
  margin: 0;
}

.footer-datetime {
  color: var(--riverstone-blue-dark);
  font-size: 16px;
  font-weight: 700;
}

.footer-copy {
  margin-top: 7px;
  font-size: 13px;
}

.footer-version {
  margin-top: 4px;
  font-size: 12px;
}

.calendar-page {
  margin-top: 28px;
}

.page-actions {
  margin-bottom: 16px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0 16px;
  background: #ffffff;
  color: var(--riverstone-blue-dark);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 6px 18px var(--shadow);
}

.back-link:hover,
.back-link:focus {
  border-color: var(--riverstone-blue);
  outline: none;
}

.calendar-panel {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 30px var(--shadow);
}

.calendar-frame {
  display: block;
  width: 100%;
  height: min(76vh, 760px);
  min-height: 560px;
  border: 0;
}

.info-page {
  margin-top: 28px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.info-card,
.service-hero {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #ffffff;
  padding: 28px;
  box-shadow: 0 10px 30px var(--shadow);
}

.info-kicker {
  margin: 0 0 8px;
  color: var(--riverstone-blue);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.info-card h2,
.service-hero h2 {
  margin: 0 0 10px;
  color: var(--riverstone-blue-dark);
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.1;
}

.info-card p,
.service-hero p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}

.info-card p + p {
  margin-top: 12px;
}

.notice-text {
  border-left: 4px solid var(--riverstone-blue);
  padding-left: 12px;
}

.inline-action {
  display: inline-flex;
  margin-top: 18px;
  color: var(--riverstone-blue-dark);
  font-weight: 700;
}

.wifi-request-panel {
  margin-top: 20px;
}

.service-hero {
  text-align: center;
}

.service-hero h2 {
  font-size: clamp(38px, 7vw, 78px);
}

.service-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 22px;
}

.service-button {
  text-decoration: none;
}

.form-page {
  max-width: 860px;
  margin-top: 28px;
}

.form-panel {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #ffffff;
  padding: 30px;
  box-shadow: 0 10px 30px var(--shadow);
}

.form-intro {
  max-width: 680px;
  margin-bottom: 24px;
}

.form-intro h2 {
  margin: 0 0 8px;
  color: var(--riverstone-blue-dark);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.1;
}

.form-intro p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}

.signup-form {
  display: grid;
  gap: 18px;
}

.form-row {
  display: grid;
  gap: 7px;
}

.form-row label {
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
}

.form-row label span {
  color: var(--muted);
  font-weight: 400;
}

.form-row input,
.form-row textarea {
  width: 100%;
  border: 1px solid #cfdced;
  border-radius: 8px;
  padding: 12px 13px;
  color: var(--text);
  font: inherit;
  background: #ffffff;
}

.form-row textarea {
  resize: vertical;
}

.form-row input:focus,
.form-row textarea:focus {
  border-color: var(--riverstone-blue);
  outline: 3px solid rgba(4, 77, 161, 0.16);
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  width: fit-content;
  border: 0;
  border-radius: 8px;
  padding: 0 20px;
  background: var(--riverstone-blue);
  color: #ffffff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.primary-button:hover,
.primary-button:focus {
  background: var(--riverstone-blue-dark);
  outline: none;
}

.form-status {
  min-height: 22px;
  margin: 0;
  color: var(--riverstone-blue-dark);
  font-size: 15px;
  font-weight: 700;
}

.hidden-field {
  position: absolute;
  left: -9999px;
}

.response-panel {
  display: grid;
  gap: 14px;
}

.response-panel h2 {
  margin: 0;
  color: var(--riverstone-blue-dark);
  font-size: clamp(24px, 3vw, 34px);
}

.response-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}

.courtesy-credit {
  position: fixed;
  right: 14px;
  bottom: 12px;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: min(270px, calc(100vw - 28px));
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 8px;
  padding: 7px 9px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--muted);
  font-size: 11px;
  line-height: 1.2;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(17, 24, 39, 0.12);
}

.courtesy-credit:hover,
.courtesy-credit:focus {
  border-color: rgba(4, 77, 161, 0.28);
  color: var(--riverstone-blue-dark);
  outline: none;
}

.courtesy-credit img {
  display: block;
  width: 92px;
  height: auto;
}

@media (max-width: 760px) {
  .site-header {
    padding: 24px 16px;
  }

  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
  }

  .site-logo {
    width: min(420px, 100%);
  }

  .header-copy {
    max-width: none;
    text-align: left;
  }

  .container {
    margin: 24px auto;
    padding: 0 14px;
  }

  .calendar-frame {
    height: 72vh;
    min-height: 520px;
  }

  .form-panel {
    padding: 24px 18px;
  }

  .clock-header {
    padding: 24px 18px 6px;
  }

  .clock-logo {
    width: min(520px, 88vw);
  }

  .clock-main {
    gap: 16px;
    padding-bottom: 104px;
  }

  .courtesy-credit {
    right: 10px;
    bottom: 10px;
    max-width: calc(100vw - 20px);
  }
}

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

  .dashboard-card {
    min-height: 148px;
    padding: 22px;
  }

  .courtesy-credit span {
    display: none;
  }

  .courtesy-credit img {
    width: 82px;
  }
}
