:root {
  color-scheme: light;
  font: 16px/1.5 "Source Sans 3", "Segoe UI", Arial, sans-serif;
  color: #211f1b;
  background: #f4f2ed;
  --amber: #f4ae24;
  --ink: #211f1b;
  --muted: #57534b;
  --line: #d8d3c8;
  --surface: #f9f7f2;
  --blue: #255984;
}

body { margin: 0; }

.forum-bar {
  background: var(--amber);
  border-bottom: 1px solid #c68a1a;
}

.forum-bar-inner,
main { width: min(65rem, calc(100% - 2rem)); margin-inline: auto; }

.forum-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  min-height: 3rem;
  gap: .25rem 1.5rem;
  padding-block: .35rem;
}

.forum-bar-inner span { font-weight: 700; }
.forum-bar a { color: inherit; font-size: .875rem; text-underline-offset: .18em; }
.forum-bar a:hover { text-decoration-thickness: 2px; }

main { margin-block: clamp(1rem, 3vw, 2rem); }

main > header,
main > footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .75rem 1.25rem;
  padding: .9rem clamp(.75rem, 3vw, 1.25rem);
  background: #fff;
  border: 1px solid var(--line);
}

main > header { border-bottom: 0; border-radius: .25rem .25rem 0 0; }
main > footer {
  border-top: 0;
  border-radius: 0 0 .25rem .25rem;
  background: var(--surface);
  font-size: .875rem;
}

h1 { margin: 0 0 .25rem; font-size: clamp(1.45rem, 3vw, 1.85rem); line-height: 1.2; }
p { margin: 0; color: var(--muted); }

#copy {
  padding: .5rem .85rem;
  border: 1px solid #c68a1a;
  border-radius: .25rem;
  background: var(--amber);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

#copy:hover:enabled { background: #ffc34e; }
#copy:disabled { opacity: .55; cursor: default; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

#editor .toastui-editor-defaultUI { border-color: var(--line); border-radius: 0; font-family: inherit; }
#editor .toastui-editor-defaultUI-toolbar,
#editor .toastui-editor-mode-switch { background: var(--surface); border-color: var(--line); border-radius: 0; }
#editor .toastui-editor-mode-switch .tab-item { font-size: .875rem; color: var(--muted); }
#editor .toastui-editor-mode-switch .tab-item.active {
  box-shadow: inset 0 2px #c68a1a;
  background: #fff2d6;
  color: var(--ink);
  font-weight: 650;
}

#editor .toastui-editor-contents { color: var(--ink); font-family: inherit; font-size: 1rem; }
#editor .toastui-editor-contents a { color: var(--blue); }
#editor .toastui-editor-contents blockquote { border-color: #d6ac54; background: var(--surface); }

#manual-copy {
  box-sizing: border-box;
  width: 100%;
  min-height: 9rem;
  margin-top: 1rem;
  padding: .75rem;
  border: 1px solid var(--line);
}

.javascript-notice {
  padding: 1.25rem clamp(.75rem, 3vw, 1.25rem);
  border: 1px solid #b87508;
  border-inline-start-width: .35rem;
  background: #fff2d6;
}

.javascript-notice h2 {
  margin: 0 0 .35rem;
  font-size: 1.25rem;
}

.javascript-notice p { color: var(--ink); }
