:root {
  --goat-ink: #201a14;
  --goat-muted: #665a4b;
  --goat-paper: #fbf8f1;
  --goat-border: #e5dac7;
  --goat-gold: #eac47b;
  --goat-link: #79501c;
}

body {
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: var(--goat-paper);
}
main { color: var(--goat-ink); }
main :is(h1, h2, h3, h4) { line-height: 1.14; text-wrap: balance; }
main a:not(.primary, .btn, .tool-card, .workspace-secondary, .goat-jumps a) { text-underline-offset: .2em; }
main :is(input, select, textarea) { min-width: 0; max-width: 100%; }
main :is(.card, .panel, .tile, .plan) { overflow-wrap: anywhere; }
main :is(.panel, .card, .tile, .plan) { box-shadow: 0 5px 22px #3d29130a; }
main :is(.primary, .secondary, .btn) { min-height: 42px; }
a, button, input, select, textarea { -webkit-tap-highlight-color: transparent; }
:where(a, button, input, select, textarea, summary):focus-visible { outline: 3px solid #a26924; outline-offset: 3px; }
[hidden] { display: none !important; }

.goat-skip { position: absolute; left: 16px; top: 8px; z-index: 2; padding: 12px; background: white; color: #231b10; transform: translateY(-150%); }
.goat-skip:focus { transform: none; }
#goat-main:focus { outline: 2px solid #79501c; outline-offset: -2px; }
.goat-header a:focus-visible, .workspace-hero a:focus-visible { outline-color: #ffe4ab; }
header.goat-header {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding: 10px max(20px, calc((100vw - 1240px) / 2));
  background: #191510;
  border-bottom: 1px solid #5b492c;
}
.goat-header .brand-home {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  background: #fff;
  border-radius: 9px;
  padding: 3px 8px;
  line-height: 0;
  text-decoration: none;
}
.goat-header .brand-logo { display: block; width: 112px; height: 48px; object-fit: contain; }
.goat-header nav.goat-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin: 0; }
.goat-header .goat-nav a {
  color: #f5ead4;
  font-size: .88rem;
  font-weight: 650;
  line-height: 1.2;
  margin: 0;
  padding: 11px 12px;
  text-decoration: none;
  border-radius: 8px;
}
.goat-header .goat-nav a:is(:hover, [aria-current="page"]) { background: #3c2d1c; color: #ffe4ab; }

.goat-jumps { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 20px; }
.goat-jumps a { display: inline-block; background: #fff; border: 1px solid var(--goat-border); padding: 9px 13px; border-radius: 10px; color: var(--goat-link); font-size: .86rem; font-weight: 650; text-decoration: none; }
.goat-jumps a:hover { background: #f5ebd7; }

.goat-workspace { max-width: 1240px; margin-top: 36px; }
.workspace-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(200px, .85fr);
  gap: clamp(24px, 5vw, 65px);
  align-items: center;
  padding: clamp(24px, 5vw, 60px);
  border-radius: 22px;
  color: #fff7e7;
  background: radial-gradient(ellipse at right top, #624624 0%, #312417 45%, #211910 80%);
}
.workspace-hero h1 { margin: 0; font-size: clamp(2.2rem, 6vw, 4.5rem); letter-spacing: -.055em; line-height: 1.02; }
.workspace-hero p { margin: 15px 0; color: #eadcc3; }
.workspace-hero .workspace-guest { font-size: .84rem; margin-bottom: 0; }
.workspace-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 14px; }
.workspace-actions a { display: inline-flex; align-items: center; text-decoration: none; border-radius: 9px; padding: 11px 14px; font-weight: 750; }
.workspace-actions .primary { background: var(--goat-gold); color: #21180c; }
.workspace-secondary { border: 1px solid #a88653; color: #fff5df; }
.workspace-shortcuts { padding: 18px; border: 1px solid #927141; border-radius: 14px; background: #261c14bb; }
.workspace-shortcuts h2 { font-size: 1rem; margin: 0 0 10px; }
.workspace-shortcuts a { display: flex; justify-content: space-between; gap: 10px; color: #ffe6b2; padding: 12px 0; border-top: 1px solid #6d5435; text-decoration: none; }
.workspace-shortcuts a:hover { text-decoration: underline; }
.tool-directory { margin-top: clamp(26px, 5vw, 52px); }
.tool-directory h2 { font-size: clamp(1.65rem, 4vw, 2.4rem); margin-bottom: 14px; }
.tool-search-row { display: flex; gap: 8px; align-items: center; }
.tool-search-row input { margin: 6px 0 12px; max-width: 540px; }
.tool-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.tool-filters button { border: 1px solid var(--goat-border); border-radius: 22px; padding: 8px 14px; min-height: 44px; background: white; color: var(--goat-ink); font: inherit; font-size: .88rem; cursor: pointer; }
.tool-filters button[aria-pressed="true"] { background: #292015; color: white; border-color: #292015; }
#tool-status { margin: 10px 0; font-size: .88rem; }
.tool-group { margin: 26px 0; }
.tool-group > h3 { margin: 0 0 12px; font-size: 1.12rem; }
.tool-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 245px), 1fr)); gap: 12px; }
.tool-card { display: flex; flex-direction: column; padding: 16px; border-radius: 14px; border: 1px solid var(--goat-border); background: #fff; color: var(--goat-ink); text-decoration: none; box-shadow: 0 4px 14px #3b27100a; }
.tool-card:hover { border-color: #b0894f; background: #fffbf1; }
.tool-card-top { display: flex; align-items: center; gap: 8px; }
.tool-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: #f5e8cd; color: #664213; font-size: .82rem; font-weight: 800; }
.tool-arrow { margin-left: auto; color: var(--goat-link); }
.tool-tier { color: #674615; font-size: .75rem; font-weight: 700; }
.tool-card :is(h3, h4) { margin: 12px 0 4px; font-size: 1.06rem; text-wrap: initial; }
.tool-card p { color: var(--goat-muted); margin: 0; line-height: 1.45; font-size: .92rem; }
.workspace-footer { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }

@media (max-width: 650px) {
  header.goat-header { padding: 8px 14px 10px; gap: 3px 12px; }
  .goat-header .brand-logo { width: 96px; height: 40px; }
  .goat-header nav.goat-nav { gap: 2px; }
  .goat-header .goat-nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: .82rem; padding: 9px 7px; }
  .goat-workspace { margin-top: 20px; padding-inline: 14px; }
  .workspace-hero { grid-template-columns: 1fr; border-radius: 16px; }
  .workspace-shortcuts { padding: 12px 14px; }
  .tool-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 155px), 1fr)); }
  .tool-card { padding: 12px; }
}

.goat-header .brand-release {
  align-self: center;
  margin-left: .25rem;
  padding: .14rem .43rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  color: #f1c578;
  font-size: .69rem;
  font-weight: 750;
  line-height: 1.25;
}
