@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600&family=Playfair+Display:ital,wght@0,500;1,500&display=swap');
:root { color: #28241f; background: #f2ede4; font-family: "DM Sans", sans-serif; font-synthesis: none; }
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: radial-gradient(circle at 75% 10%, #faf7f0 0, transparent 28%), #f2ede4; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
.shell { max-width: 1180px; margin: auto; padding: 0 28px 64px; }
header { display: flex; justify-content: space-between; align-items: center; height: 78px; border-bottom: 1px solid #d7cdbf; }
.brand { color: inherit; text-decoration: none; font: 500 20px "Playfair Display", serif; }
.text-button { border: 0; background: none; color: #70675e; }
.hero { padding: 68px 0 48px; }
.hero h1, .welcome h1 { font: 500 clamp(48px, 8vw, 92px)/.98 "Playfair Display", serif; letter-spacing: -.045em; margin: 10px 0 20px; }
.hero h1 em { color: #9b4c38; }.hero > p:last-child, .lede { color: #70675e; max-width: 560px; line-height: 1.7; }
.eyebrow { color: #9b4c38; text-transform: uppercase; letter-spacing: .17em; font-size: 11px; font-weight: 600; }
.tabs { display: flex; gap: 30px; border-bottom: 1px solid #d7cdbf; margin-bottom: 28px; }
.tabs button { border: 0; border-bottom: 2px solid transparent; background: none; padding: 14px 0; text-transform: capitalize; color: #766d64; }
.tabs button.active { color: #28241f; border-color: #9b4c38; }
.panel-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(300px, .75fr); gap: 24px; align-items: start; }
.card { background: rgba(255,255,255,.54); border: 1px solid #ddd3c5; border-radius: 3px; padding: 30px; box-shadow: 0 18px 50px rgba(70,54,39,.05); }
.card h2 { font: 500 30px "Playfair Display", serif; margin: 4px 0 22px; }
.section-title { display: flex; justify-content: space-between; align-items: start; }.section-title > span { color: #9b4c38; border: 1px solid #cdbbad; border-radius: 50%; width: 34px; height: 34px; display: grid; place-items: center; }
.birthday { display: grid; grid-template-columns: 58px 1fr 30px; gap: 18px; align-items: center; border-top: 1px solid #dfd7cc; padding: 18px 0; }.birthday h3, .poem h3 { margin: 0 0 4px; font: 500 20px "Playfair Display", serif; }.birthday p, .byline { margin: 0; color: #81776d; font-size: 13px; }
.date-tile { color: white; padding: 9px; text-align: center; }.date-tile strong { display: block; font: 500 22px "Playfair Display", serif; }.date-tile span { font-size: 10px; text-transform: uppercase; letter-spacing: .1em; }.date-tile.winter { background: linear-gradient(145deg, #eef7fb, #9fc3d4); color: #345766; box-shadow: inset 0 0 0 1px rgba(255,255,255,.65); }.date-tile.spring { background: linear-gradient(145deg, #dceecf, #79a978); color: #244e38; }.date-tile.summer { background: linear-gradient(145deg, #f7d878, #e89a49); color: #68401c; }.date-tile.autumn { background: linear-gradient(145deg, #d98a50, #9b4c38); color: #fff9ef; }
.delete { border: 0; background: none; color: #9b9186; font-size: 24px; }.delete:hover { color: #9b4c38; }
label { display: grid; gap: 7px; font-size: 12px; color: #665e56; margin-bottom: 17px; }
input, textarea, select { width: 100%; background: #fbf9f4; border: 1px solid #d6cbbc; color: #28241f; border-radius: 2px; padding: 11px 12px; outline: none; } textarea { resize: vertical; } input:focus, textarea:focus, select:focus { border-color: #9b4c38; box-shadow: 0 0 0 3px rgba(155,76,56,.1); }
.primary { background: #9b4c38; color: white; border: 0; padding: 13px 20px; border-radius: 2px; font-weight: 600; }.primary:hover { background: #833d2c; }
.form-card .primary, .settings .primary { width: 100%; margin-top: 4px; }
.poem { border-top: 1px solid #dfd7cc; padding: 0; }.poem details { margin: 0; }.poem summary { margin: 0; padding: 20px 0; color: inherit; cursor: pointer; font-size: inherit; }.poem summary:hover h3 { color: #9b4c38; }.poem-content { padding: 0 0 20px; }.poem-content > p:not(.byline) { white-space: pre-line; line-height: 1.65; color: #4d4740; }.tag-row { display: flex; flex-wrap: wrap; gap: 7px; }.tag-row span { font-size: 11px; padding: 4px 8px; background: #e9ded1; color: #765444; }
.library-filters { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 10px; margin: 4px 0 18px; width: 100%; }.library-filters > * { min-width: 0; }.poem-heading { display: flex; align-items: start; justify-content: space-between; gap: 12px; }.access { font-size: 11px; border-radius: 999px; padding: 4px 8px; white-space: nowrap; }.access.public { background: #dcebdd; color: #35623e; }.access.private { background: #eee2d7; color: #765444; }.source { font-size: 12px; color: #70675e; }.source a { color: #8a4735; } .form-card details { margin: 0 0 18px; } .form-card summary { margin: 0 0 14px; color: #765444; cursor: pointer; font-size: 13px; }
.settings { max-width: 760px; }.two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }.check { display: flex; grid-template-columns: auto 1fr; align-items: center; }.check input { width: auto; }
.empty, .loading { color: #81776d; font-style: italic; }.error { background: #f4dcd6; color: #7c2f20; border-left: 3px solid #9b4c38; padding: 12px 15px; }
.welcome { min-height: 100vh; display: grid; align-content: center; justify-items: start; max-width: 760px; padding: 64px clamp(28px, 10vw, 130px); }.welcome h1 { font-size: clamp(64px, 12vw, 120px); }.welcome .primary { margin-top: 18px; min-width: 140px; }.moon { color: #9b4c38; font-size: 38px; }
@media (max-width: 920px) { .panel-grid { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .two { grid-template-columns: 1fr; }.hero { padding-top: 44px; }.card { padding: 22px; }.tabs { gap: 20px; }.library-filters { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }.library-filters input { grid-column: 1 / -1; } }
@media (max-width: 560px) { .library-filters { grid-template-columns: 1fr; }.library-filters input { grid-column: auto; } }
@media (max-width: 420px) { .library-filters { grid-template-columns: 1fr; }.library-filters input { grid-column: auto; } }
