/* RUSTIC — Build with it (Design Completion Campaign, 2026-09-29).
   The room's wall carried on: each field is a board nailed up a little off
   level, alternating left and right; asides are paper. Faces, colours and
   textures are the room's (x-rustic.css): Rock Salt painted headings, Zilla
   Slab for every sentence, drawn grain and paper tooth. Nothing moves.
   Contrast: paint #EFE8DA on board #412A1B 10.96:1, on the mid board
   #57391F 8.57:1; ink #33302A on paper #EAE3D1 10.27:1. */
.gm--rustic {
  --gm-tag-inverse: var(--gm-color-board);
  --gru-hand: var(--ru-hand, "Bradley Hand", cursive);
  --gru-body: var(--ru-body, Rockwell, Georgia, serif);
  max-width: 72rem; margin: clamp(2.5rem, 6vw, 4rem) auto 0; padding: clamp(1.4rem, 3.5vw, 2.4rem) clamp(1rem, 4vw, 3rem);
  color: var(--gm-color-paint);
  font: 400 1.05rem/1.7 var(--gru-body);
}
.gm--rustic .gm__head {
  grid-template-columns: minmax(0, 1fr);
  padding: clamp(1.4rem, 3.5vw, 2.4rem) clamp(1.2rem, 3.5vw, 2.6rem);
  background: var(--ru-grain, none), linear-gradient(var(--gm-color-board), #3A2517);
  border: 4px solid rgba(26, 20, 14, 0.55); border-radius: 2px;
  box-shadow: 0 10px 22px rgba(20, 15, 10, 0.35);
  width: min(54rem, 100%);
}
.gm--rustic .gm__title { grid-row: auto; font: 400 clamp(1.8rem, 4.4vw, 2.6rem)/1.4 var(--gru-hand); }
.gm--rustic .gm__lede { font-size: 1.1rem; line-height: 1.7; max-width: 62ch; }
.gm--rustic .gm__key, .gm--rustic .gm__get { opacity: 1; font: 400 0.8rem/1.6 var(--mono, monospace); color: #CFC5B2; }
.gm--rustic .gm-t { font: 400 0.72rem/1.6 var(--mono, monospace); border-radius: 2px; }
.gm--rustic :focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }

.gru-run { display: grid; align-items: start; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(1.6rem, 4vw, 2.6rem) clamp(1rem, 3vw, 2rem); }
.gru-f {
  position: relative; grid-column: span 6;
  padding: clamp(1.3rem, 3vw, 2rem) clamp(1.1rem, 3vw, 1.8rem);
  background: var(--ru-grain, none), repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.06) 0 2px, transparent 2px 96px), linear-gradient(#57391F, #4F341D);
  border: 3px solid rgba(26, 20, 14, 0.55); border-radius: 3px 9px 4px 11px / 11px 4px 9px 3px;
  box-shadow: 0 8px 18px rgba(20, 15, 10, 0.35);
  color: var(--gm-color-paint);
}
.gru-f:nth-child(odd) { transform: rotate(-0.5deg); }
.gru-f:nth-child(even) { transform: rotate(0.6deg); margin-top: 1.4rem; }
.gru-f--wide { margin-top: 0 !important; width: min(58rem, 100%); }
.gru-f--wide:nth-child(odd) { justify-self: start; } .gru-f--wide:nth-child(even) { justify-self: end; }
.gru-f--wide { grid-column: 1 / -1; }
.gru-f--heavy { background: var(--ru-grain, none), linear-gradient(var(--gm-color-board), #3A2517); border-width: 4px; }
.gru-f--paper {
  background: var(--ru-tooth, none), linear-gradient(var(--gm-color-paper), #E4DCC8);
  color: var(--gm-color-ink); border: 0; border-radius: 1px;
  --gm-tag-inverse: var(--gm-color-paper);
}
.gru-f--paper .gru-nail:not(.gru-nail--tl) { display: none; }
.gru-f--paper .gru-nail--tl { left: 50%; top: 8px; }
.gru-nail { position: absolute; width: 9px; height: 9px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #9C958A, #4A443C 70%); box-shadow: 0 1px 1px rgba(0, 0, 0, 0.5); }
.gru-nail--tl { top: 10px; left: 10px; } .gru-nail--tr { top: 10px; right: 10px; }
.gru-nail--bl { bottom: 10px; left: 10px; } .gru-nail--br { bottom: 10px; right: 10px; }

.gru-f .gm-f__head { align-items: center; gap: 0.7rem; }
.gru-f .gm-f__n { display: inline-grid; place-items: center; min-width: 1.9rem; height: 1.9rem; padding: 0 0.3rem; background: var(--ru-tooth, none), linear-gradient(#C9BCA4, #C1B49C); color: var(--gm-color-ink); font: 400 0.9rem/1 var(--gru-body); transform: rotate(-2deg); }
.gru-f .gm-f__name { font: 400 clamp(1.15rem, 2.4vw, 1.5rem)/1.5 var(--gru-hand); }
.gru-f .gm-f__note { opacity: 1; font-size: 0.95rem; }
.gru-f .gm-more summary { min-height: 44px; display: flex; align-items: center; font: 400 0.95rem/1.4 var(--gru-body); text-decoration: underline; text-underline-offset: 3px; }
.gru-f .gm-gap { opacity: 1; }
.gru-cap { margin: 0.8rem 0 0; font: 400 0.8rem/1.6 var(--mono, monospace); color: #CFC5B2; }
.gru-cap--ink, .gru-f--paper .gru-cap { color: #5C554A; }
.gru-body { margin: 0.6rem 0 0; max-width: 60ch; }

/* specimens */
.gru-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.7rem; }
.gru-chips li { width: 5.2rem; padding: 0.35rem; background: var(--ru-tooth, none), linear-gradient(var(--gm-color-paper), #E4DCC8); color: var(--gm-color-ink); font-size: 0.8rem; line-height: 1.3; }
.gru-chips li:nth-child(odd) { transform: rotate(-1.2deg); } .gru-chips li:nth-child(even) { transform: rotate(0.9deg); }
.gru-chips span { display: block; height: 2.4rem; border: 1px solid rgba(26, 20, 14, 0.4); margin-bottom: 0.3rem; }
.gru-chips b { display: block; font-weight: 700; }
.gru-chips code { font: 400 0.7rem/1.2 var(--mono, monospace); }
.gru-paint { margin: 0; font: 400 clamp(1.6rem, 4vw, 2.4rem)/1.5 var(--gru-hand); transform: rotate(-1.5deg); }
.gru-wall { display: grid; gap: 0.6rem; padding: 0.8rem; background: #6B4F37; }
.gru-wb { display: block; height: 2rem; border: 2px solid rgba(26, 20, 14, 0.55); background: linear-gradient(#412A1B, #3A2517); }
.gru-wb--1 { width: 78%; transform: rotate(-0.8deg); }
.gru-wb--2 { width: 62%; margin-left: auto; transform: rotate(0.7deg); background: linear-gradient(#57391F, #4F341D); }
.gru-wb--3 { width: 46%; margin-left: 12%; transform: rotate(-0.4deg); background: #EAE3D1; border-color: transparent; }
.gru-shapes { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.gru-sh { display: grid; place-items: center; width: 7rem; height: 5rem; border: 2px solid #17100B; border-radius: 3px 9px 4px 11px / 11px 4px 9px 3px; }
.gru-sh--board { background: var(--ru-grain, none), linear-gradient(#5E4128, #563B23); transform: rotate(-1deg); }
.gru-sh--bark { background: repeating-linear-gradient(92deg, rgba(0, 0, 0, 0.22) 0 2px, transparent 2px 11px), linear-gradient(168deg, #33271E, #2A2019); }
.gru-sh svg { width: 80%; height: 80%; }
.gru-sh path { fill: none; stroke: #B08A5E; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.gru-ph { display: grid; place-items: center; min-height: 8rem; padding: 1rem; border: 2px dashed #5C554A; text-align: center; font: 400 0.78rem/1.6 var(--mono, monospace); color: var(--gm-color-ink); }
.gru-rank { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.5rem; }
.gru-rank li { display: flex; align-items: center; gap: 0.7rem; }
.gru-m { display: block; width: 2.6rem; height: 1.3rem; flex: 0 0 auto; border: 1px solid rgba(26, 20, 14, 0.5); }
.gru-m--bark { background: #2A2019; } .gru-m--board { background: #412A1B; } .gru-m--paper { background: #EAE3D1; } .gru-m--cloth { background: #CFBE9E; }

/* components */
.gru-nav { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-bottom: 1.4rem; }
.gru-nav a, .gru-nav span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0.3rem 0.9rem;
  background: linear-gradient(#57391F, #4F341D); border: 2px solid rgba(26, 20, 14, 0.6);
  color: var(--gm-color-paint); font: 400 0.95rem/1.4 var(--gru-hand);
}
.gru-nav a { text-decoration: underline; text-underline-offset: 4px; }
.gru-nav a:nth-child(odd) { transform: rotate(-1deg); } .gru-nav a:nth-child(even) { transform: rotate(0.8deg); }
.gru-nav a:hover { text-decoration-thickness: 3px; }
.gru-nav span { background: var(--gm-color-paper); color: var(--gm-color-ink); }
.gru-ui { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.4rem; align-items: start; }
.gru-card {
  position: relative; display: grid; gap: 0.3rem; padding: 1.5rem 1.6rem;
  background: var(--ru-grain, none), linear-gradient(#57391F, #4F341D);
  border: 3px solid rgba(26, 20, 14, 0.55); border-radius: 3px 9px 4px 11px / 11px 4px 9px 3px;
  box-shadow: 0 8px 18px rgba(20, 15, 10, 0.35);
  color: var(--gm-color-paint); text-decoration: none; transform: rotate(-0.6deg);
}
.gru-card:hover { transform: rotate(-0.1deg); }
.gru-card b { font: 400 1.2rem/1.5 var(--gru-hand); }
.gru-form { display: grid; gap: 0.5rem; padding: 1.2rem; background: var(--ru-tooth, none), linear-gradient(var(--gm-color-paper), #E4DCC8); color: var(--gm-color-ink); }
.gru-form label { font: 700 0.95rem/1.4 var(--gru-body); }
.gru-form input { min-height: 46px; padding: 0.4rem 0.7rem; border: 2px solid var(--gm-color-ink); border-radius: 2px; background: #F4EFE3; color: var(--gm-color-ink); }
.gru-form input:focus-visible { border-width: 3px; outline-color: var(--gm-color-ink); }
.gru-btns { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 0.4rem; }
.gru-btn {
  position: relative; min-height: 46px; padding: 0.4rem 1.3rem;
  background: var(--ru-grain, none), linear-gradient(var(--gm-color-board), #3A2517);
  border: 3px solid rgba(26, 20, 14, 0.55); border-radius: 3px 9px 4px 11px / 11px 4px 9px 3px;
  box-shadow: 0 4px 8px rgba(20, 15, 10, 0.35);
  color: var(--gm-color-paint); font: 400 0.95rem/1.3 var(--gru-hand) !important; cursor: pointer; transition: none;
}
.gru-btn:hover { background: var(--ru-grain, none), linear-gradient(#57391F, #4F341D); }
.gru-btn:active { transform: translateY(1px); box-shadow: 0 2px 4px rgba(20, 15, 10, 0.35); }
.gru-btn:disabled { text-decoration: line-through; cursor: not-allowed; }
.gru-form :focus-visible { outline-color: var(--gm-color-ink); }

@media (max-width: 48rem) {
  .gru-f, .gru-f--wide { grid-column: 1 / -1; transform: none !important; margin-top: 0 !important; }
  .gru-ui { grid-template-columns: minmax(0, 1fr); }
  .gru-card, .gru-nav a { transform: none; }
}
