/* SPDX-FileCopyrightText: 2026 ownCloud GmbH - A Kiteworks Company and ownCloud contributors */
/* SPDX-License-Identifier: Apache-2.0 */

:root {
  --oc-navy: #041E42;
  --oc-orange: #E56F35;
  --oc-blue: #4E85C8;
  --oc-white: #FFFFFF;
  --oc-gray: #55606C;
  --oc-light-bg: #F4F6F9;
  --oc-border: #E2E6ED;
  --oc-placeholder: #9DAAB8;
  --oc-dark-label: #2E3640;

  --bg-page: #0a2650;
  --bg-panel-alt: #0d2c5c;
  --bg-card: #0d2c5c;
  --text-body: #C7D2DE;
  --text-heading: var(--oc-white);
  --border-card: #1c3d6e;

  --space-4: 4px;
  --space-8: 8px;
  --space-16: 16px;
  --space-24: 24px;
  --space-40: 40px;
  --space-64: 64px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Source Sans 3', 'Source Sans Pro', -apple-system, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-body);
  background: var(--bg-page);
}

h1, h2, h3, h4 {
  color: var(--text-heading);
  line-height: 1.15;
  font-weight: 700;
  margin: 0 0 var(--space-16);
}

p {
  margin: 0 0 var(--space-16);
}

a {
  color: var(--oc-blue);
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 2px solid var(--oc-orange);
  outline-offset: 2px;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--oc-white);
  color: var(--oc-navy);
  padding: var(--space-8) var(--space-16);
  z-index: 100;
}

.skip-link:focus {
  left: var(--space-16);
  top: var(--space-16);
}

/* Hero */

.hero {
  position: relative;
  background: var(--oc-navy);
  color: var(--oc-white);
  padding: var(--space-40) var(--space-16) var(--space-24);
  overflow: hidden;
  text-align: center;
  border-bottom: 8px solid var(--oc-orange);
}

/* Two cropped bright-blue circles (the logo's circle motif) — this is the
   brand's dark-panel decoration, not a gradient overlay. */
.hero::before,
.hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  background: rgba(78, 133, 200, 0.1);
}

.hero::before {
  width: 620px;
  height: 620px;
  top: -260px;
  right: -160px;
}

.hero::after {
  width: 380px;
  height: 380px;
  bottom: -220px;
  left: -120px;
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
}

.hero__logo {
  filter: brightness(0) invert(1);
  margin-bottom: var(--space-24);
}

.hero__tagline {
  color: var(--oc-blue);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  margin-bottom: var(--space-8);
}

.hero__lede {
  color: var(--oc-white);
  font-size: 1.1rem;
  margin-bottom: var(--space-24);
}

/* Sections */

.section {
  background: var(--bg-page);
  padding: var(--space-64) var(--space-16);
}

.section--alt {
  background: var(--bg-panel-alt);
}

.section__inner {
  max-width: 1080px;
  margin: 0 auto;
}

.section__intro {
  max-width: 60ch;
}

.section__subheading {
  margin-top: var(--space-40);
}

.section__subheading--muted {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-body);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: var(--space-40);
  margin-bottom: var(--space-8);
}

/* Card grid */

.card-grid {
  list-style: none;
  margin: var(--space-24) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-16);
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 6px;
  padding: var(--space-16);
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.card__title {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-heading);
  margin: 0;
}

.card__meta {
  color: var(--text-body);
  font-size: 0.9rem;
  margin: 0;
}

.card__desc {
  margin: 0;
  font-size: 0.95rem;
}

.card__link-row {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-8);
  padding-top: var(--space-8);
}

.btn {
  display: block;
  width: 100%;
  box-sizing: border-box;
  border-radius: 6px;
  padding: var(--space-8) var(--space-16);
  font-weight: 700;
  /* 1.2rem (19.2px) bold clears the WCAG "large text" threshold (14pt/~18.66px
     bold) so white-on-orange (3.0:1, AA large-text-only per brand doc) passes AA. */
  font-size: 1.2rem;
  text-decoration: none;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border: 1px solid transparent;
}

.btn-primary,
.btn-secondary {
  background: var(--oc-orange);
  color: var(--oc-white);
}

/* Past events — a quiet reference list, not equal-weight cards. Muted through
   layout (small, boxless, grouped under a small label) rather than through
   low-contrast color, so it still reads as fully legible body text. */

.past-events {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 60ch;
}

.past-event {
  display: flex;
  flex-wrap: wrap;
  column-gap: var(--space-8);
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--border-card);
  font-size: 0.85rem;
}

.past-event:last-child {
  border-bottom: none;
}

.past-event__name {
  color: var(--text-heading);
  font-weight: 600;
}

.past-event__meta {
  color: var(--text-body);
}

/* Footer */

.footer {
  position: relative;
  overflow: hidden;
  background: var(--oc-navy);
  color: var(--oc-white);
  padding: var(--space-40) var(--space-16);
}

.footer::before {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  background: rgba(78, 133, 200, 0.1);
  width: 460px;
  height: 460px;
  top: -220px;
  left: -180px;
}

.footer__inner {
  position: relative;
  z-index: 1;
  max-width: 1080px;
  margin: 0 auto;
  text-align: center;
}

.footer__tagline {
  font-weight: 600;
}

.footer__legal {
  list-style: none;
  margin: 0 0 var(--space-16);
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-16);
  justify-content: center;
}

.footer__legal a,
.footer__links a {
  color: var(--oc-white);
}

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

  .hero {
    padding: var(--space-24) var(--space-16) var(--space-16);
  }
}
