/* DUONOVA public site. Brand from the logo and posters: black or warm ivory surfaces,
   rose-gold line art, high-contrast serif headings, widely spaced small caps. System fonts only.
   Gold #D5B28B is decorative or for text on dark; on light surfaces gold text is #73552E (AA). */
:root {
  --ink: #29232b;
  --muted: #5f5561;
  --ivory: #fcf9f7;
  --ivory-deep: #f6efe9;
  --white: #ffffff;
  --black: #000000;
  --night: #101010;
  --gold: #d5b28b;
  --gold-text: #73552e;
  --pink: #f5dfe2;
  --line-dark: rgba(213, 178, 139, 0.45);
  --line-light: #e6dde1;
  --serif: Georgia, 'Times New Roman', 'Noto Serif', serif;
  --sans: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --gutter: 16px;
  --radius: 16px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font: 17px/1.6 var(--sans);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--gold-text);
  outline-offset: 3px;
}

.section-dark :focus-visible,
.hero :focus-visible,
.site-header :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--gold);
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 40px);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.narrow {
  max-width: 720px;
}

.center {
  text-align: center;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 10;
  padding: 12px 16px;
  background: var(--gold);
  color: var(--black);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 8px;
}

/* Divider like the posters: thin gold line with a small diamond. */
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 16px auto 32px;
  max-width: 320px;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}

.divider span {
  width: 7px;
  height: 7px;
  background: currentColor;
  transform: rotate(45deg);
}

.section-light .divider,
.section-ivory .divider {
  color: var(--gold-text);
}

.section-dark .divider,
.hero .divider {
  color: var(--gold);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--black);
  color: var(--white);
  border-bottom: 1px solid var(--line-dark);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  min-height: 44px;
  justify-content: center;
  text-decoration: none;
  margin-right: auto;
}

.brand-name {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: 0.18em;
  line-height: 1;
}

.brand-sub {
  margin-top: 4px;
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
}

.nav-desktop ul,
.nav-mobile ul,
.lang-switch {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-desktop ul {
  display: flex;
  gap: 4px;
}

.nav-desktop a,
.nav-mobile nav a,
.lang-switch a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
}

.nav-desktop a:hover,
.nav-mobile a:hover,
.lang-switch a:hover {
  color: var(--gold);
}

.lang-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
}

.lang-switch a {
  text-transform: none;
  letter-spacing: 0.02em;
}

.lang-switch a[aria-current='true'] {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 6px;
}

.nav-desktop,
.lang-desktop {
  display: none;
}

.nav-mobile summary {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  cursor: pointer;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  list-style: none;
}

.nav-mobile summary::-webkit-details-marker {
  display: none;
}

.header-inner {
  position: relative;
}

/* Mobile menu is a native <details>: works without JavaScript and is keyboard accessible. */
.nav-panel {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  padding: 8px var(--gutter) 16px;
  background: var(--black);
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}

.nav-panel nav a {
  display: flex;
  width: 100%;
}

.nav-panel .lang-switch {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--line-dark);
}

@media (min-width: 1024px) {
  .nav-desktop,
  .lang-desktop {
    display: flex;
  }

  .nav-mobile {
    display: none;
  }
}

/* Hero */
.hero {
  background: var(--black);
  color: var(--white);
  text-align: center;
  padding: 24px 0 64px;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-logo {
  width: min(440px, 88vw);
}

.hero-title {
  margin: 8px 0 8px;
  font-size: clamp(28px, 5vw, 48px);
  color: var(--gold);
}

.hero-lead {
  margin: 0 0 32px;
  font-size: 18px;
  color: #e9e1da;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 28px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.button-gold {
  background: var(--gold);
  color: var(--black);
}

.button-gold:hover {
  background: #e6c9a6;
}

.button-outline {
  border-color: var(--gold);
  color: var(--gold);
}

.button-outline:hover {
  background: rgba(213, 178, 139, 0.12);
}

.button-dark {
  background: var(--black);
  color: var(--white);
}

.button-dark:hover {
  background: #2b2b2b;
}

.button-outline-dark {
  border-color: var(--gold-text);
  color: var(--gold-text);
}

.button-outline-dark:hover {
  background: var(--ivory-deep);
}

.text-link {
  color: var(--gold-text);
  font-weight: 600;
  text-underline-offset: 4px;
}

/* Sections */
.section {
  padding: 64px 0;
}

.section-light {
  background: var(--ivory);
}

.section-ivory {
  background: var(--ivory-deep);
}

.section-dark {
  background: var(--night);
  color: var(--white);
}

.section-intro,
.section-note {
  text-align: center;
}

.section-note {
  font-size: 15px;
  color: var(--muted);
}

.section-dark .section-note {
  color: #cfc5bc;
}

.section-light p,
.section-ivory p {
  margin: 0 0 16px;
}

.narrow > p {
  text-align: center;
}

/* Groups & schedule */
.group-cards {
  list-style: none;
  margin: 32px 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.group-card {
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
}

.group-card h3 {
  margin: 0 0 8px;
  font-size: 30px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}

.group-days {
  margin: 0;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 14px;
}

.group-time {
  margin: 4px 0 0;
  font-size: 22px;
}

.table-wrap {
  overflow-x: auto;
  margin: 0 auto 24px;
  max-width: 720px;
}

.schedule-table {
  width: 100%;
  border-collapse: collapse;
}

.schedule-table caption {
  margin-bottom: 8px;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #cfc5bc;
}

.schedule-table th,
.schedule-table td {
  padding: 12px;
  border-bottom: 1px solid var(--line-dark);
  text-align: left;
}

.schedule-table tbody th {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 18px;
  color: var(--gold);
}

@media (min-width: 768px) {
  .group-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Location */
.venue {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 0 16px;
  font-style: normal;
}

.venue-name {
  font-family: var(--serif);
  font-size: 26px;
}

.venue-area {
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-text);
}

/* Enrollment steps */
.steps {
  list-style: none;
  counter-reset: step;
  margin: 0 0 32px;
  padding: 0;
  display: grid;
  gap: 16px;
}

.steps li {
  counter-increment: step;
  background: var(--white);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
}

.steps li::before {
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--gold-text);
  border-radius: 50%;
  font-family: var(--serif);
  color: var(--gold-text);
}

.steps h3 {
  margin: 12px 0 8px;
  font-size: 22px;
}

.steps p {
  margin: 0;
}

@media (min-width: 768px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* FAQ */
.faq-item {
  border-bottom: 1px solid var(--line-light);
}

.faq-item summary {
  display: flex;
  align-items: center;
  min-height: 56px;
  padding: 8px 0;
  cursor: pointer;
  font-family: var(--serif);
  font-size: 20px;
}

.faq-item p {
  text-align: left;
  margin: 0 0 16px;
}

/* Contact */
.contact-list {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 8px 16px;
  margin: 0 auto 24px;
  max-width: 480px;
}

.contact-list dt {
  font-weight: 600;
}

.contact-list dd {
  margin: 0;
}

/* Footer */
.site-footer {
  background: var(--black);
  color: var(--white);
  padding: 48px 0 32px;
  text-align: center;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.footer-brand {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
}

.footer-tagline {
  margin: 0;
  font-family: var(--serif);
  color: var(--gold);
}

.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.footer-legal {
  margin: 8px 0 0;
  font-size: 13px;
  color: #cfc5bc;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
