:root {
  font-family:
    system-ui,
    -apple-system,
    Segoe UI,
    sans-serif;
  color: #28372d;
  background: #f7f2e9;
  font-size: 17px;
  line-height: 1.65;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
header {
  max-width: 1000px;
  margin: auto;
  padding: 28px 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  border-bottom: 1px solid #d8d8c9;
}
a {
  color: #365e42;
  text-underline-offset: 5px;
}
.brand {
  font-family: Georgia, serif;
  font-weight: bold;
  font-size: 1.4rem;
  text-decoration: none;
}
main {
  max-width: 760px;
  margin: 50px auto;
  padding: 0 24px;
}
h1 {
  font-family: Georgia, serif;
  font-weight: normal;
  font-size: clamp(2.6rem, 8vw, 4.4rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin: 18px 0 40px;
}
h2 {
  font-family: Georgia, serif;
  font-size: 1.9rem;
  line-height: 1.2;
}
h2 a {
  text-decoration: none;
}
.eyebrow {
  letter-spacing: 0.17em;
  font-size: 0.7rem;
  font-weight: 700;
  color: #687447;
}
article {
  padding: 35px 0 45px;
  border-top: 1px solid #d8d8c9;
}
article img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 24px 0;
}
time,
.hint {
  color: #5f695b;
  font-size: 0.85rem;
}
.words {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 24px 0;
}
footer {
  padding: 36px;
  text-align: center;
  color: #687447;
}
.editor {
  max-width: 650px;
}
label {
  display: block;
  font-weight: 650;
  margin: 24px 0 8px;
}
input,
textarea,
select {
  font: inherit;
  width: 100%;
  border: 1px solid #a9b39f;
  border-radius: 8px;
  background: #fffdf8;
  color: #28372d;
  padding: 12px;
}
textarea {
  resize: vertical;
}
button {
  font: inherit;
  border: 1px solid #365e42;
  border-radius: 50px;
  padding: 10px 23px;
  cursor: pointer;
  color: #fff;
  background: #365e42;
  min-height: 44px;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
button.quiet {
  background: transparent;
  color: #365e42;
}
button:focus-visible,
a:focus-visible,
input:focus,
textarea:focus {
  outline: 3px solid #b98627;
  outline-offset: 3px;
}
.actions,
.toolbar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 24px 0;
}
.toolbar {
  justify-content: space-between;
}
#notice:not(:empty) {
  border-left: 4px solid #b98627;
  padding: 12px;
  background: #fff9df;
}
#photo-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 16px 0;
}
.photo {
  max-width: 150px;
}
.photo img {
  width: 140px;
  height: 130px;
  object-fit: cover;
  border-radius: 8px;
}
.photo button {
  display: block;
  font-size: 0.8rem;
  padding: 4px 16px;
}
details {
  margin: 45px 0;
  padding: 20px 0;
  border-top: 1px solid #d8d8c9;
}
summary {
  cursor: pointer;
  font-weight: 650;
}
[hidden] {
  display: none !important;
}
@media (max-width: 480px) {
  header {
    padding: 18px;
  }
  main {
    margin-top: 35px;
  }
  .actions button {
    flex: 1;
    padding: 10px;
  }
  h1 {
    margin-bottom: 30px;
  }
}
article video,
article audio {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 24px 0;
  border-radius: 12px;
}
article video {
  max-height: 70vh;
  background: #18251d;
}
.media-preview {
  width: 100%;
  max-width: 100%;
}
.media-preview video,
.media-preview audio {
  display: block;
  width: 100%;
  max-height: 280px;
  margin-bottom: 8px;
  border-radius: 8px;
}
