* { box-sizing: border-box; }
[hidden] { display: none !important; }
:root { color-scheme: light; --ink: #352d33; --accent: #623c52; --linen: #f5f0ea; --paper: #fffdfa; --line: #d6c8ce; }
body { margin: 0; background: var(--linen); color: var(--ink); font: 1rem/1.55 system-ui, sans-serif; }
main { max-width: 820px; margin: auto; padding: max(18px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(28px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); }
header, .identity, .actions, nav { display: flex; gap: .65rem; align-items: center; flex-wrap: wrap; }
header { justify-content: space-between; margin-bottom: 1.25rem; }
.identity img { border-radius: 14px; }
h1, h2, h3 { font-family: Georgia, serif; font-weight: normal; line-height: 1.2; }
h1 { margin: 0; font-size: 2.35rem; }
h2 { margin: 0 0 1rem; font-size: 1.85rem; }
h3 { margin-bottom: .5rem; }
nav { margin: 1rem 0; }
section { background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: clamp(16px, 4vw, 30px); }
button, select, textarea, input { font: inherit; color: inherit; }
button, select, input, textarea { border: 1px solid var(--line); border-radius: 10px; background: white; padding: .55rem .75rem; min-height: 44px; }
button { cursor: pointer; }
button:hover { border-color: var(--accent); }
button:disabled { opacity: .55; cursor: default; }
button.primary, nav button[aria-current="page"] { background: var(--accent); color: white; border-color: var(--accent); }
:focus-visible { outline: 3px solid #975e81; outline-offset: 3px; }
label { display: grid; gap: .25rem; margin: .6rem 0; }
label.check { display: flex; align-items: center; gap: .5rem; }
textarea { resize: vertical; min-height: 100px; width: 100%; }
form, .turns { margin-block: 1rem; }
.turn, article { padding: .8rem 1rem; border: 1px solid var(--line); border-radius: 12px; margin-top: .75rem; overflow-wrap: anywhere; }
.turn p, article p { margin: .4rem 0; white-space: pre-wrap; }
.turn.grace { background: #f7edf3; }
a, #status { color: var(--accent); }
#status:empty { display: none; }
#status { position: sticky; bottom: 0; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: .8rem; }
details { margin-block: .7rem; }
summary { cursor: pointer; }

#signin {
  position: relative;
  z-index: 1;
}

#google-button {
  min-height: 44px;
  max-width: 100%;
}
