/* Kindly Told's own styles. /_look/look.css loads after this file and sets the type, the
   colours, the buttons and the footer; this file lays out the pages. */

main { max-width: 60rem; margin: 0 auto; padding: 0 1rem 2rem; box-sizing: border-box; }
.narrow { max-width: 40rem; }
.look .hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 1.25rem 2.5rem; align-items: start; max-width: 76rem; margin: 0 auto 1.25rem; padding: 0 1rem; box-sizing: border-box; }
.look .hero h1 { font-size: 2.4rem; margin-top: 0.5rem; }
.hero .lead { margin-bottom: 0.9rem; }
@media (max-width: 56rem) {
  .look .hero { grid-template-columns: 1fr; gap: 0.6rem; }
  .look .hero h1 { font-size: 1.85rem; margin-bottom: 0.4rem; }
  .hero .lead { font-size: 1rem; margin: 0 0 0.5rem; }
  .hero-picture { order: 2; }
  .hero-text .after { order: 3; }
}
.hero-picture { margin: 0; }
.hero-picture img { width: 100%; height: auto; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); background: #fff; display: block; }
.hero-picture figcaption { font-size: 0.85rem; color: var(--muted); margin-top: 0.35rem; }
.price-note { font-size: 0.95rem; color: var(--muted); }
.hero-buy { font-size: 0.95rem; margin: 0.4rem 0 0.3rem; }
.hero-text .behind { font-size: 0.85rem; margin-top: 0.3rem; }
.notice { background: var(--quiet); border-left: 3px solid var(--rule); padding: 0.75rem 1rem; border-radius: 6px; margin: 1rem 0; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 1rem 1.25rem; margin: 1.25rem 0; box-shadow: var(--shadow); }
.look .panel > h2:first-child, .look .panel > h1:first-child { margin-top: 0.2rem; }
.muted { color: var(--muted); }
.small-text { font-size: 0.9rem; }
.message { margin: 0.5rem 0; }
.message.error, .warn { color: var(--wrong); }
.message.ok { color: var(--right); }
.look button.small, .look .button.small { padding: 0.35rem 0.7rem; font-size: 0.9rem; min-height: 2.4rem; }
.row { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.linkbox { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin: 0.4rem 0 0.8rem; }
.linkbox code { word-break: break-all; font-size: 0.8rem; background: var(--quiet); padding: 0.35rem 0.5rem; border-radius: 4px; flex: 1 1 16rem; }
.bookmark { border-color: var(--rule); border-width: 2px; }
.qr-box { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.qr-box img { width: 9rem; height: 9rem; background: #fff; border: 1px solid var(--line); border-radius: 6px; }

/* Forms */
.field { margin: 0.75rem 0; }
.field label { display: block; font-weight: 600; margin-bottom: 0.2rem; }
.field .hint { display: block; font-weight: 400; color: var(--muted); font-size: 0.9rem; }
.look input[type=text], .look input[type=email], .look textarea { font: inherit; padding: 0.55rem 0.65rem; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--fg); width: 100%; box-sizing: border-box; }
.look input[type=text], .look input[type=email] { min-height: 2.75rem; }
.look textarea { min-height: 9rem; resize: vertical; line-height: 1.5; }
.count { font-size: 0.85rem; color: var(--muted); text-align: right; }
.check { display: flex; gap: 0.5rem; align-items: flex-start; }
.check input { margin-top: 0.3rem; width: 1.1rem; height: 1.1rem; }
.file-button { position: relative; display: inline-block; }
.look .file-button input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; min-height: 0; font-size: 0; cursor: pointer; }
.photo-preview img { max-width: 100%; max-height: 14rem; border-radius: 6px; display: block; margin: 0.4rem 0; }

/* Memories */
.memories { list-style: none; padding: 0; margin: 0; }
.memory { border-bottom: 1px solid var(--line); padding: 0.9rem 0; }
.memory:last-child { border-bottom: 0; }
.memory-text { white-space: pre-wrap; overflow-wrap: break-word; margin: 0 0 0.4rem; }
.memory-sign { font-weight: 600; }
.memory-how { color: var(--muted); font-size: 0.92rem; }
.memory-photo { margin: 0.2rem 0 0.6rem; }
.memory-photo img { max-width: 100%; max-height: 22rem; border-radius: 6px; display: block; }
.memory-actions { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.5rem; align-items: center; }
.state { display: inline-block; font-size: 0.8rem; font-weight: 600; padding: 0.1rem 0.5rem; border-radius: 999px; background: var(--quiet); color: var(--muted); }
.state.n { background: var(--accent-soft); color: var(--fg); }
.tabs { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.5rem 0 0.75rem; }
.look .tabs button { background: transparent; color: var(--fg); border: 1px solid var(--line); box-shadow: none; }
.look .tabs button[aria-pressed=true] { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); }
.pager { display: flex; gap: 0.5rem; align-items: center; margin-top: 0.75rem; }

/* The book */
.pages { display: flex; flex-wrap: wrap; gap: 1rem; }
.pages canvas { width: min(100%, 22rem); height: auto; border: 1px solid var(--line); box-shadow: var(--shadow); background: #fff; }
.offer { border-color: var(--accent); border-width: 2px; }
.offer[hidden] { display: none; }
.progress { color: var(--muted); }
.thanks-box { text-align: left; }
[hidden] { display: none !important; }

@media (max-width: 30rem) {
  .look .hero h1 { font-size: 1.6rem; }
  .pages canvas { width: 100%; }
}
