:root {
  color-scheme: light;
  --ink: #20231f;
  --muted: #696e66;
  --paper: #f4f1e9;
  --card: #fffdf8;
  --line: #d9d4c8;
  --accent: #235b49;
  --accent-hover: #194537;
  --accent-soft: #dce8df;
  --error: #a33d32;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 0.9), transparent 34rem),
    var(--paper);
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.page-shell {
  width: min(100% - 2rem, 880px);
  min-height: 100vh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.site-header {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  gap: 0.7rem;
  align-items: center;
  color: inherit;
  font-weight: 750;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand-mark {
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  color: white;
  background: var(--accent);
  border-radius: 50%;
  font-family: Georgia, serif;
  font-size: 0.72rem;
}

main {
  flex: 1;
}

.hero {
  max-width: 700px;
  padding: clamp(4rem, 11vw, 7rem) 0 clamp(2.5rem, 7vw, 4rem);
}

.eyebrow,
.section-label {
  margin: 0 0 0.75rem;
  color: var(--accent);
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 650px;
  margin-bottom: 1.2rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.2rem, 9vw, 6.7rem);
  font-weight: 500;
  line-height: 0.92;
  letter-spacing: -0.055em;
}

h2 {
  margin-bottom: 0.4rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  font-weight: 500;
  letter-spacing: -0.03em;
}

.hero-copy {
  max-width: 580px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.65;
}

.card {
  background: color-mix(in srgb, var(--card) 94%, transparent);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(51, 45, 33, 0.04);
}

.access-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
  gap: 3rem;
  align-items: end;
  padding: clamp(1.5rem, 5vw, 2.5rem);
}

.muted {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.5;
}

.access-form,
.field {
  display: grid;
  gap: 0.5rem;
}

label {
  font-size: 0.82rem;
  font-weight: 750;
}

.input-row {
  display: flex;
}

input,
textarea {
  width: 100%;
  color: var(--ink);
  background: #fff;
  border: 1px solid #c9c4b9;
  border-radius: 8px;
  outline: none;
  transition: border-color 120ms, box-shadow 120ms;
}

input {
  min-height: 46px;
  padding: 0 0.85rem;
}

textarea {
  resize: vertical;
  padding: 0.8rem 0.85rem;
  line-height: 1.5;
}

input:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(35, 91, 73, 0.13);
}

.input-row input {
  border-radius: 8px 0 0 8px;
}

.button {
  min-height: 42px;
  padding: 0.65rem 1rem;
  border: 0;
  border-radius: 8px;
  font-weight: 750;
}

.input-row .button {
  border-radius: 0 8px 8px 0;
}

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

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

.button-quiet {
  color: var(--muted);
  background: transparent;
}

.button-quiet:hover {
  color: var(--ink);
  background: rgba(0, 0, 0, 0.04);
}

.form-message {
  min-height: 1.2em;
  margin: 0.55rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.form-message.error,
.error {
  color: var(--error);
}

.board {
  padding-bottom: 4rem;
}

.board-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.2rem;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.status-dot {
  width: 0.48rem;
  height: 0.48rem;
  background: #4d8c68;
  border-radius: 50%;
}

.status-error .status-dot {
  background: var(--error);
}

.composer {
  display: grid;
  grid-template-columns: 0.4fr 1fr;
  gap: 1.1rem;
  padding: 1.3rem;
}

.composer-footer {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.notes-list {
  display: grid;
  gap: 0.8rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.note {
  position: relative;
  padding: 1.2rem 1.3rem;
}

.note-top {
  display: flex;
  gap: 1rem;
  align-items: baseline;
  justify-content: space-between;
}

.note time {
  color: var(--muted);
  font-size: 0.75rem;
}

.note p {
  margin: 0.75rem 4.5rem 0 0;
  line-height: 1.6;
  white-space: pre-wrap;
}

.delete-button {
  position: absolute;
  right: 1.1rem;
  bottom: 1rem;
  padding: 0.3rem 0.5rem;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 5px;
  font-size: 0.76rem;
}

.delete-button:hover {
  color: var(--error);
  background: #f8e9e5;
}

.empty-state {
  margin-top: 1rem;
  padding: 3rem 1rem;
  color: var(--muted);
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: 12px;
}

.empty-state p {
  margin-bottom: 0.25rem;
  color: var(--ink);
  font-weight: 750;
}

.empty-state span {
  font-size: 0.9rem;
}

footer {
  display: flex;
  min-height: 90px;
  align-items: center;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 0.75rem;
}

[hidden] {
  display: none !important;
}

@media (max-width: 680px) {
  .access-card,
  .composer {
    grid-template-columns: 1fr;
  }

  .access-card {
    gap: 1.6rem;
  }

  .composer-footer {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
