:root {
  color-scheme: light;
  font-family: 'Avenir Next', system-ui, sans-serif;
  color: #231c16;
  background: #faf4e6;
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
body {
  margin: 0;
}
header {
  height: 68px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 max(6vw, 20px);
  background: #174838;
  color: #fff8e5;
  border-bottom: 4px solid #e5bd63;
}
.brand {
  font-family: Georgia, serif;
  font-weight: bold;
  font-size: 21px;
  text-decoration: none;
  color: inherit;
}
.brand span {
  color: #f5cc76;
}
button,
input,
summary,
a {
  font: inherit;
}
button,
summary,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
header button {
  color: #fff8e5;
  background: none;
  border: 1px solid #adc2ac;
  border-radius: 20px;
  padding: 7px 14px;
}
main {
  max-width: 1080px;
  margin: auto;
  padding: clamp(26px, 6vw, 76px) max(5vw, 18px);
}
.studio {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(230px, 0.85fr);
  gap: clamp(30px, 7vw, 100px);
  align-items: center;
}
.eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  color: #8a2b2a;
}
.copy h1 {
  font-family: Georgia, 'Songti SC', serif;
  line-height: 1.12;
  letter-spacing: -0.035em;
  font-size: clamp(2.35rem, 5vw, 4.2rem);
  margin: 0.2em 0;
}
.intro {
  line-height: 1.65;
  color: #554a3c;
}
form {
  margin-top: 24px;
}
label,
summary {
  font-weight: 650;
}
input {
  width: 100%;
  border: 1px solid #958979;
  background: #fffdf7;
  padding: 12px;
  border-radius: 8px;
  margin: 7px 0 5px;
  font-size: 17px;
  color: inherit;
}
input:focus,
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid #bd8032;
  outline-offset: 2px;
}
details {
  margin: 9px 0;
}
summary {
  padding: 5px 0;
  cursor: pointer;
  font-size: 0.9rem;
  color: #25543e;
}
details label {
  display: block;
  margin-top: 8px;
}
.note {
  line-height: 1.55;
  font-size: 0.84rem;
  color: #61574c;
}
.primary,
#replay,
#share {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 47px;
  padding: 10px 18px;
  border: 0;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
}
.primary {
  background: #952d36;
  color: white;
}
#create {
  width: 100%;
  margin-top: 4px;
}
button:disabled {
  opacity: 0.6;
}
#status {
  margin-top: 12px;
  font-size: 0.91rem;
  line-height: 1.5;
  color: #31513f;
  overflow-wrap: anywhere;
}
#status.error {
  color: #a72730;
}
progress {
  width: 100%;
  accent-color: #226145;
}
.result {
  max-width: 340px;
  width: 100%;
  justify-self: center;
}
.frame {
  aspect-ratio: 9/16;
  background: #37251e;
  box-shadow: 0 12px 35px #4b392630;
  border: 6px solid #fff9e9;
  border-radius: 16px;
  overflow: hidden;
}
.frame img,
.frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 14px;
}
.buttons a,
.buttons button {
  font-size: 14px;
  text-align: center;
}
#replay,
#share {
  background: #e7ecdd;
  color: #1b4433;
}
#share {
  width: 100%;
  margin-top: 7px;
}
@media (max-width: 650px) {
  header {
    height: 53px;
  }
  .studio {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  main {
    padding: 20px 18px 42px;
  }
  .eyebrow {
    margin: 0 0 8px;
  }
  .copy h1 {
    font-size: 2.15rem;
  }
  .intro {
    margin: 8px 0;
  }
  form {
    margin-top: 15px;
  }
  .result {
    max-width: min(88vw, 320px);
  }
}

.language-link {
  color: #fff8e5;
  border: 1px solid #adc2ac;
  border-radius: 20px;
  padding: 7px 14px;
  text-decoration: none;
}
.note a,
footer a {
  color: #25543e;
}
footer {
  max-width: 1080px;
  margin: 0 auto;
  padding: 16px max(5vw, 18px) 26px;
  font-size: 0.85rem;
  border-top: 1px solid #e6ddca;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
}
