:root {
  color: #17251f;
  background: #f5f2eb;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }

.shell { width: min(100% - 2rem, 760px); margin: 0 auto; padding: 1.5rem 0 5rem; }
.masthead { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: inherit; text-decoration: none; font-weight: 750; letter-spacing: -.03em; }
.brand-mark { display: grid; width: 2rem; height: 2rem; place-items: center; border-radius: 50%; background: #17251f; color: #f8f6f0; font-family: Georgia, serif; font-size: 1.25rem; }
.timezone { margin: 0; color: #5c655f; font-size: .75rem; text-align: right; }
.hero { padding: 5.5rem 0 3.75rem; }
.eyebrow { margin: 0 0 .65rem; color: #a25032; font-size: .71rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
h1, h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; letter-spacing: -.055em; }
h1 { max-width: 680px; margin: 0; font-size: clamp(3.2rem, 12vw, 6.4rem); line-height: .91; }
h2 { margin: 0; font-size: clamp(2rem, 6vw, 2.8rem); line-height: 1; }
.intro { max-width: 490px; margin: 1.8rem 0 0; color: #4e5a52; font-size: 1.05rem; line-height: 1.6; }
.notice { display: flex; gap: .75rem; margin-bottom: 1.5rem; padding: .85rem 1rem; border: 1px solid #d9d3c7; border-radius: .5rem; color: #596158; font-size: .82rem; line-height: 1.45; }
.notice span { color: #a25032; font-size: 1.35rem; line-height: .75; }
.notice p { margin: 0; }
.create-card { padding: 2rem; background: #e6e5d8; border-radius: 1.25rem; }
.section-heading { margin-bottom: 1.8rem; }
.section-heading-row { display: flex; justify-content: space-between; align-items: end; gap: 1rem; }
form { display: grid; gap: 1.7rem; }
fieldset { display: grid; gap: 1rem; padding: 0; border: 0; }
legend { padding: 0; margin-bottom: .8rem; font-size: .85rem; font-weight: 750; }
.type-switch { display: flex; width: fit-content; overflow: hidden; border: 1px solid #bfc5ba; border-radius: .35rem; }
.type-switch label { position: relative; padding: .55rem .8rem; font-size: .82rem; cursor: pointer; }
.type-switch input { position: absolute; opacity: 0; }
.type-switch input:checked + span { color: #f8f6f0; }
.type-switch label:has(input:checked) { background: #17251f; }
.field { display: grid; gap: .5rem; color: #344138; font-size: .82rem; font-weight: 700; }
textarea, input[type="date"], input[type="file"] { width: 100%; padding: .75rem; border: 1px solid #bac1b8; border-radius: .35rem; background: #fbfaf5; color: inherit; }
textarea { resize: vertical; min-height: 7.5rem; line-height: 1.45; }
small { color: #657067; font-size: .72rem; font-weight: 500; line-height: 1.35; }
.hidden { display: none; }
.primary-button, .secondary-button, .open-button { border: 0; border-radius: .35rem; font-weight: 750; }
.primary-button { justify-self: start; padding: .85rem 1rem; background: #17251f; color: #fffdf7; }
.primary-button span { padding-left: 1.5rem; }
.capsules { padding: 4rem 0; }
.capsule-count { color: #687169; font-size: .78rem; }
.empty-state { color: #687169; font-size: .94rem; }
.capsule-list { display: grid; gap: .75rem; padding: 0; margin: 0; list-style: none; }
.capsule-item { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.15rem 0; border-bottom: 1px solid #d4d2c9; }
.capsule-status { margin: 0 0 .2rem; color: #a25032; font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.capsule-date { margin: 0; font-family: Georgia, serif; font-size: 1.15rem; }
.open-button { padding: .55rem .8rem; background: transparent; color: #738077; border: 1px solid #c6cbc3; cursor: not-allowed; }
.open-button.is-open { background: #17251f; color: #fffdf7; border-color: #17251f; cursor: pointer; }
.open-dialog { width: min(100% - 2rem, 600px); border: 0; border-radius: 1.25rem; padding: 1.75rem; color: #17251f; background: #f8f6f0; box-shadow: 0 24px 70px #17251f55; }
.open-dialog::backdrop { background: #17251faa; }
.dialog-top { display: flex; justify-content: space-between; align-items: start; }
.icon-button { border: 0; background: none; color: #17251f; font-size: 1.8rem; line-height: .7; }
.window-label { margin: 0 0 1.5rem; color: #69736a; font-size: .82rem; }
.revealed-content { max-height: 45vh; overflow: auto; margin-bottom: 1.75rem; padding: 1.2rem; background: #e6e5d8; border-radius: .6rem; line-height: 1.6; white-space: pre-wrap; }
.revealed-content img { display: block; width: 100%; height: auto; border-radius: .35rem; }
.secondary-button { justify-self: start; padding: .75rem .9rem; background: #a25032; color: #fffdf7; }
@media (max-width: 520px) {
  .shell { width: min(100% - 1.25rem, 760px); }
  .hero { padding: 4rem 0 3rem; }
  .create-card { padding: 1.35rem; }
  .timezone { max-width: 120px; }
}
