:root {
  color-scheme: light;
  --ink: #241c17;
  --muted: #645249;
  --paper: #f4eee3;
  --sheet: #fffdf8;
  --line: #d2c4b1;
  --wine: #682a30;
  --gold: #ecd6a8;
  font: 100%/1.55 system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); overflow-wrap: anywhere; }
[hidden] { display: none !important; }
a { color: var(--wine); text-underline-offset: .22em; }
button, input, textarea { font: inherit; color: inherit; }
button, .button { background: var(--wine); border: 2px solid var(--wine); border-radius: .3rem; color: white; font-weight: 650; padding: .62rem 1rem; text-align: center; text-decoration: none; cursor: pointer; }
button:hover, .button:hover { background: #512126; }
:focus-visible { outline: 3px solid #145579; outline-offset: 4px; }
.photos :focus-visible { outline-color: white; }
.shell { width: min(69rem, calc(100% - clamp(1.5rem, 7vw, 5rem))); margin-inline: auto; }
.skip { position: absolute; left: .75rem; top: .75rem; background: var(--sheet); padding: .5rem; transform: translateY(-180%); }
.skip:focus { transform: none; z-index: 2; }
.bar { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .4rem 1.3rem; padding-block: 1.1rem; border-block-end: 1px solid var(--line); }
.bar span { font-weight: 700; }
.intro { padding-block: clamp(1.75rem, 5vw, 3.4rem) clamp(1.25rem, 4vw, 2.5rem); }
h1, h2 { font: 500 2rem/1.08 Georgia, serif; margin: 0; }
h1 { font-size: clamp(2.45rem, 6.6vw, 4.9rem); letter-spacing: -.05em; }
p { margin-block: .72em 0; }
.intro p { max-width: 38em; color: var(--muted); font-size: 1.075rem; }
.work { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 1rem; align-items: start; }
.sheet, .photos { padding: clamp(1rem, 3.1vw, 2.2rem); border-radius: .5rem; }
.sheet { background: var(--sheet); border: 1px solid var(--line); }
form { display: grid; margin-top: 1.05rem; }
.sheet label { display: block; font-weight: 650; margin-block: .85rem .3rem; }
.sheet label span { font-size: .85em; color: var(--muted); font-weight: 400; }
.sheet input, textarea { width: 100%; min-width: 0; border: 1px solid #9b8979; border-radius: .25rem; padding: .55rem .66rem; background: white; }
textarea { resize: vertical; }
form button { justify-self: start; margin-top: 1.2rem; }
.photos { background: #482428; color: #fff7e8; }
.photos h2 { color: var(--gold); }
.photos p { margin-bottom: .9rem; }
.photos label { display: flex; gap: .7rem; align-items: start; min-height: 2.75rem; padding-block: .48rem; border-block-start: 1px solid #825c59; cursor: pointer; }
.photos input { appearance: auto; margin: .28em 0 0; width: 1.15em; height: 1.15em; flex: none; accent-color: var(--gold); }
.book-cover { width: 4.6rem; height: 5.7rem; margin: .1rem 0 1.3rem .3rem; border: .16rem solid #e8c78e; border-radius: .24rem .38rem .27rem .2rem; background: #74373b; box-shadow: .24rem .3rem 0 -.06rem #dbc398, .34rem .4rem 0 -.05rem #31191d; transform: rotate(-7deg); position: relative; }
.book-cover::before { content: ""; position: absolute; inset: .06rem auto .06rem .48rem; border-left: .11rem solid #e8c78e; }
.book-cover span { position: absolute; inset: 1.3rem .7rem auto 1.1rem; height: 1.25rem; border-block: .11rem solid #e8c78e; }
.result { margin-top: 1rem; }
.result textarea { margin-bottom: .5rem; }
.actions { display: flex; gap: .65rem; flex-wrap: wrap; }
#status:empty { margin: 0; }
.foot { padding-block: 1.2rem 2.5rem; color: var(--muted); font-size: .92rem; }
@media (max-width: 46em) {
  .work { grid-template-columns: minmax(0, 1fr); }
}
