@font-face {
  font-family: Rubik;
  src: url(/fonts/rubik-cyrillic.woff2) format("woff2");
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  unicode-range: U+0400-052F, U+2116;
}
@font-face {
  font-family: Rubik;
  src: url(/fonts/rubik-latin.woff2) format("woff2");
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+2000-206F, U+20AC;
}
@font-face {
  font-family: "Russo One";
  src: url(/fonts/russo-one-cyrillic.woff2) format("woff2");
  font-display: swap;
  unicode-range: U+0400-052F;
}
@font-face {
  font-family: "Russo One";
  src: url(/fonts/russo-one-latin.woff2) format("woff2");
  font-display: swap;
  unicode-range: U+0000-00FF, U+2000-206F;
}
@font-face {
  font-family: Caveat;
  src: url(/fonts/caveat-cyrillic.woff2) format("woff2");
  font-weight: 700;
  font-display: swap;
  unicode-range: U+0400-052F;
}
@font-face {
  font-family: Caveat;
  src: url(/fonts/caveat-latin.woff2) format("woff2");
  font-weight: 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+2000-206F;
}

:root {
  color-scheme: light;
  --bg: #f6f1e4;
  --surface: #fffdf6;
  --ink: #1c1f15;
  --muted: #57553f;
  --line: #ded6c0;
  --accent: #f0ad1f;
  --accent-press: #ad6f0e;
  --on-accent: #1c1f15;
  --tint: #fbedc6;
  --accent-ink: #7d5000;
  --hero: #3d4529;
  --focus: #0057b8;
  --good: #37661f;
  --good-bg: #e3edcf;
  --bad: #9b2e19;
  --bad-bg: #f8ddd6;
  --info: #1f5fa8;
  --info-bg: #dbe8f5;
  --field: url(/assets/field.svg);
  --hero-pattern: url(/assets/pattern-hero-light.svg);
  --shadow: 0 10px 24px -14px rgba(40, 34, 12, 0.32);
  --bottom: max(10px, env(safe-area-inset-bottom, 0px));
  font-family: Rubik, system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #12140d;
    --surface: #1c1f15;
    --ink: #f3efe2;
    --muted: #b9b39e;
    --line: #414535;
    --accent: #f5bd3a;
    --accent-press: #a8780c;
    --tint: #3a2f10;
    --accent-ink: #f5bd3a;
    --hero: #23281a;
    --focus: #ffd700;
    --good: #9ad675;
    --good-bg: #1d2b12;
    --bad: #ff927e;
    --bad-bg: #3a1612;
    --info: #8dbbec;
    --info-bg: #162a40;
    --field: none;
    --hero-pattern: url(/assets/pattern-hero-dark.svg);
    --shadow: 0 12px 24px -16px #000;
  }
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
}
.frame {
  position: relative;
  width: min(100%, 480px);
  min-height: 100dvh;
  margin: auto;
  padding-bottom: calc(82px + var(--bottom));
}
h1,
h2,
p {
  margin: 0;
}
h1 {
  font:
    400 clamp(1.65rem, 7vw, 2.25rem)/1.1 "Russo One",
    Rubik,
    sans-serif;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
h2 {
  font-size: 1.2rem;
  line-height: 1.25;
}
p {
  line-height: 1.5;
}
a {
  color: var(--info);
}
button,
input,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
button[disabled] {
  opacity: 0.55;
  cursor: default;
}
a,
button,
input,
textarea {
  -webkit-tap-highlight-color: transparent;
}
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.hero {
  position: relative;
  min-height: 298px;
  overflow: hidden;
  color: #fffdf6;
  padding: calc(17px + env(safe-area-inset-top, 0px)) 17px 54px;
  background-image:
    linear-gradient(90deg, rgba(13, 35, 52, 0.64), rgba(14, 25, 34, 0.14) 68%),
    var(--field), var(--hero-pattern);
  background-size: cover, cover, 112px;
  background-position: center;
  background-color: var(--hero);
}
.hero .brand {
  display: inline-block;
  padding: 6px 10px;
  background: #303921;
  border: 1px dashed #a8a574;
  border-radius: 8px;
  color: #fff4d0;
  font:
    400 0.73rem "Russo One",
    Rubik,
    sans-serif;
  letter-spacing: 0.08em;
}
.hero h1 {
  position: relative;
  z-index: 1;
  margin-top: 10px;
  width: 60%;
  text-shadow: 0 2px 12px #1c1f15;
}
.hero p:not(.bubble) {
  position: relative;
  z-index: 1;
  margin-top: 5px;
  font-weight: 600;
  text-shadow: 0 1px 6px #1c1f15;
}
.pesso {
  position: absolute;
  bottom: 13px;
  right: 1px;
  width: min(51%, 224px);
  height: auto;
  filter: drop-shadow(0 8px 10px #1c1f1577);
}
.bubble {
  position: absolute;
  left: 16px;
  bottom: 69px;
  min-width: 118px;
  z-index: 1;
  padding: 7px 14px;
  background: #fffdf6;
  border-radius: 15px 15px 5px;
  color: #1c1f15;
  font:
    700 clamp(1.28rem, 5.8vw, 1.62rem)/1 Caveat,
    Rubik,
    sans-serif;
  box-shadow: 0 4px 10px #1c1f1533;
}
.content {
  display: grid;
  gap: 16px;
  padding-inline: 15px;
}
.home-content {
  position: relative;
  margin-top: -32px;
}
.inner {
  padding-top: calc(20px + env(safe-area-inset-top, 0px));
  padding-bottom: 18px;
}
.section-heading {
  display: flex;
  gap: 8px 14px;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 8px;
}
.primary-card,
.tile,
.button,
.quiet-link,
.link-row,
.dock a {
  text-decoration: none;
}
.primary-card {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 83px;
  padding: 14px;
  border-radius: 21px;
  background: var(--accent);
  color: var(--on-accent);
  box-shadow:
    0 3px 0 var(--accent-press),
    var(--shadow);
}
.primary-card::before {
  position: absolute;
  inset: 5px;
  border: 1.5px dashed #1c1f1550;
  border-radius: 16px;
  content: "";
  pointer-events: none;
}
.action-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #fff9dd8a;
}
.primary-card strong,
.tile strong {
  display: block;
  font-size: 1.12rem;
}
.primary-card small,
.tile small {
  display: block;
  margin-top: 4px;
  line-height: 1.25;
  font-size: 0.85rem;
}
.primary-card > span:last-child {
  font-size: 1.7rem;
  line-height: 1;
}
.tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.card {
  border: 1px solid var(--line);
  border-radius: 19px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.tile {
  display: block;
  min-width: 0;
  min-height: 120px;
  padding: 12px;
  color: var(--ink);
}
.tile small {
  color: var(--muted);
}
.tile-picture {
  display: flex;
  align-items: center;
  height: 45px;
  margin-bottom: 8px;
}
.tile-picture img {
  padding: 6px;
  background: #f0ad1f;
  border-radius: 10px;
}
.tile-studio i {
  width: 29px;
  height: 31px;
  border: 2px solid var(--ink);
  border-radius: 5px;
  background: #f5bd3a;
  transform: rotate(-12deg);
}
.tile-studio i:nth-child(2) {
  margin-left: -9px;
  transform: translateY(-3px) rotate(3deg);
  background: #7fa6cf;
}
.tile-studio i:nth-child(3) {
  margin-left: -9px;
  transform: rotate(13deg);
  background: #a8a574;
}
.activity,
.form,
.rules {
  display: grid;
  gap: 11px;
  padding: 14px;
  min-width: 0;
  overflow-wrap: anywhere;
}
.form label {
  font-weight: 700;
}
input,
textarea {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--bg);
  color: var(--ink);
}
textarea {
  resize: vertical;
}
.hint {
  color: var(--muted);
  font-size: 0.85rem;
}
.form .hint:empty {
  display: none;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 44px;
  padding: 8px 13px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-weight: 650;
  text-align: center;
}
.form .button {
  width: 100%;
}
.button.primary {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 2px 0 var(--accent-press);
}
.button.secondary {
  background: var(--tint);
  color: var(--accent-ink);
}
.button.reject {
  background: var(--bad-bg);
  color: var(--bad);
}
.quiet-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 4px;
  background: none;
  border: 0;
  color: var(--info);
  font-weight: 650;
}
.error {
  padding: 9px;
  border-radius: 10px;
  color: var(--bad);
  background: var(--bad-bg);
}
.success {
  padding: 9px;
  border-radius: 10px;
  color: var(--good);
  background: var(--good-bg);
}
.links {
  display: grid;
}
.link-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  color: var(--info);
}
.link-row img {
  opacity: 0.65;
}
.dock {
  position: fixed;
  z-index: 2;
  left: 50%;
  bottom: var(--bottom);
  transform: translateX(-50%);
  display: flex;
  justify-content: space-around;
  width: min(calc(100% - 22px), 450px);
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: 0 12px 40px -12px #18171064;
}
.dock a {
  min-width: 0;
  min-height: 44px;
  flex: 1;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 3px;
  border-radius: 15px;
  padding: 4px 3px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 650;
}
.dock a[aria-current="page"] {
  background: var(--tint);
  color: var(--accent-ink);
}
@media (prefers-color-scheme: dark) {
  .dock img,
  .link-row img {
    filter: invert(1);
  }
}
.entry {
  display: grid;
  gap: 8px;
  padding: 8px 0;
}
.entry + .entry {
  border-top: 1px solid var(--line);
  padding-top: 13px;
}
.entry-head {
  display: flex;
  gap: 8px 12px;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
}
.post-link {
  font-weight: 700;
}
.status {
  padding: 3px 8px;
  border-radius: 9px;
  font-size: 0.8rem;
  font-weight: 700;
}
.status.pending {
  background: var(--tint);
  color: var(--accent-ink);
}
.status.approved {
  background: var(--good-bg);
  color: var(--good);
}
.status.rejected {
  background: var(--bad-bg);
  color: var(--bad);
}
.entry small {
  color: var(--muted);
}
.entry-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.policy {
  padding-bottom: 24px;
}
@media (min-width: 580px) {
  .frame {
    box-shadow: 0 0 50px #1c1f151c;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .button,
  .primary-card,
  .dock a,
  .tile {
    transition: transform 0.16s ease;
  }
  .button:active,
  .primary-card:active,
  .dock a:active,
  .tile:active {
    transform: translateY(2px);
  }
}
