@import url("https://fonts.googleapis.com/css2?family=Patrick+Hand&family=Inter:wght@400;500;600;700&display=swap");

:root {
  --paper: #f7f3ea;
  --ink: #1f1f1f;
  --muted: #5a5a5a;
  --line: #d7d1c7;
  --accent: #3b82f6;
  --tab-yellow: #f6e6a8;
  --tab-blue: #cfe2f6;
  --tab-coral: #f6d1c8;
  --shadow: rgba(0, 0, 0, 0.1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  line-height: 1.55;
  background: radial-gradient(1200px 800px at 20% 10%, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0) 55%),
    radial-gradient(900px 700px at 85% 35%, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0) 60%),
    repeating-linear-gradient(
      0deg,
      rgba(0, 0, 0, 0.015),
      rgba(0, 0, 0, 0.015) 1px,
      rgba(0, 0, 0, 0) 3px,
      rgba(0, 0, 0, 0) 7px
    ),
    linear-gradient(0deg, var(--paper), var(--paper));
}

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

.container {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 1rem;
}

.site-header,
.site-footer {
  border-top: 2px solid rgba(58, 58, 58, 0.12);
  border-bottom: 2px solid rgba(58, 58, 58, 0.12);
  padding: 0.7rem 0;
  background: rgba(247, 243, 234, 0.94);
  backdrop-filter: blur(8px);
}

.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav {
  display: flex;
  gap: 1rem;
}

.brand {
  color: var(--ink);
  font-family: "Patrick Hand", ui-rounded, cursive;
  font-size: 1.25rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.brand-notebook {
  width: 18px;
  height: 18px;
  display: block;
}

main {
  padding: 1.5rem 0 2rem;
}

.back-link {
  color: var(--muted);
  font-family: "Patrick Hand", ui-rounded, cursive;
  font-size: 1.1rem;
}

.muted {
  color: var(--muted);
}

.card {
  border: 2px solid rgba(58, 58, 58, 0.22);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.24);
  box-shadow: 0 10px 28px var(--shadow);
  padding: 1.1rem;
}

h1 {
  font-family: "Patrick Hand", ui-rounded, cursive;
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0.4rem 0 0.6rem;
}

label {
  display: block;
  font-size: 0.88rem;
  margin: 0.85rem 0 0.35rem;
  color: var(--muted);
}

input,
textarea,
select {
  width: 100%;
  box-sizing: border-box;
  border: 1.5px solid rgba(58, 58, 58, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.6);
  color: var(--ink);
  padding: 0.55rem 0.65rem;
}

textarea {
  min-height: 160px;
}

button,
.btn {
  margin-top: 1.1rem;
  border: 2px solid rgba(58, 58, 58, 0.3);
  color: var(--ink);
  background: var(--tab-yellow);
  border-radius: 999px;
  padding: 0.7rem 1.4rem;
  cursor: pointer;
  font-family: "Patrick Hand", ui-rounded, cursive;
  font-size: 1.05rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  user-select: none;
  text-decoration: none;
}

button:hover,
.btn:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.btn.secondary,
button.secondary {
  background: rgba(255, 255, 255, 0.45);
}

.btn.secondary:hover,
button.secondary:hover {
  background: rgba(255, 255, 255, 0.78);
}

.cta-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.1rem;
}

.cta-row > button,
.cta-row > .btn {
  margin-top: 0;
}

pre,
code {
  background: rgba(255, 255, 255, 0.6);
  border: 1.5px solid rgba(58, 58, 58, 0.24);
  border-radius: 8px;
}

pre {
  padding: 0.75rem;
  white-space: pre-wrap;
}

ul {
  margin-top: 0.4rem;
}

.nav a {
  font-family: "Patrick Hand", ui-rounded, cursive;
  color: var(--ink);
  font-size: 1.08rem;
}
