:root {
  --bg: #f7f4ef;
  --paper: #fffdf9;
  --ink: #2f2720;
  --muted: #6f6153;
  --accent: #8a5a2b;
  --accent-soft: #efe6da;
  --line: #e1d5c7;
  --card: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, #f9f7f2 0%, #f2ece3 100%);
  color: var(--ink);
  font-family: "Source Sans 3", sans-serif;
}

.page {
  max-width: 1140px;
  margin: 0 auto;
  padding: 2rem 1.2rem 4rem;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  color: inherit;
  text-decoration: none;
}

.brand-logo {
  width: 152px;
  height: auto;
}

.login-logo {
  margin-bottom: 0.3rem;
}

.brand-sub {
  display: block;
  color: var(--muted);
  font-size: 0.95rem;
}

.topbar {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.outline-link {
  border: 1px solid #ccb59d;
  background: #fff;
  color: var(--ink);
  padding: 0.52rem 0.95rem;
  border-radius: 6px;
  text-decoration: none;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.hero {
  margin-top: 1.4rem;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.2rem;
  align-items: stretch;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem;
  animation: reveal 0.9s ease-out both;
}

.subnav {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.subnav-link {
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 253, 249, 0.8);
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
}

.subnav-link.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.hero-image {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  border-radius: 9px;
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--accent);
}

h1,
h2 {
  margin: 0;
  line-height: 1.16;
  font-family: "Cormorant Garamond", serif;
}

h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  max-width: 18ch;
}

.lead {
  margin-top: 1rem;
  max-width: 62ch;
  color: #40362d;
  font-size: 1.08rem;
  line-height: 1.62;
}

.compact {
  margin-top: 0.7rem;
  font-size: 1rem;
}

.cards {
  margin-top: 1.3rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(235px, 1fr));
  gap: 1rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1rem;
  box-shadow: 0 8px 24px rgba(95, 72, 48, 0.06);
  transform: translateY(10px);
  animation: rise 0.65s ease-out both;
}

.card:nth-child(2) {
  animation-delay: 0.1s;
}

.card:nth-child(3) {
  animation-delay: 0.2s;
}

.card p {
  margin: 0.6rem 0 0;
  color: #4e443b;
  line-height: 1.55;
}

.identity {
  margin-top: 1.2rem;
  background: var(--accent-soft);
  border-left: 5px solid var(--accent);
  border-radius: 8px;
  padding: 1rem 1.1rem;
}

.info-panel,
.detail-layout,
.email-panel,
.status-panel {
  margin-top: 1.2rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem;
}

.detail-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1rem;
}

.detail-list,
.bullet-list {
  margin: 0.9rem 0 0;
  padding-left: 1.1rem;
  color: #4e443b;
  line-height: 1.6;
}

.detail-list li,
.bullet-list li {
  margin-bottom: 0.55rem;
}

.email-panel form {
  display: grid;
  gap: 0.8rem;
}

.inline-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 0.75rem;
  align-items: end;
}

.inline-form label {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
}

.inline-form input {
  border: 1px solid #c8b39e;
  border-radius: 7px;
  padding: 0.65rem 0.7rem;
  font: inherit;
}

.button-secondary,
.button-primary {
  border-radius: 7px;
  padding: 0.65rem 0.95rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.button-primary {
  border: 0;
  background: var(--accent);
  color: #fff;
}

.button-secondary {
  border: 1px solid #ccb59d;
  background: #fff;
  color: var(--ink);
}

.status-panel {
  background: var(--accent-soft);
  border-left: 5px solid var(--accent);
}

.status-panel p {
  margin: 0;
}

.compact-cards {
  margin-top: 0.6rem;
}

.identity p {
  margin: 0.45rem 0;
}

.page-login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-card {
  width: min(460px, 100%);
  background: var(--paper);
  border-radius: 12px;
  border: 1px solid var(--line);
  box-shadow: 0 16px 36px rgba(82, 58, 36, 0.12);
  padding: 1.45rem;
}

.auth-form {
  margin-top: 1rem;
  display: grid;
  gap: 0.85rem;
}

.auth-form label {
  display: grid;
  gap: 0.35rem;
  font-weight: 500;
}

.auth-form input {
  border: 1px solid #c8b39e;
  border-radius: 7px;
  padding: 0.65rem 0.7rem;
  font: inherit;
}

.auth-form button {
  border: 0;
  border-radius: 7px;
  padding: 0.65rem 0.9rem;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.form-error {
  margin: 0;
  color: #b5162f;
  font-weight: 600;
}

.help-text {
  margin-top: 0.95rem;
  color: var(--muted);
  line-height: 1.55;
}

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

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 640px) {
  .page {
    padding-top: 1.1rem;
  }

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

  .hero {
    grid-template-columns: 1fr;
  }

  .detail-layout,
  .inline-form {
    grid-template-columns: 1fr;
  }

  .brand-logo {
    width: 132px;
  }
}
