/* StoryLooks website — same look as the emails: warm cream, serif headings, soft cards. */
:root {
  --page: #f3eee7;
  --card: #ffffff;
  --ink: #2a2420;
  --soft: #6f655c;
  --line: #e7dfd4;
  --accent: #8a3b2b;
  --chip: #f7f2ec;
  --good: #1e5b2e;
  --good-bg: #e6f4ea;
  --bad: #8a2a1c;
  --bad-bg: #fbe9e7;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--page); color: var(--ink); font: 17px/1.55 var(--sans); }
img { max-width: 100%; display: block; }
a { color: var(--accent); }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 640px; margin: 0 auto; padding: 0 16px; }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; }
.wordmark { font-family: var(--serif); font-size: 22px; letter-spacing: 5px; color: var(--ink); text-decoration: none; }
.btn {
  display: inline-block; border: 0; border-radius: 999px; background: var(--ink); color: #fff;
  font: 600 16px/1 var(--sans); padding: 14px 24px; text-decoration: none; cursor: pointer;
}
.btn:hover { background: #3d342f; }
.btn:disabled { opacity: .55; cursor: default; }
.btn.small { font-size: 14px; padding: 10px 18px; }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn.ghost:hover { background: var(--chip); }
.btn.danger { background: var(--bad); }

/* Home */
.hero { padding: 36px 0 28px; text-align: center; }
.kicker { font: 600 12px/1 var(--sans); letter-spacing: 2px; text-transform: uppercase; color: var(--accent); }
h1, h2, h3 { font-family: var(--serif); font-weight: normal; line-height: 1.15; margin: 0; }
h1 { font-size: clamp(38px, 8vw, 64px); margin: 12px 0 16px; }
h2 { font-size: clamp(28px, 5vw, 38px); margin-bottom: 12px; }
h3 { font-size: 22px; margin-bottom: 6px; }
.lead { font-family: var(--serif); font-size: 19px; color: var(--ink); max-width: 620px; margin: 0 auto 26px; }
.muted { color: var(--soft); }
.fine { font-size: 13px; color: var(--soft); }

.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 18px 0 8px; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 12px; }
.gallery figcaption { font-family: var(--serif); font-style: italic; font-size: 15px; color: var(--soft); margin-top: 8px; text-align: center; }
@media (max-width: 760px) { .gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; } }

.section { padding: 44px 0; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 22px; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.num { font-family: var(--serif); font-size: 30px; color: var(--accent); line-height: 1; margin-bottom: 10px; }
.note { background: var(--chip); border-radius: 14px; padding: 20px 22px; }
.center { text-align: center; }

.foot { border-top: 1px solid var(--line); padding: 26px 0 40px; margin-top: 30px; font-size: 14px; color: var(--soft); }
.foot a { color: var(--soft); }

/* Forms */
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 26px 22px; margin: 18px 0; }
@media (max-width: 480px) { .panel { padding: 22px 16px; } }
.panel h2 { font-size: 26px; }
label, .label { display: block; font-weight: 600; font-size: 15px; margin: 18px 0 6px; }
.hint { font-weight: normal; font-size: 13px; color: var(--soft); margin: -2px 0 6px; }
input[type=text], input[type=email], input[type=number], textarea, select {
  width: 100%; font: 17px/1.3 var(--sans); color: var(--ink); background: #fff;
  border: 1px solid #d9cfc2; border-radius: 10px; padding: 12px 12px;
}
textarea { min-height: 84px; resize: vertical; }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
@media (max-width: 420px) { .row { grid-template-columns: 1fr; } }
.choice { display: flex; gap: 8px; flex-wrap: wrap; }
.choice label { margin: 0; font-weight: normal; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span { display: inline-block; padding: 10px 18px; border: 1px solid #d9cfc2; border-radius: 999px; background: #fff; cursor: pointer; }
.choice input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.choice input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: normal; margin: 12px 0; }
.check input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--ink); }

.drop {
  display: flex; align-items: center; justify-content: center; text-align: center; min-height: 96px;
  border: 1.5px dashed #cbbfae; border-radius: 12px; background: var(--chip); padding: 14px; cursor: pointer;
  color: var(--soft); font-size: 15px;
}
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop.has { border-style: solid; background: #fff; }
.thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.thumbs img { width: 64px; height: 80px; object-fit: cover; border-radius: 8px; }

.msg { border-radius: 12px; padding: 14px 16px; margin: 16px 0; font-size: 15px; }
.msg.good { background: var(--good-bg); color: var(--good); }
.msg.bad { background: var(--bad-bg); color: var(--bad); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.hidden { display: none !important; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.prose h2 { margin-top: 28px; font-size: 24px; }
.prose p, .prose li { color: var(--ink); }
