:root {
  --cork: #b8956a;
  --cork-dark: #8f6f4a;
  --desk: #6e5740;
  --paper: #f4ecd8;
  --mustard: #e8c547;
  --mustard-shadow: #c9a82e;
  --ink: #2a241c;
  --muted: #5c5348;
  --sans: "Bricolage Grotesque", system-ui, sans-serif;
  --serif: "Newsreader", Georgia, serif;
  --max: 1100px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--desk);
  line-height: 1.5;
  min-height: 100vh;
}

.cork-wall {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse at 20% 10%, rgba(255,255,255,0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 90%, rgba(0,0,0,0.15) 0%, transparent 45%),
    repeating-linear-gradient(
      92deg,
      transparent,
      transparent 18px,
      rgba(0,0,0,0.03) 18px,
      rgba(0,0,0,0.03) 19px
    ),
    var(--cork);
}

.desk-head {
  position: relative;
  z-index: 2;
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.brand {
  text-decoration: none;
  color: var(--paper);
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.brand-sheet {
  width: 2rem;
  height: 2.4rem;
  background: var(--mustard);
  border-radius: 2px;
  transform: rotate(-4deg);
  box-shadow: 2px 3px 0 var(--mustard-shadow);
}
.brand strong {
  display: block;
  font-weight: 700;
  font-size: 1.05rem;
}
.brand small {
  display: block;
  font-size: 0.76rem;
  opacity: 0.85;
}

.desk-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  font-size: 0.88rem;
}
.desk-nav a {
  color: var(--paper);
  text-decoration: none;
  opacity: 0.9;
}
.desk-nav a:hover { text-decoration: underline; }

.board-layout {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
  display: grid;
  grid-template-columns: minmax(260px, 320px) 1fr;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: start;
}

@media (max-width: 840px) {
  .board-layout { grid-template-columns: 1fr; }
}

.pad-column h1 {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 500;
  color: var(--paper);
  margin: 0 0 0.75rem;
  line-height: 1.2;
}

.pad-lede {
  font-family: var(--serif);
  color: rgba(244, 236, 216, 0.88);
  font-size: 1.05rem;
  margin: 0 0 1.25rem;
  max-width: 28em;
}

.keep-card {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  padding: 0.9rem 1.2rem;
  margin-bottom: 1.5rem;
  background: #2d3a2f;
  color: #e8f0e4;
  text-decoration: none;
  border-radius: 0.5rem;
  border: 1px solid rgba(255,255,255,0.12);
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.2s;
}
.keep-card:hover { background: #3a4a3d; }
.keep-card small {
  font-weight: 500;
  font-size: 0.75rem;
  opacity: 0.8;
}

.pad-form {
  background: var(--paper);
  padding: 1.25rem 1.15rem 1.1rem;
  border-radius: 4px;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.5) inset,
    0 16px 32px -20px rgba(0,0,0,0.45);
  position: relative;
}
.pad-form::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #8b3a3a;
  box-shadow: 0 2px 4px rgba(0,0,0,0.25);
}

.pad-form h2 {
  margin: 0 0 0.85rem;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  font-weight: 600;
}

.field {
  display: block;
  margin-bottom: 0.75rem;
}
.field span {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.25rem;
}
.field input,
.field textarea {
  width: 100%;
  font-family: var(--serif);
  font-size: 1rem;
  border: 1px solid rgba(42, 36, 28, 0.15);
  border-radius: 3px;
  padding: 0.5rem 0.55rem;
  background: #faf6eb;
  color: var(--ink);
}
.field textarea {
  min-height: 5.5rem;
  resize: vertical;
}

.pad-submit {
  width: 100%;
  border: none;
  border-radius: 3px;
  padding: 0.7rem;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.95rem;
  background: var(--mustard);
  color: var(--ink);
  cursor: pointer;
  box-shadow: 0 3px 0 var(--mustard-shadow);
}
.pad-submit:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 var(--mustard-shadow);
}

.local-note {
  font-size: 0.8rem;
  color: rgba(244, 236, 216, 0.75);
  margin: 1rem 0 0;
}

.sticky-field {
  min-height: 320px;
  position: relative;
  padding: 0.5rem;
}

#note-board {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.25rem;
  align-content: flex-start;
}

.board-empty {
  font-family: var(--serif);
  color: rgba(244, 236, 216, 0.7);
  font-size: 1rem;
  margin: 2rem 0;
}

.sticky {
  width: min(100%, 200px);
  background: var(--mustard);
  padding: 0.85rem 0.8rem 0.65rem;
  border-radius: 2px;
  box-shadow: 3px 4px 8px rgba(0,0,0,0.2);
  transform: rotate(calc(var(--rot, 0) * 2deg));
  position: relative;
}
.sticky::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 8px;
  background: rgba(255,255,255,0.35);
  opacity: 0.6;
}
.sticky h3 {
  margin: 0.5rem 0 0.35rem;
  font-size: 0.92rem;
  font-weight: 700;
}
.sticky p {
  margin: 0;
  font-family: var(--serif);
  font-size: 0.88rem;
  line-height: 1.35;
  white-space: pre-wrap;
  word-break: break-word;
}
.sticky footer {
  margin-top: 0.65rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.68rem;
  color: var(--muted);
}
.sticky button {
  border: none;
  background: none;
  font-family: var(--sans);
  font-size: 0.68rem;
  text-decoration: underline;
  cursor: pointer;
  color: var(--muted);
}

.desk-foot {
  position: relative;
  z-index: 2;
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 1.5rem 2.5rem;
  font-size: 0.82rem;
  color: rgba(244, 236, 216, 0.8);
  border-top: 1px solid rgba(0,0,0,0.2);
}
.desk-foot a { color: var(--paper); }
.desk-foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-top: 1rem;
}

.shell { min-height: 100vh; background: var(--cork); }
.shell .topbar {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
}
.shell .topbar .brand { color: var(--ink); }
.shell .prose {
  max-width: 42rem;
  margin: 0 auto;
  padding: 0 1.5rem 2rem;
  background: var(--paper);
  border-radius: 4px;
  margin-bottom: 2rem;
  font-family: var(--serif);
}
.shell .prose h1 { font-family: var(--sans); }
.shell .foot {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.5rem;
  font-size: 0.82rem;
  color: rgba(244, 236, 216, 0.85);
}