:root {
  color-scheme: light;
  --bg: #f6f2e8;
  --bg-accent: #efe4d1;
  --card: rgba(255, 255, 255, 0.8);
  --card-strong: #ffffff;
  --text: #1f2a37;
  --muted: #5c6675;
  --primary: #0f766e;
  --primary-dark: #115e59;
  --secondary: #b45309;
  --border: rgba(31, 42, 55, 0.12);
  --shadow: 0 18px 50px rgba(31, 42, 55, 0.12);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 16px;
  --max-width: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(15, 118, 110, 0.16), transparent 32%),
    radial-gradient(circle at right top, rgba(180, 83, 9, 0.14), transparent 26%),
    linear-gradient(180deg, var(--bg), #fff8ef 52%, #f8f2e6 100%);
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(31, 42, 55, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 42, 55, 0.03) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.22), transparent 80%);
  opacity: 0.55;
}

.page {
  width: min(var(--max-width), calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 40px;
  position: relative;
  z-index: 1;
}

.hero {
  display: grid;
  gap: 18px;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 248, 239, 0.78));
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.12);
  color: var(--primary-dark);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.eyebrow::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--secondary);
  box-shadow: 0 0 0 6px rgba(180, 83, 9, 0.12);
}

h1 {
  margin: 0;
  font-size: clamp(2.3rem, 5vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.lead {
  margin: 0;
  max-width: 62ch;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 700;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 10px 24px rgba(15, 118, 110, 0.2);
}

.button.primary:hover {
  background: var(--primary-dark);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.86);
  color: var(--text);
  border-color: var(--border);
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(300px, 0.9fr);
  gap: 20px;
  margin-top: 20px;
}

.panel {
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
  overflow: hidden;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.55));
}

.panel-header h2 {
  margin: 0;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.panel-header p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.calendar-wrap {
  padding: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.52));
}

.calendar-frame {
  width: 100%;
  min-height: 760px;
  border: 0;
  border-radius: 18px;
  background: white;
  box-shadow: inset 0 0 0 1px rgba(31, 42, 55, 0.06);
}

.sidebar {
  display: grid;
  gap: 20px;
}

.links-grid {
  display: grid;
  gap: 12px;
  padding: 20px;
}

.link-card {
  display: grid;
  gap: 6px;
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--card-strong);
  text-decoration: none;
  color: inherit;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.link-card:hover {
  transform: translateY(-2px);
  border-color: rgba(15, 118, 110, 0.22);
  box-shadow: 0 12px 24px rgba(31, 42, 55, 0.08);
}

.link-card strong {
  font-size: 1rem;
}

.link-card span {
  color: var(--muted);
  line-height: 1.45;
}

.tag {
  width: fit-content;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.1);
  color: var(--primary-dark);
  font-size: 0.82rem;
  font-weight: 700;
}

.info-box {
  padding: 20px;
  display: grid;
  gap: 10px;
}

.info-box p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.footer-note {
  padding: 18px 2px 0;
  color: var(--muted);
  font-size: 0.95rem;
  text-align: center;
}

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

  .calendar-frame {
    min-height: 680px;
  }
}

@media (max-width: 640px) {
  .page {
    width: min(100% - 20px, var(--max-width));
    padding-top: 10px;
  }

  .hero,
  .panel-header,
  .info-box,
  .links-grid {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero {
    padding-top: 20px;
    padding-bottom: 20px;
  }

  .calendar-wrap {
    padding: 12px;
  }

  .calendar-frame {
    min-height: 620px;
  }

  .button {
    width: 100%;
  }
}