:root {
  color-scheme: light;
  --bg: #f7f1e7;
  --paper: rgba(255, 251, 245, 0.88);
  --paper-strong: #fffaf2;
  --ink: #2e241c;
  --muted: #6f6257;
  --line: rgba(116, 89, 55, 0.16);
  --border: rgba(125, 102, 76, 0.2);
  --accent: #af6d45;
  --accent-deep: #855136;
  --accent-soft: #ecd4bc;
  --shadow: 0 24px 70px rgba(82, 56, 37, 0.16);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  position: relative;
  overflow-x: hidden;
  background:
    radial-gradient(circle at top left, rgba(244, 217, 188, 0.72), transparent 34%),
    radial-gradient(circle at 85% 18%, rgba(194, 176, 143, 0.4), transparent 22%),
    linear-gradient(160deg, #f8f2e9 0%, #efe3d3 48%, #f7f0e5 100%);
  color: var(--ink);
  font-family: "Manrope", "Segoe UI", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0, rgba(255, 255, 255, 0.08) 1px, transparent 1px, transparent 60px),
    linear-gradient(rgba(255, 255, 255, 0.05) 0, rgba(255, 255, 255, 0.05) 1px, transparent 1px, transparent 60px);
  opacity: 0.3;
}

.ambient {
  position: fixed;
  inset: auto;
  z-index: 0;
  border-radius: 999px;
  filter: blur(14px);
  pointer-events: none;
}

.ambient-one {
  top: 72px;
  left: -64px;
  width: 240px;
  height: 240px;
  background: rgba(213, 160, 112, 0.22);
}

.ambient-two {
  right: -90px;
  bottom: 80px;
  width: 280px;
  height: 280px;
  background: rgba(141, 125, 92, 0.14);
}

.shell {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 36px 0 48px;
  display: grid;
  grid-template-columns: minmax(320px, 400px) minmax(0, 1fr);
  gap: 24px;
}

.card {
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.intro {
  padding: 32px;
  background:
    linear-gradient(180deg, rgba(255, 250, 242, 0.9), rgba(248, 239, 229, 0.78)),
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.7), transparent 36%);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand-mark {
  flex: 0 0 auto;
  border-radius: 28px;
  box-shadow: 0 16px 32px rgba(138, 95, 62, 0.22);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent-deep);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  line-height: 0.95;
  letter-spacing: -0.03em;
}

h1 {
  font-size: clamp(2.7rem, 5vw, 4.4rem);
  max-width: 10ch;
}

h2 {
  font-size: clamp(2.2rem, 4.3vw, 3.1rem);
}

.lead {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.7;
  max-width: 32ch;
}

.summary-grid {
  margin-top: 28px;
  display: grid;
  gap: 14px;
}

.summary-card {
  padding: 18px 20px;
  border: 1px solid rgba(167, 132, 97, 0.16);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.5);
}

.summary-card span {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.86rem;
}

.summary-card strong {
  font-size: 1rem;
  line-height: 1.4;
}

.starter-block {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(136, 107, 76, 0.12);
}

.starter-label {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.95rem;
}

.starter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip,
.button {
  border: 0;
  border-radius: 999px;
  font: inherit;
  cursor: pointer;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease;
}

.chip {
  padding: 12px 15px;
  background: rgba(175, 109, 69, 0.08);
  color: var(--accent-deep);
  font-weight: 600;
}

.chip:hover,
.chip:focus-visible,
.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(104, 65, 41, 0.12);
}

.notebook {
  padding: 28px;
  background:
    linear-gradient(180deg, rgba(255, 251, 245, 0.98), rgba(250, 244, 236, 0.96)),
    linear-gradient(180deg, rgba(202, 174, 141, 0.08), rgba(202, 174, 141, 0));
}

.toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.field {
  display: grid;
  gap: 8px;
  width: min(100%, 360px);
}

.field span {
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.field input {
  width: 100%;
  min-height: 52px;
  padding: 0 18px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  font: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.field input:focus,
.journal-textarea:focus {
  outline: 2px solid rgba(175, 109, 69, 0.18);
  outline-offset: 2px;
}

.toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.button {
  min-height: 48px;
  padding: 0 18px;
  font-weight: 700;
}

.button.ghost {
  background: rgba(141, 104, 72, 0.08);
  color: var(--accent-deep);
}

.button.danger {
  background: #382820;
  color: #fff7f0;
}

.writing-header {
  margin-top: 24px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.notebook-tip {
  margin: 0;
  color: var(--muted);
  max-width: 24ch;
  line-height: 1.6;
  text-align: right;
}

.journal-textarea {
  width: 100%;
  min-height: 58vh;
  margin-top: 20px;
  padding: 28px 26px 34px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 30px;
  background:
    linear-gradient(90deg, rgba(220, 189, 153, 0.22), rgba(220, 189, 153, 0) 64px),
    repeating-linear-gradient(
      180deg,
      transparent 0,
      transparent 34px,
      rgba(140, 110, 79, 0.1) 34px,
      rgba(140, 110, 79, 0.1) 35px
    ),
    var(--paper-strong);
  color: var(--ink);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.74),
    inset 0 0 0 1px rgba(255, 255, 255, 0.45),
    0 16px 28px rgba(87, 63, 45, 0.08);
  font: 500 1.05rem/2 "Manrope", "Segoe UI", sans-serif;
}

.journal-textarea::placeholder {
  color: rgba(88, 67, 50, 0.45);
}

.notebook-footer {
  margin-top: 14px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 0.94rem;
}

.notebook-footer p {
  margin: 0;
}

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

  .intro,
  .notebook {
    padding: 24px;
  }

  .toolbar,
  .writing-header,
  .notebook-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .field,
  .notebook-tip {
    width: 100%;
    max-width: none;
    text-align: left;
  }

  .toolbar-actions {
    justify-content: flex-start;
  }

  .journal-textarea {
    min-height: 420px;
  }
}

@media (max-width: 640px) {
  .shell {
    width: min(100% - 20px, 100%);
    padding: 20px 0 28px;
  }

  .brand-lockup {
    flex-direction: column;
    align-items: flex-start;
  }

  h1 {
    max-width: none;
  }

  .journal-textarea {
    padding: 22px 20px 28px;
    border-radius: 24px;
    font-size: 1rem;
    line-height: 1.9;
  }
}

