/* Tamas Tanya pitch kit - design tokens and base components */

:root {
  /* brand */
  --forest: #2c3e30;
  --forest-dark: #151f17;
  --gold: #a88655;
  --gold-soft: #c2a97e;
  --cream: #fdfcf9;
  --pale: #f4f2ec;
  --line: #d1cab8;
  --ink: #26221d;
  /* derived */
  --muted: #6f6a5e;
  --muted-soft: #928c7f;
  --success: #3f7d52;
  --success-bg: #e6f0e6;
  --warn: #b07d24;
  --warn-bg: #f8efdc;
  --danger: #a2402f;
  --danger-bg: #f6e3df;
  --info: #3c6079;
  --info-bg: #e3ecf2;
  --white: #ffffff;
  --shadow-sm: 0 1px 2px rgba(21, 31, 23, .07), 0 2px 8px rgba(21, 31, 23, .05);
  --shadow-md: 0 4px 12px rgba(21, 31, 23, .09), 0 12px 32px rgba(21, 31, 23, .08);
  --shadow-lg: 0 18px 48px rgba(21, 31, 23, .18);
  /* type */
  --font-head: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body: 'Lato', 'Helvetica Neue', Arial, sans-serif;
  --fs-xs: 12px;
  --fs-sm: 14px;
  --fs-base: 16px;
  --fs-md: 18px;
  --fs-lg: 21px;
  --fs-xl: 28px;
  --fs-2xl: 36px;
  --fs-3xl: 48px;
  --fs-4xl: 64px;
  /* space */
  --s1: 4px;
  --s2: 8px;
  --s3: 12px;
  --s4: 16px;
  --s5: 24px;
  --s6: 32px;
  --s7: 48px;
  --s8: 64px;
  --s9: 96px;
  /* layout */
  --container: 1180px;
  --container-narrow: 780px;
  --radius: 6px;
  --radius-lg: 12px;
  --radius-pill: 999px;
  --header-h: 76px;
}

/* reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; display: block; }
a { color: var(--forest); text-decoration: none; }
a:hover { color: var(--gold); }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 var(--s4);
  color: var(--forest-dark);
  letter-spacing: .2px;
}
h1 { font-size: var(--fs-3xl); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-xl); }
h4 { font-size: var(--fs-lg); }
p { margin: 0 0 var(--s4); }
ul, ol { margin: 0 0 var(--s4); padding-left: 1.2em; }
small { font-size: var(--fs-sm); }
hr { border: 0; border-top: 1px solid var(--line); margin: var(--s6) 0; }

/* layout helpers */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--s5); }
.container-narrow { max-width: var(--container-narrow); }
.section { padding: var(--s9) 0; }
.section-sm { padding: var(--s7) 0; }
.band-dark { background: var(--forest-dark); color: var(--pale); }
.band-dark h1, .band-dark h2, .band-dark h3, .band-dark h4 { color: var(--cream); }
.band-dark a { color: var(--gold-soft); }
.band-pale { background: var(--pale); }
.band-forest { background: var(--forest); color: var(--cream); }
.band-forest h2, .band-forest h3 { color: var(--cream); }
.grid-2, .grid-3, .grid-4 { display: grid; gap: var(--s5); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* type helpers */
.kicker {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin: 0 0 var(--s3);
}
.lead { font-size: var(--fs-md); color: var(--muted); max-width: 62ch; }
.band-dark .lead { color: var(--line); }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.muted { color: var(--muted); }
.serif { font-family: var(--font-head); }
.mt0 { margin-top: 0; }
.mb0 { margin-bottom: 0; }
.mt4 { margin-top: var(--s4); }
.mt5 { margin-top: var(--s5); }
.mt6 { margin-top: var(--s6); }
.nowrap { white-space: nowrap; }
.hide { display: none !important; }
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  padding: 13px 26px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
  background: none;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--forest); color: var(--cream); }
.btn-primary:hover { background: var(--forest-dark); color: var(--cream); }
.btn-gold { background: var(--gold); color: var(--forest-dark); }
.btn-gold:hover { background: var(--gold-soft); color: var(--forest-dark); }
.btn-ghost { border-color: currentColor; color: var(--forest); }
.btn-ghost:hover { background: var(--forest); color: var(--cream); border-color: var(--forest); }
.band-dark .btn-ghost { color: var(--cream); }
.band-dark .btn-ghost:hover { background: var(--cream); color: var(--forest-dark); }
.btn-sm { padding: 8px 16px; font-size: var(--fs-xs); }
.btn-block { width: 100%; }
.btn[disabled], .btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s3); }

/* cards */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--s5);
  box-shadow: var(--shadow-sm);
}
.card-flat { box-shadow: none; }
.card-pad-lg { padding: var(--s6); }
.card h3 { margin-bottom: var(--s2); }
.card-media { padding: 0; overflow: hidden; }
.card-media img { width: 100%; height: 220px; object-fit: cover; }
.card-media .card-body { padding: var(--s5); }

/* pills and badges */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 12px;
  border-radius: var(--radius-pill);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .04em;
  background: var(--pale);
  color: var(--muted);
  border: 1px solid var(--line);
  white-space: nowrap;
}
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill-free { background: var(--success-bg); color: var(--success); border-color: #bcd8c2; }
.pill-hold { background: var(--warn-bg); color: var(--warn); border-color: #e3ceA0; }
.pill-confirmed { background: var(--forest); color: var(--cream); border-color: var(--forest); }
.pill-released { background: var(--info-bg); color: var(--info); border-color: #bcd0dd; }
.pill-closed { background: #ece9e2; color: var(--muted-soft); border-color: var(--line); }
.pill-priority { background: var(--danger-bg); color: var(--danger); border-color: #e2bdb5; }
.pill-plain::before { display: none; }

/* sample data marker */
.minta {
  display: inline-block;
  padding: 2px 9px;
  border-radius: var(--radius-pill);
  background: repeating-linear-gradient(135deg, #f6efdd, #f6efdd 6px, #f1e6cd 6px, #f1e6cd 12px);
  border: 1px dashed var(--gold);
  color: #7c5f2c;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  vertical-align: middle;
}
.minta-note {
  font-size: var(--fs-xs);
  color: var(--muted);
  border-left: 3px solid var(--gold);
  padding-left: var(--s3);
  margin: var(--s4) 0;
}

/* forms */
.field { margin-bottom: var(--s4); }
.field > label, .label {
  display: block;
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--forest-dark);
  margin-bottom: 6px;
}
.field .hint { display: block; font-size: var(--fs-xs); color: var(--muted); margin-top: 5px; }
.input, input[type="text"], input[type="email"], input[type="tel"], input[type="number"],
input[type="date"], input[type="time"], select, textarea {
  width: 100%;
  padding: 11px 13px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: var(--fs-base);
  color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 12px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 36px;
}
textarea { min-height: 120px; resize: vertical; line-height: 1.6; }
.input:focus, input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--forest);
  box-shadow: 0 0 0 3px rgba(44, 62, 48, .12);
}
.field-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s4); }
@media (max-width: 620px) { .field-row { grid-template-columns: 1fr; } }
.field.is-error .input, .field.is-error input, .field.is-error select, .field.is-error textarea {
  border-color: var(--danger);
  background: var(--danger-bg);
}
.field .error-text { display: none; color: var(--danger); font-size: var(--fs-xs); margin-top: 5px; font-weight: 700; }
.field.is-error .error-text { display: block; }
.check-row {
  display: flex; align-items: flex-start; gap: var(--s3);
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  margin-bottom: var(--s2);
  cursor: pointer;
}
.check-row input { width: 18px; height: 18px; margin-top: 3px; flex: 0 0 auto; accent-color: var(--forest); }
.check-row span { font-size: var(--fs-sm); }
.check-row:hover { border-color: var(--gold); }

/* tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
table.tt { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
table.tt th, table.tt td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); }
table.tt thead th {
  background: var(--pale);
  font-size: var(--fs-xs);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
table.tt tbody tr:last-child td { border-bottom: 0; }
table.tt tbody tr:hover { background: #faf9f5; }
table.tt td.num, table.tt th.num { text-align: right; font-variant-numeric: tabular-nums; }
