:root {
  --bg: #f4f0e8;
  --text: #1e1f1d;
  --muted: #5d6058;
  --surface: #fffaf2;
  --line: #d7d0c3;
  --accent: #0f766e;
  --accent-strong: #0b5f58;
  --shadow: rgba(31, 35, 33, 0.08);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "IBM Plex Sans", "Segoe UI", Tahoma, sans-serif;
  color: var(--text);
  background: linear-gradient(170deg, #f7f3eb 0%, #efe8dc 55%, #f2ede6 100%);
  line-height: 1.55;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

h1,
h2,
.brand {
  font-family: "Fraunces", "Times New Roman", serif;
  letter-spacing: 0.01em;
}

.site-header,
.site-footer,
.container {
  width: min(980px, calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  padding: 1.1rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  position: relative;
  z-index: 2;
}

.site-header nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-header a {
  text-decoration: none;
  color: var(--text);
  border-bottom: 1px solid transparent;
}

.site-header a:hover,
.site-header a[aria-current="page"] {
  border-bottom-color: var(--accent);
}

.brand {
  font-size: 1.15rem;
  font-weight: 700;
}

.container {
  padding: 1.5rem 0 3rem;
  position: relative;
  z-index: 2;
}

.narrow {
  max-width: 760px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.1;
  margin: 0.25rem 0 1rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-size: 0.78rem;
  margin-bottom: 0.4rem;
}

.actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.2rem;
}

.button {
  display: inline-block;
  background: var(--accent);
  color: #ffffff;
  text-decoration: none;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--accent-strong);
  box-shadow: 0 4px 16px var(--shadow);
}

.button:hover {
  background: var(--accent-strong);
}

.button-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}

.grid {
  margin: 2rem 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.card {
  background: color-mix(in srgb, var(--surface) 92%, #ffffff 8%);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 4px 14px var(--shadow);
}

.login-card {
  display: grid;
  gap: 0.55rem;
  margin-top: 1rem;
  background: color-mix(in srgb, var(--surface) 92%, #ffffff 8%);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 4px 14px var(--shadow);
}

.login-card label {
  font-weight: 600;
  font-size: 0.95rem;
}

.login-card input {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.62rem 0.7rem;
  font: inherit;
  background: #fffefb;
}

.login-card .button {
  width: fit-content;
  margin-top: 0.5rem;
}

.small {
  font-size: 0.9rem;
}

.login-error {
  min-height: 1.2rem;
  margin: 0.15rem 0 0;
  color: #b42318;
  font-size: 0.92rem;
}

.notes {
  padding-left: 1rem;
}

.notes li {
  margin-bottom: 0.45rem;
}

.muted {
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1rem 0 2rem;
  color: var(--muted);
  position: relative;
  z-index: 2;
}

.bg-shape {
  position: fixed;
  z-index: 1;
  filter: blur(28px);
  opacity: 0.35;
  pointer-events: none;
}

.bg-shape-a {
  width: 280px;
  height: 280px;
  background: #9dc6b8;
  top: -80px;
  right: -50px;
  animation: floatA 12s ease-in-out infinite;
}

.bg-shape-b {
  width: 220px;
  height: 220px;
  background: #d9b98a;
  bottom: -70px;
  left: -40px;
  animation: floatB 14s ease-in-out infinite;
}

.reveal {
  opacity: 0;
  transform: translateY(10px);
  animation: reveal 0.55s ease forwards;
}

@keyframes reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floatA {
  50% { transform: translateY(14px); }
}

@keyframes floatB {
  50% { transform: translateY(-10px); }
}

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

  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }
}
