:root {
  color-scheme: light;
  --ink: #202528;
  --muted: #687279;
  --line: #ded9d2;
  --paper: #f8f7f3;
  --surface: #ffffff;
  --sage: #647a64;
  --sage-dark: #3d5845;
  --coral: #c96f5b;
  --clay: #a97155;
  --gold: #b28a45;
  --shadow: 0 24px 70px rgba(32, 37, 40, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 64px);
  border-bottom: 1px solid rgba(222, 217, 210, 0.86);
  background: rgba(248, 247, 243, 0.9);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.98rem;
  font-weight: 850;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 8px;
  background: var(--ink);
  color: white;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 30px);
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 750;
}

.nav a:hover,
.nav-button:hover {
  color: var(--sage-dark);
}

.nav-button {
  border: 0;
  background: transparent;
  color: inherit;
  font-weight: 850;
}

.hero {
  display: grid;
  min-height: calc(100vh - 73px);
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  align-items: center;
  gap: clamp(28px, 5vw, 70px);
  padding: clamp(32px, 6vw, 72px) clamp(20px, 5vw, 64px) clamp(34px, 7vw, 78px);
  overflow: hidden;
}

.hero-copy {
  max-width: 700px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--sage-dark);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  max-width: 11ch;
  font-size: clamp(3rem, 7vw, 6.1rem);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  max-width: 820px;
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.06;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 10px;
  font-size: 1.18rem;
  line-height: 1.2;
}

.lead {
  max-width: 650px;
  margin: 24px 0 0;
  color: #464d50;
  font-size: clamp(1.08rem, 2vw, 1.35rem);
}

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

.hero-visual {
  min-height: 440px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-visual img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 440px;
  object-fit: cover;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  padding: 0 20px;
  font-weight: 850;
}

.button.primary {
  background: var(--sage);
  color: white;
}

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

.button.ghost {
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
}

.button.ghost:hover {
  border-color: var(--sage);
  color: var(--sage-dark);
}

.entry,
.features,
.dashboard,
.workspace {
  padding: clamp(44px, 8vw, 92px) clamp(20px, 5vw, 64px);
}

.entry {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(340px, 1.2fr);
  gap: clamp(24px, 6vw, 72px);
  align-items: start;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.entry-copy p:not(.eyebrow),
.muted {
  max-width: 660px;
  color: var(--muted);
  font-size: 1.08rem;
}

.entry-panels {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
}

.panel-form,
.composer {
  display: grid;
  gap: 14px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf9;
  box-shadow: var(--shadow);
}

.setup-form {
  background: #f3f6ef;
}

label {
  color: #3f474b;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
}

input,
select {
  min-height: 48px;
  padding: 0 14px;
}

textarea {
  min-height: 120px;
  padding: 12px 14px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--sage);
  outline: 3px solid rgba(100, 122, 100, 0.18);
}

.form-message {
  min-height: 24px;
  margin: 0;
  color: var(--coral);
  font-weight: 750;
}

.form-message.success {
  color: var(--sage-dark);
}

.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.features article,
.date-list article,
.feed-card,
.album-card,
.photo-card,
.empty-state,
.stats div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.features article {
  min-height: 210px;
  padding: 26px;
}

.features span {
  display: inline-block;
  margin-bottom: 30px;
  color: var(--clay);
  font-weight: 900;
}

.features p,
.feed-card p,
.album-card p,
.date-list span {
  margin: 0;
  color: var(--muted);
}

.app-shell[hidden],
[hidden] {
  display: none !important;
}

.dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  gap: 28px;
  align-items: end;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #eef2ea;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.stats div {
  padding: 20px;
}

.stats strong {
  display: block;
  font-size: 2rem;
  line-height: 1;
}

.stats span {
  color: var(--muted);
  font-size: 0.92rem;
}

.section-heading {
  display: grid;
  gap: 4px;
  margin-bottom: 28px;
}

.feed-list,
.album-list,
.album-grid,
.date-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.feed-card,
.album-card,
.empty-state {
  padding: 22px;
}

.feed-card header,
.album-card header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.feed-card time,
.album-card span,
.photo-meta span {
  color: var(--muted);
  font-size: 0.9rem;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(340px, 1.15fr);
  gap: clamp(24px, 5vw, 64px);
  border-top: 1px solid var(--line);
}

.compact {
  box-shadow: none;
}

.file-picker {
  display: grid;
  min-height: 48px;
  align-items: center;
  border: 1px dashed var(--sage);
  border-radius: 8px;
  padding: 0 14px;
  background: #f7faf4;
  color: var(--sage-dark);
}

.file-picker input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
}

.album-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.photo-card {
  overflow: hidden;
}

.photo-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.photo-meta {
  display: grid;
  gap: 4px;
  padding: 14px;
}

.date-list article {
  display: grid;
  gap: 6px;
  padding: 22px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 24px clamp(20px, 5vw, 64px);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer a {
  color: var(--sage-dark);
  font-weight: 800;
}

@media (max-width: 980px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero,
  .entry,
  .dashboard,
  .split {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-visual,
  .hero-visual img {
    min-height: 320px;
  }

  .entry-panels,
  .features,
  .album-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .nav {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
    font-size: 0.88rem;
  }

  h1 {
    font-size: 3rem;
  }

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

  .button {
    width: 100%;
  }

  .site-footer {
    flex-direction: column;
  }
}
