:root {
  color-scheme: dark;
  --bg: #181d1b;
  --panel: #222a26;
  --line: #3b453e;
  --text: #f4edde;
  --muted: #b9c1b4;
  --link: #ecd8a3;
  font:
    15px/1.46 system-ui,
    sans-serif;
  background: var(--bg);
  color: var(--text);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: var(--link);
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}
a:hover {
  color: white;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #f4ca7e;
  outline-offset: 3px;
}
.mast,
main {
  max-width: 1488px;
  margin: auto;
  padding-inline: clamp(16px, 4.25vw, 72px);
}
.mast {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
  border-bottom: 1px solid var(--line);
}
.mast a {
  text-decoration: none;
  font-size: 13px;
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--text);
  font-weight: 680;
}
.wordmark img {
  width: 24px;
  height: 24px;
}
main {
  padding-bottom: 54px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
.scene-name {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 500;
}
h1 {
  font-size: clamp(2.8rem, 5.6vw, 5.8rem);
  line-height: 1.02;
  letter-spacing: -0.055em;
}
h2 {
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1.06;
  letter-spacing: -0.045em;
}
.intro {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
  padding: clamp(26px, 4vw, 56px) 0 25px;
}
.intro p,
.looks > p,
.grid-setup p {
  margin-top: 8px;
  color: var(--muted);
  max-width: 60ch;
}
.tools,
.inputline,
.form-actions,
.panel-actions,
.links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.tools {
  flex-shrink: 0;
}
.tools label,
form label {
  color: var(--muted);
  font-size: 0.85rem;
}
.tools button,
.tools select,
.inputline button,
.panel-actions button {
  background: var(--panel);
  border: 1px solid #627065;
  border-radius: 5px;
  color: var(--text);
  font: inherit;
  padding: 7px 11px;
  cursor: pointer;
}
.panels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2px;
}
.place {
  min-width: 0;
}
.place iframe {
  width: 100%;
  display: block;
  border: none;
  background: var(--panel);
  height: clamp(190px, 25vw, 365px);
}
.place figcaption {
  padding: 12px 10px 8px 0;
}
.place figure,
.look {
  margin: 0;
}
.scene-name,
.look h3 {
  font-size: clamp(1.35rem, 2.25vw, 2.1rem);
  letter-spacing: -0.035em;
}
.place figcaption p {
  color: var(--muted);
  font-size: 0.87rem;
  margin: 2px 0 12px;
}
.panel-actions {
  gap: 12px;
  font-size: 0.86rem;
}
.panel-actions button {
  padding: 5px 9px;
}
.grid-setup {
  margin: clamp(25px, 4vw, 56px) 0;
  padding-block: 22px;
  border-block: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(20px, 6vw, 80px);
}
.inputline {
  margin: 4px 0 9px;
  flex-wrap: nowrap;
}
.inputline input {
  color: var(--text);
  background: #101512;
  border: 1px solid #627065;
  border-radius: 4px;
  font:
    13px ui-monospace,
    monospace;
  min-width: 0;
  flex: 1;
  padding: 10px;
}
.form-actions {
  font-size: 0.84rem;
}
.form-actions span {
  color: var(--muted);
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}
.look {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 5px;
  overflow: hidden;
}
.cover {
  width: 100%;
  aspect-ratio: 1080/352;
  object-fit: cover;
  display: block;
}
.look-body {
  padding: 0 16px 15px;
}
.portrait {
  width: clamp(58px, 6vw, 90px);
  aspect-ratio: 1;
  border: 3px solid var(--panel);
  border-radius: 50%;
  margin-top: -24px;
  position: relative;
  background: var(--panel);
}
.look h3 {
  font-family: Georgia, serif;
  font-weight: 500;
  margin: 5px 0 8px;
}
.links {
  font-size: 0.84rem;
  gap: 12px;
}
button:disabled {
  opacity: 0.65;
  cursor: default;
}
@media (max-width: 870px) {
  .intro {
    display: block;
  }
  .tools {
    margin-top: 16px;
  }
  .grid-setup {
    grid-template-columns: 1fr;
  }
  .links {
    gap: 8px;
  }
}
@media (max-width: 620px) {
  .panels,
  .cards {
    grid-template-columns: 1fr;
    gap: 17px;
  }
  .place iframe {
    height: auto;
    aspect-ratio: 2.35;
  }
  .place figcaption {
    padding-top: 7px;
  }
  .place figcaption p {
    margin-bottom: 6px;
  }
  .cards {
    gap: 14px;
  }
  .scene-name,
  .look h3 {
    font-size: 1.5rem;
  }
  .mast {
    min-height: 48px;
  }
  .intro {
    padding-top: 26px;
  }
  .grid-setup {
    margin: 20px 0;
  }
  .look-body {
    padding-bottom: 14px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto;
  }
}
