:root {
  --ink: #20231f;
  --muted: #6e746b;
  --paper: #f6f3ed;
  --card: #fffdf8;
  --line: #ded9cf;
  --accent: #455345;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

a { color: inherit; text-decoration: none; }

.site-header {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 5vw;
  border-bottom: 1px solid rgba(0,0,0,.06);
  background: rgba(246,243,237,.92);
  backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  font-family: Georgia, serif;
  font-size: 1.2rem;
  letter-spacing: .02em;
}

.site-header nav {
  display: flex;
  gap: 22px;
  align-items: center;
  font-size: .95rem;
}

.account-link {
  border: 1px solid var(--line);
  padding: 10px 14px;
  border-radius: 999px;
}

.hero {
  min-height: 78vh;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 5vw;
  padding: 6vw 5vw;
  align-items: center;
}

.hero-copy { max-width: 620px; }
.hero h1, .section h2, .login-card h1 {
  font-family: Georgia, serif;
  font-weight: 400;
  line-height: 1.02;
}

.hero h1 { font-size: clamp(3rem, 6vw, 6.6rem); margin: 12px 0 24px; }
.hero p { font-size: 1.08rem; line-height: 1.7; color: var(--muted); }

.eyebrow {
  text-transform: uppercase;
  font-size: .72rem !important;
  letter-spacing: .19em;
  font-weight: 700;
  color: var(--accent) !important;
}

.primary-button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 19px;
  border: 0;
  border-radius: 999px;
  color: white;
  background: var(--accent);
  font: inherit;
  cursor: pointer;
}

.hero-image {
  min-height: 62vh;
  border-radius: 30px;
  background:
    linear-gradient(to top, rgba(0,0,0,.08), transparent 45%),
    url("https://images.unsplash.com/photo-1600210492486-724fe5c67fb0?auto=format&fit=crop&w=1600&q=82")
    center/cover no-repeat;
}

.section { padding: 7vw 5vw; }
.section-heading { max-width: 700px; margin-bottom: 38px; }
.section h2 { font-size: clamp(2.3rem, 4vw, 4.5rem); margin: 8px 0; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.decor-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  padding-bottom: 18px;
}

.decor-card h3, .decor-card p { margin-left: 18px; margin-right: 18px; }
.decor-card p { color: var(--muted); line-height: 1.55; }

.decor-photo { aspect-ratio: 4/3; background-size: cover; background-position: center; }
.photo-living { background-image: url("https://images.unsplash.com/photo-1618221195710-dd6b41faaea6?auto=format&fit=crop&w=1200&q=82"); }
.photo-bedroom { background-image: url("https://images.unsplash.com/photo-1616594039964-ae9021a400a0?auto=format&fit=crop&w=1200&q=82"); }
.photo-kitchen { background-image: url("https://images.unsplash.com/photo-1556912167-f556f1f39fdf?auto=format&fit=crop&w=1200&q=82"); }

.tips-section {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 7vw;
}

.tips article {
  padding: 26px 0;
  border-top: 1px solid var(--line);
}

.tips span { color: var(--muted); font-size: .8rem; }
.tips h3 { margin: 8px 0; }
.tips p { color: var(--muted); line-height: 1.6; }

footer {
  padding: 28px 5vw;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: .9rem;
}

.login-wrap {
  min-height: calc(100vh - 72px);
  display: grid;
  place-items: center;
  padding: 30px;
}

.login-card {
  width: min(440px, 100%);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 34px;
  box-shadow: 0 24px 80px rgba(37,38,34,.08);
}

.login-card h1 { font-size: 3rem; margin: 10px 0; }
.muted { color: var(--muted); line-height: 1.5; }

.login-card form {
  display: grid;
  gap: 17px;
  margin-top: 28px;
}

.login-card label { font-size: .88rem; font-weight: 600; }
.login-card input {
  width: 100%;
  margin-top: 7px;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 0 14px;
  font: inherit;
  background: white;
}

.form-button { width: 100%; margin-top: 4px; }
.form-button:disabled { opacity: .6; cursor: wait; }

.service-error {
  margin-top: 18px;
  padding: 13px 14px;
  border: 1px solid #dbcaca;
  border-radius: 12px;
  color: #6f4141;
  background: #faf0f0;
  font-size: .9rem;
}

@media (max-width: 760px) {
  .site-header nav a:not(.account-link) { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 12vw; }
  .hero-image { min-height: 48vh; }
  .card-grid, .tips-section { grid-template-columns: 1fr; }
  footer { gap: 14px; flex-direction: column; }
}
