/* Sophie Dev — "the desk" */
:root {
  --desk: #5A3D2B;
  --on-desk: #F3E9DC;
  --paper: #FBFAF4;
  --ink: #2B2620;
  --ink-soft: #6B6458;
  --blue-ink: #1E2A55;
  --red: #D93A2B;
  --blue: #1F5FBF;
  --hand: "Caveat", cursive;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "DM Mono", ui-monospace, monospace;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--desk);
  background-image: repeating-linear-gradient(92deg, rgba(0,0,0,.05) 0 2px, transparent 2px 9px, rgba(255,255,255,.03) 9px 10px, transparent 10px 23px);
  color: var(--on-desk);
  font-family: var(--sans);
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 3px solid #FFE066; outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }

/* Objects on the desk */
.obj {
  box-shadow: 0 1px 1px rgba(0,0,0,.18), 0 8px 18px rgba(0,0,0,.22), 0 24px 40px rgba(0,0,0,.18);
  transition: transform .25s ease;
}
a.obj:hover { transform: translateY(-4px) rotate(0deg) !important; }
.lined { background-color: var(--paper); background-image: repeating-linear-gradient(var(--paper) 0 27px, #C9DCEB 27px 28px); }
.hand { font-family: var(--hand); }
.mono-label { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: #6E665A; }

/* Header: label-maker tapes */
.site-header { padding-top: 36px; }
.site-header .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.site-header nav { display: flex; gap: 12px; flex-wrap: wrap; }
.tape {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
  background: #151515; color: #F2F2F2; font-family: var(--mono); font-size: 14px; letter-spacing: .18em;
  box-shadow: 0 2px 4px rgba(0,0,0,.35); transition: transform .2s ease;
}
.tape:hover { transform: translateY(-2px) rotate(0deg) !important; }
.tape.logo { font-size: 18px; letter-spacing: .22em; padding: 0 18px; transform: rotate(-1.5deg); }
.tape.red { background: var(--red); color: #fff; }
.tape.blue { background: var(--blue); color: #fff; }

main { padding: 48px 0 64px; }
.row { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; justify-content: center; }
.row + .row { margin-top: 72px; }
.row.center { align-items: center; gap: 48px; }

/* Notebook */
.notebook { flex: 1 1 640px; max-width: 820px; min-width: 0; display: flex; flex-wrap: wrap; color: var(--ink); border-radius: 6px; transform: rotate(-1deg); background: var(--paper); }
.notebook .page { flex: 1 1 300px; min-width: 0; position: relative; }
.notebook .left { padding: 44px 36px 40px 44px; border-right: 2px solid #E3DED2; }
.notebook .left::before { content: ""; position: absolute; left: 22px; top: 0; bottom: 0; border-left: 2px solid rgba(217,58,43,.35); }
.notebook h1 { margin-top: 14px; font-family: var(--hand); font-weight: 700; font-size: clamp(48px, 6vw, 76px); line-height: .95; color: var(--blue-ink); }
.notebook .lead { margin-top: 22px; font-family: var(--hand); font-weight: 500; font-size: 26px; line-height: 1.1; }
.notebook .right { padding: 40px 36px; display: flex; justify-content: center; align-items: center; }
.sketch { display: flex; gap: 22px; align-items: center; transform: rotate(2deg); }
.sketch-phone { width: 120px; height: 236px; border: 2.5px solid #4A4A4A; border-radius: 22px; padding: 14px 10px; display: flex; flex-direction: column; gap: 8px; }
.sketch-phone div { border: 1.5px solid #6A6A6A; border-radius: 8px; }
.sketch-note { font-family: var(--hand); font-size: 22px; line-height: 1.1; color: #4A4A4A; max-width: 120px; }

/* Phone with sticky note */
.phone { flex: 0 0 auto; width: 280px; max-width: 100%; height: 540px; border-radius: 44px; background: #1A1A1C; padding: 12px; transform: rotate(6deg); margin-top: 36px; display: block; }
.phone .screen { width: 100%; height: 100%; border-radius: 34px; background: #2A2A30; display: grid; place-items: center; }

/* Sticky notes */
.sticky { width: 210px; height: 210px; padding: 22px; color: var(--ink); font-family: var(--hand); }
.sticky .rule { font-family: var(--mono); font-size: 14px; letter-spacing: .1em; }
.sticky .text { margin-top: 10px; font-size: 31px; font-weight: 700; line-height: 1; }
.sticky.yellow { background: #FFE066; }
.sticky.pink { background: #FF9EB1; }
.sticky.sky { background: #8FD3F4; }
.phone .sticky { width: 200px; height: 200px; padding: 20px; transform: rotate(-9deg); display: flex; flex-direction: column; justify-content: space-between; }

/* Index card */
.index-card { width: 380px; max-width: 100%; color: var(--ink); padding: 22px 26px 26px; transform: rotate(2.5deg); margin-top: 10px; position: relative; border-top: 30px solid var(--paper); }
.index-card::before { content: ""; position: absolute; top: -30px; left: 0; right: 0; height: 30px; border-bottom: 2px solid rgba(217,58,43,.5); }
.index-card h2 { position: absolute; top: -26px; left: 26px; font-weight: 500; font-size: 13px; }
.checklist { list-style: none; margin: 0; padding: 0; font-family: var(--hand); font-size: 27px; line-height: 28px; }
.checklist li { display: flex; gap: 12px; }
.checklist .done { color: #2E8B57; font-weight: 700; }
.checklist .todo { color: var(--red); font-weight: 700; }

/* To-do pad */
.todo-pad { width: 260px; max-width: 100%; background: #fff; color: var(--ink); padding: 18px 22px 24px; transform: rotate(-5deg); border-top: 10px dotted #D9D2C6; }
.todo-pad h2 { margin-bottom: 10px; font-weight: 500; font-size: 13px; }
.todo-pad ul { list-style: none; margin: 0; padding: 0; font-family: var(--hand); font-size: 26px; line-height: 1.25; }
.todo-pad li { display: flex; gap: 10px; }
.todo-pad .struck { color: #6E665A; text-decoration: line-through; }

/* Mug & pencil */
.mug { width: 210px; height: 210px; border-radius: 50%; background: #EDE6DA; display: grid; place-items: center; position: relative; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.mug::before { content: ""; width: 160px; height: 160px; border-radius: 50%; background: #4A2C1C; box-shadow: inset 0 6px 14px rgba(0,0,0,.5); }
.mug::after { content: ""; position: absolute; right: -46px; top: 76px; width: 60px; height: 58px; border: 16px solid #EDE6DA; border-left: 0; border-radius: 0 30px 30px 0; }
.pencil { width: 340px; max-width: 80%; height: 16px; display: flex; transform: rotate(-12deg); filter: drop-shadow(0 6px 6px rgba(0,0,0,.35)); }
.pencil .eraser { width: 22px; background: #E8A6A6; border-radius: 4px 0 0 4px; }
.pencil .band { width: 8px; background: #B9B9B9; }
.pencil .body { flex: 1; background: #F2C230; }
.pencil .tip { width: 0; height: 0; border-top: 8px solid transparent; border-bottom: 8px solid transparent; border-left: 34px solid #E9C9A0; }

/* Business card */
.biz-card { width: 420px; max-width: 100%; min-height: 240px; background: #F6F1E7; color: #1E1B17; padding: 30px 32px; transform: rotate(3deg); display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.biz-card .top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.biz-card h2 { font-size: 26px; font-weight: 700; letter-spacing: -.02em; }
.biz-card .mark { width: 34px; height: 34px; background: #1E1B17; color: #F6F1E7; display: grid; place-items: center; font-family: var(--mono); font-size: 12px; }
.biz-card .primary { display: flex; align-items: center; min-height: 44px; font-size: 20px; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.biz-card .secondary { color: #4A443B; text-decoration: underline; text-underline-offset: 3px; }

/* Text pages: a typed sheet on the desk */
.sheet { max-width: 800px; margin: 0 auto; background: var(--paper); color: var(--ink); padding: 56px clamp(24px, 6vw, 72px) 64px; transform: rotate(-.6deg); }
.sheet h1 { font-family: var(--hand); font-weight: 700; font-size: clamp(44px, 6vw, 64px); line-height: 1; color: var(--blue-ink); margin: 10px 0 8px; }
.sheet h2 { font-size: 20px; font-weight: 700; margin: 32px 0 10px; }
.sheet p, .sheet li { font-size: 17px; line-height: 1.6; }
.sheet p + p { margin-top: 12px; }
.sheet ul { padding-left: 22px; margin: 0; }
.sheet a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.sheet .meta { color: var(--ink-soft); }
.sheet dl { display: grid; grid-template-columns: max-content 1fr; gap: 10px 28px; margin: 24px 0 0; font-size: 17px; }
.sheet dt { font-family: var(--mono); font-size: 13px; letter-spacing: .08em; color: var(--ink-soft); padding-top: 3px; }
.sheet dd { margin: 0; }
.sheet details { border-top: 1px solid #E3DED2; padding: 14px 0; }
.sheet details:last-of-type { border-bottom: 1px solid #E3DED2; }
.sheet summary { cursor: pointer; font-weight: 700; font-size: 18px; min-height: 28px; }
.sheet details p { margin-top: 8px; color: var(--ink-soft); }
@media (max-width: 520px) { .sheet dl { grid-template-columns: 1fr; gap: 2px; } .sheet dd { margin-bottom: 10px; } }

/* Footer */
.site-footer { border-top: 1px solid rgba(243,233,220,.25); }
.site-footer .wrap { padding-top: 24px; padding-bottom: 40px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; line-height: 1.7; color: rgba(243,233,220,.88); }
.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer nav a { text-decoration: underline; text-underline-offset: 3px; }

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