@font-face {
  font-family: Nunito Sans;
  src: url("/rm-public-assets/fonts/nunito-sans-latin-ext.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

@font-face {
  font-family: Nunito Sans;
  src: url("/rm-public-assets/fonts/nunito-sans-latin.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

:root {
  --gold: #ffbc0d;
  --red: #db0007;
  --ink: #23221f;
  --bg: #f7f6f2;
  --card: #fff;
  --soft: #f1f0ec;
  --line: #d5d2cb;
  --muted: #615e58;
  --link: #aa101c;
  --tint: #fff0bf;
  --ink-on-tint: #482f00;
  --focus: #8c4100;
  --field: #858176;
  --shadow: 0 3px 10px #1c170a0a;
  color-scheme: light;
}

:root[data-theme=dark] {
  --ink: #f5f2eb;
  --bg: #191a18;
  --card: #242522;
  --soft: #30312c;
  --line: #505148;
  --muted: #c2c0b7;
  --link: #ff9c90;
  --tint: #493a18;
  --ink-on-tint: #ffe5a0;
  --focus: #ffbb16;
  --shadow: none;
  --field: #85877e;
  color-scheme: dark;
}

@media(prefers-color-scheme:dark) {
  :root:not([data-theme=light]) {
    --ink: #f5f2eb;
    --bg: #191a18;
    --card: #242522;
    --soft: #30312c;
    --line: #505148;
    --muted: #c2c0b7;
    --link: #ff9c90;
    --tint: #493a18;
    --ink-on-tint: #ffe5a0;
    --focus: #ffbb16;
    --shadow: none;
    --field: #85877e;
    color-scheme: dark;
  }
}

body {
  color: var(--ink);
  background: var(--bg);
  font: 500 16px/1.55 "Nunito Sans",system-ui,sans-serif;
}
button,input,textarea,select { font-family: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

.masthead {
  background: #23221f;
  border-bottom: 4px solid var(--gold);
  color: #fff;
}

.mast-inner {
  max-width: 1450px;
  min-height: 70px;
  padding: .5rem clamp(16px,4vw,64px);
  margin: auto;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .35rem clamp(10px,1.3vw,20px);
}

.mast-context {
  display: flex;
  align-items: center;
  flex: 1 1 max-content;
  max-width: 100%;
  min-width: 0;
  gap: clamp(.65rem,1vw,1rem);
}

.mast-title {
  min-width: 0;
  margin: 0;
  padding-inline-start: clamp(.65rem,1vw,1rem);
  border-inline-start: 1px solid #76746c;
  font-size: clamp(1.06rem,1.65vw,1.45rem);
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: -.02em;
  overflow-wrap: break-word;
}

.masthead .brand, a.brand, a.brand:link, a.brand:visited {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 900;
  letter-spacing: -.065em;
  color: white;
  font-size: 28px;
  text-decoration: none;
  line-height: 1;
}

.brand-mods {
  color: var(--gold);
}

.brand-mark {
  display: grid;
  place-items: center;
  position: relative;
  width: 34px;
  height: 34px;
  background: var(--gold);
  color: #201b13;
  font-size: 28px;
  font-weight: 900;
  font-style: italic;
  border-radius: 7px;
  box-shadow: 3px 3px #da3030;
  padding-right: 3px;
}

.mast-tools {
  display: flex;
  align-items: center;
  gap: inherit;
  margin-inline-start: auto;
}

.mast-actions {
  flex: none;
  white-space: nowrap;
  display: flex;
  gap: 14px;
  align-items: center;
}

.mast-rules,.mast-new,.theme-toggle {
  color: inherit;
  font-weight: 750;
  text-decoration: none;
}

.mast-rules {
  font-size: .88rem;
}

.theme-toggle {
  box-sizing: border-box;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  border: 1px solid #858176;
  background: transparent;
  border-radius: 50%;
  padding: 8px;
  min-width: 38px;
  height: 38px;
}

.theme-toggle:hover {
  background: #403f37;
}

.mast-new {
  display: inline-flex;
  align-items: center;
  gap: .25em;
  background: var(--gold);
  color: #211b0d;
  border-radius: 99px;
  padding: 7px 17px;
}

.searchbox {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #393833;
  border: 1px solid #858176;
  color: #dddacf;
  border-radius: 99px;
  padding: 2px 14px;
  width: clamp(10rem,30vw,32.5rem);
  flex: none;
}

.searchbox input:not([type=hidden]) {
  background: transparent;
  border: 0;
  color: #fff;
  width: 100%;
  min-width: 0;
  padding: 5px;
}

.searchbox input::placeholder {
  color: #d2cec4;
}

.masthead :focus-visible {
  outline-color: var(--gold);
}


.masthead { text-align: start; }
.masthead *, .brand-mark { box-sizing: border-box; }
.masthead .mast-title { color: white; }
.masthead .brand:hover { color: white; text-decoration: none; }
.theme-toggle svg { display: block; width: 18px; height: 18px; }
@media (max-width: 680px) {
  .mast-inner { min-height: 57px; padding: .45rem 14px; gap: .35rem .6rem; }
  .mast-context { gap: .5rem; }
  .mast-title { padding-inline-start: .5rem; font-size: 1.06rem; }
  .masthead .brand, a.brand, a.brand:link, a.brand:visited { font-size: 24px; }
  .brand-mark { width: 29px; height: 29px; font-size: 24px; }
  .mast-actions { gap: 8px; }
  .theme-toggle { min-width: 36px; height: 36px; }
  .searchbox { width: min(100%, 14rem); }
}
