:root {
  color-scheme: light;
  font-family: system-ui, sans-serif;
  color: #28241e;
  background: #f8f3e9;
}

* { box-sizing: border-box; }
body { margin: 0 auto; max-width: 78rem; padding: 0 clamp(1rem, 5vw, 4rem) 2rem; }
.masthead {
  align-items: center;
  border-bottom: 1px solid #9b917a;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: 1rem 0;
}
a { color: #28241e; text-underline-offset: .22em; }
select, textarea, button, input { font: inherit; }
select, textarea, input { background: #fffbf2; border: 1px solid #7c7461; border-radius: 0; color: inherit; padding: .5rem; }
main { align-items: center; display: grid; gap: clamp(1.4rem, 5vw, 5rem); grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); padding: clamp(1rem, 6vw, 4rem) 0; }
figure { margin: 0; }
img { background: #ddd4bd; display: block; height: auto; margin: auto; max-height: 76vh; max-width: 100%; object-fit: contain; }
.content { min-width: 0; }
.eyebrow { color: #5b4d37; font-size: .875rem; }
h1 { font-family: Georgia, "Times New Roman", "Noto Serif TC", "PMingLiU", serif; font-size: clamp(2.2rem, 6vw, 5rem); font-weight: 500; line-height: 1.06; margin: .35em 0 .4em; }
.letter { font-size: clamp(1.1rem, 2vw, 1.35rem); line-height: 1.65; overflow-wrap: anywhere; white-space: pre-wrap; }
details { border-top: 1px solid #9b917a; margin-top: 2rem; padding-top: .9rem; }
summary { cursor: pointer; width: fit-content; }
label { display: block; margin: 1rem 0 .35rem; }
textarea, input { display: block; max-width: 100%; width: 100%; }
[hidden] { display: none !important; }
.quiet { color: #5b4d37; font-size: .875rem; line-height: 1.45; }
button { background: #352f23; border: 1px solid #352f23; color: #fff9eb; cursor: pointer; margin: 0 0 .55rem; padding: .7rem 1rem; }
button:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible, a:focus-visible { outline: 2px solid #5228a1; outline-offset: 3px; }
@media (max-width: 760px) { main { grid-template-columns: 1fr; } img { max-height: 60vh; } }
