/* No inline styles or scripts. The content security policy only loads this file,
   so the hero image and the dark gradient have to live here. */

:root {
  --bg: #0e0e10;
  --raise: #141418;
  --text: #f2ede4;
  --muted: #b7b1a6;
  --bronze: #b08d57;
  --gold: var(--bronze);
  --bronze-hover: color-mix(in srgb, var(--bronze) 85%, white);
  --ink: #1a1408;
  --line: rgba(176, 141, 87, 0.55);
  --field: #0e0e10;
  --field-line: #3a342c;
  --danger: var(--bronze);
  --ok: #d7e4c4;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: 1.05rem;
  line-height: 1.5;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: url("../img/texture.png");
  background-size: 240px;
  opacity: 0.14;
}

img {
  max-width: 100%;
  height: auto;
}

a,
a:visited {
  color: var(--bronze);
}

a:hover {
  color: var(--bronze-hover);
}

:focus {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

@supports selector(:focus-visible) {
  :focus {
    outline: none;
  }

  :focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
  }
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 5;
  background: var(--gold);
  color: var(--ink);
  padding: 0.6rem 0.9rem;
  text-decoration: none;
}

.skip:hover,
.skip:focus {
  color: var(--ink);
}

.skip:focus {
  top: 0.75rem;
}

.wrap {
  box-sizing: border-box;
  width: min(40rem, 100%);
  max-width: 100%;
  margin-inline: auto;
  padding-inline: 1rem;
}

.site-header {
  background: rgba(14, 14, 16, 0.94);
  border-bottom: 1px solid rgba(176, 141, 87, 0.35);
}

.site-header .wrap {
  display: flex;
  justify-content: flex-start;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding-block: 0.9rem;
  color: var(--text);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-decoration: none;
  white-space: nowrap;
}

.brand img {
  width: 64px;
  height: 64px;
  max-width: 256px;
  max-height: 256px;
  border-radius: 50%;
  object-fit: contain;
}

.brand span {
  position: relative;
  top: 30px;
  color: var(--bronze);
  font-size: 1.05rem;
  line-height: 1;
}

@media (min-width: 600px) {
  .brand img {
    width: 112px;
    height: 112px;
  }
}

.hero {
  background-color: var(--bg);
  background-image:
    linear-gradient(180deg, rgba(14, 14, 16, 0.55) 0%, rgba(14, 14, 16, 0.82) 46%, rgba(14, 14, 16, 0.96) 100%),
    url("../img/hero.jpg");
  background-position: center top;
  background-repeat: no-repeat;
  background-size: cover;
  padding: 2rem 0 3.5rem;
}

h1,
h2 {
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

h1 {
  margin: 0 0 1rem;
  max-width: 100%;
  font-size: clamp(1.85rem, 8vw, 4.4rem);
  overflow-wrap: break-word;
}

h2 {
  margin: 0 0 0.75rem;
  font-size: 1.45rem;
}

.lede {
  margin: 0 0 1.25rem;
  max-width: 38rem;
  font-size: 1.08rem;
  overflow-wrap: break-word;
}

.page {
  display: grid;
  gap: 1rem;
  padding: 1.5rem 0 3rem;
}

.panel {
  background: var(--raise);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1.25rem;
}

.hero .panel {
  margin-top: 1.5rem;
}

.field {
  margin-bottom: 1rem;
}

label,
legend {
  display: block;
  margin-bottom: 0.4rem;
}

fieldset {
  margin: 0 0 1rem;
  padding: 0;
  border: 0;
  min-width: 0;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--field-line);
  border-radius: 0.45rem;
  background: var(--field);
  color: var(--text);
  font: inherit;
}

textarea {
  min-height: 8rem;
  resize: vertical;
}

button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  padding: 0.85rem 1.4rem;
  border: 0;
  border-radius: 999px;
  background: var(--gold);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

button:hover,
.button:hover {
  background: var(--bronze-hover);
  color: var(--ink);
}

button:disabled,
.button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

button:disabled:hover,
.button:disabled:hover {
  background: var(--gold);
  color: var(--ink);
}

.button-quiet {
  width: auto;
  margin-top: 1.25rem;
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--field-line);
  font-weight: 600;
}

.button-quiet:hover {
  background: transparent;
  color: var(--text);
  border-color: var(--bronze);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

@media (min-width: 40rem) {
  button,
  .actions .button {
    width: auto;
    min-width: 10rem;
  }

  .hero .actions button {
    width: 14rem;
  }
}

.hero .actions {
  justify-content: center;
  margin-top: 1.75rem;
}

.hero form .fine {
  margin: 0.85rem 0 0;
  text-align: center;
}

.socials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.25rem;
  margin: 2rem 0 0;
}

.socials a {
  display: flex;
  color: var(--muted);
  line-height: 0;
  text-decoration: none;
}

.socials a:hover,
.socials a:focus,
.socials a:focus-visible {
  color: var(--bronze-hover);
}

.socials a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.socials svg {
  width: 28px;
  height: 28px;
  display: block;
}

.hero.has-socials {
  padding-bottom: 2rem;
}

.check {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.check input {
  width: 1.25rem;
  height: 1.25rem;
  min-height: 0;
  margin-top: 0.2rem;
  padding: 0;
  accent-color: var(--bronze);
}

.check label {
  margin: 0;
}

.fine,
.fine-inline {
  color: var(--muted);
  font-size: 0.92rem;
}

.fine-inline {
  font-size: 0.85rem;
}

.field-error,
.flash {
  margin: 0.4rem 0 0;
  color: var(--danger);
}

.flash {
  margin: 0 0 1rem;
  padding: 0.75rem 0.9rem;
  border-radius: 0.5rem;
  background: color-mix(in srgb, var(--bronze) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--bronze) 45%, transparent);
}

.flash-ok {
  color: var(--ok);
  background: rgba(215, 228, 196, 0.08);
  border-color: rgba(215, 228, 196, 0.4);
}

.draft {
  margin: 0 0 1.25rem;
  padding: 0.8rem 0.95rem;
  border: 1px solid var(--gold);
  border-radius: 0.5rem;
  color: var(--gold);
  font-weight: 600;
}

.prose h2 {
  margin-top: 1.6rem;
  font-size: 1.2rem;
  letter-spacing: 0;
  color: var(--bronze);
}

.prose h1,
.prose h2 {
  color: var(--bronze);
}

.prose p {
  margin: 0.6rem 0 0;
}

.ratings {
  display: flex;
  gap: 0.5rem;
}

.rating {
  position: relative;
  flex: 1;
  margin: 0;
}

.rating input {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.rating span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 1px solid var(--field-line);
  border-radius: 0.45rem;
  background: var(--field);
}

.rating input:checked + span {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold);
}

.rating input:focus-visible + span {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.hp {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-footer {
  border-top: 1px solid rgba(176, 141, 87, 0.28);
  padding: 1.25rem 0 2rem;
  color: var(--muted);
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  align-items: center;
}

.footer-row p {
  margin: 0;
}

.site-footer nav {
  display: flex;
  gap: 1rem;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
