/* My Travel Innovations, a travel agency in Boise, Idaho.
   Archetype: a wide commercial storefront. Banded full width sections, a fixed masthead carrying
   the telephone number, and a card grid for the catalogue. This is the shape American agency
   sites take, and no site in this project has used it before.
   Reveal: the rule above a section grows from nothing to full width. Nothing on this site fades,
   so no content can ever be left invisible by a throttled timer. */

:root {
  --paper: #fbfaf7;
  --card: #efece3;
  --ink: #1c1f22;
  --rule: #343a3d;
  --quiet: #8b8b84;
  --hair: #cfccc0;
  --deep: #0b6b5e;
  --warm: #b5561f;
  --lead: 1.71;
  --hold: min(74rem, 100% - 2.5rem);
  --narrow: min(46rem, 100% - 2.5rem);
}

@font-face {
  font-family: "Shop Display";
  src: url("/assets/mt-display-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Shop Text";
  src: url("/assets/mt-text-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Shop Text";
  src: url("/assets/mt-text-600.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Shop Text";
  src: url("/assets/mt-text-700.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Shop Text", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: var(--lead);
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--warm); }

:focus-visible { outline: 3px solid var(--warm); outline-offset: 2px; }

.mt-skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--paper);
  padding: 0.7rem 1.2rem; z-index: 60; font-weight: 600;
}
.mt-skip:focus { left: 0; }

/* ---------------------------------------------------------------- masthead */

.mt-top {
  background: var(--paper);
  border-bottom: 1px solid var(--hair);
  position: sticky; top: 0; z-index: 40;
}

.mt-top-in {
  width: var(--hold); margin-inline: auto;
  display: flex; flex-wrap: wrap; gap: 0.6rem 2rem;
  align-items: baseline; justify-content: space-between;
  padding: 1rem 0 0.85rem;
}

.mt-mast { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.35rem 0.9rem; }
.mt-mast a {
  font-family: "Shop Display", Georgia, serif;
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  color: var(--ink); text-decoration: none; letter-spacing: -0.01em;
}
.mt-mast a:hover { color: var(--deep); }
.mt-mast-strap {
  font-size: 0.7rem; letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--quiet); font-weight: 600;
}

.mt-top-reach { margin: 0; text-align: right; line-height: 1.35; }
.mt-top-reach a {
  display: block; font-weight: 700; font-size: 1.12rem;
  color: var(--ink); text-decoration: none;
}
.mt-top-reach a:hover { color: var(--warm); }
.mt-top-reach span { display: block; font-size: 0.76rem; color: var(--quiet); }

.mt-nav { background: var(--ink); }
.mt-nav-in { width: var(--hold); margin-inline: auto; overflow-x: auto; }
.mt-nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: 0; white-space: nowrap;
}
.mt-nav a {
  display: block; padding: 0.72rem 1.05rem;
  color: #e6e3da; text-decoration: none;
  font-size: 0.83rem; font-weight: 600;
  letter-spacing: 0.055em; text-transform: uppercase;
}
.mt-nav a:hover { background: var(--rule); color: #fff; }
.mt-nav a[aria-current="page"] { background: var(--deep); color: #fff; }

/* ---------------------------------------------------------------- head */

.mt-head { margin: 0; }

.mt-hero-art {
  width: 100%; max-height: 46vh; overflow: hidden;
  border-bottom: 4px solid var(--deep);
}
.mt-hero-art img { width: 100%; height: 100%; object-fit: cover; }

.mt-head-say {
  width: var(--hold); margin-inline: auto;
  padding: 2.6rem 0 1.9rem;
  border-bottom: 1px solid var(--hair);
}

.mt-brow {
  margin: 0 0 0.7rem;
  font-size: 0.73rem; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--warm); font-weight: 700;
}

.mt-head h1 {
  font-family: "Shop Display", Georgia, serif;
  font-weight: 400;
  font-size: clamp(1.95rem, 4.6vw, 3.1rem);
  line-height: 1.13; letter-spacing: -0.015em;
  margin: 0 0 1rem; max-width: 22ch;
}
.is-front .mt-head h1 { max-width: 26ch; }

.mt-stand {
  margin: 0; max-width: 58ch;
  font-size: 1.16rem; color: var(--rule);
}

/* ---------------------------------------------------------------- body */

.mt-body { width: var(--hold); margin: 0 auto; padding: 2.4rem 0 3.5rem; }

.mt-body > p, .mt-body > ul, .mt-body > ol,
.mt-body > h2, .mt-body > h3 { max-width: 66ch; }

.mt-body h2 {
  font-family: "Shop Display", Georgia, serif;
  font-weight: 400;
  font-size: clamp(1.5rem, 2.9vw, 2.05rem);
  line-height: 1.2; letter-spacing: -0.01em;
  margin: 2.9rem 0 0.9rem; padding-top: 1.4rem;
  position: relative;
}
.mt-body h2::before {
  content: ""; position: absolute; top: 0; left: 0;
  height: 3px; background: var(--deep);
  width: 100%;
}
.mt-body > h2:first-child { margin-top: 0.4rem; }

.mt-body h3 {
  font-size: 1.16rem; font-weight: 700; letter-spacing: -0.005em;
  margin: 2rem 0 0.55rem;
}

.mt-body p { margin: 0 0 1.05rem; }
.mt-body ul, .mt-body ol { margin: 0 0 1.3rem; padding-left: 1.35rem; }
.mt-body li { margin-bottom: 0.6rem; }
.mt-body strong { font-weight: 700; }

/* the reveal: only this rule moves, never the text */
.mt-body h2::before { transition: width 520ms cubic-bezier(.22,.61,.36,1); }
.mt-rise::before { width: 0 !important; }

@media (prefers-reduced-motion: reduce) {
  .mt-body h2::before { transition: none; }
  .mt-rise::before { width: 100% !important; }
}

/* ---------------------------------------------------------------- cards */

.mt-cards {
  list-style: none; margin: 1.4rem 0 2rem; padding: 0; max-width: none;
  display: grid; gap: 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
}

.mt-card a {
  display: flex; flex-direction: column; height: 100%;
  background: var(--card); color: var(--ink); text-decoration: none;
  border: 1px solid var(--hair);
  transition: border-color 180ms ease;
}
.mt-card a:hover { border-color: var(--deep); }
.mt-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

.mt-card-kind {
  padding: 0.75rem 1rem 0;
  font-size: 0.7rem; letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--warm); font-weight: 700;
}
.mt-card-name {
  padding: 0.3rem 1rem 0;
  font-family: "Shop Display", Georgia, serif;
  font-size: 1.24rem; line-height: 1.2;
}
.mt-card a:hover .mt-card-name { color: var(--deep); }
.mt-card-said {
  padding: 0.55rem 1rem 0.9rem;
  font-size: 0.92rem; color: var(--rule); line-height: 1.5; flex: 1;
}
.mt-card-from {
  padding: 0.7rem 1rem 0.85rem;
  border-top: 1px solid var(--hair);
  font-weight: 700; font-size: 0.98rem;
}

/* ---------------------------------------------------------------- price */

.mt-price {
  margin: 1.6rem 0 0.6rem; max-width: none;
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.5rem;
  border-top: 3px solid var(--ink); border-bottom: 1px solid var(--hair);
  padding: 1rem 0;
}
.mt-price-from {
  font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--quiet); font-weight: 700;
}
.mt-price-sum {
  font-family: "Shop Display", Georgia, serif;
  font-size: clamp(2rem, 5vw, 2.9rem); line-height: 1;
}
.mt-price-per { font-size: 0.95rem; color: var(--rule); }
.mt-price-note { font-size: 0.93rem; color: var(--rule); margin-bottom: 1.4rem; }

/* ---------------------------------------------------------------- tables */

.mt-grid-wrap, .mt-spec { max-width: none; }
.mt-grid-wrap { overflow-x: auto; margin: 1.3rem 0 2rem; }

.mt-grid, .mt-spec {
  width: 100%; border-collapse: collapse; font-size: 0.97rem;
  min-width: 32rem;
}
.mt-spec { margin: 1.3rem 0 2rem; }

.mt-grid caption, .mt-spec caption {
  text-align: left; font-size: 0.78rem; letter-spacing: 0.11em;
  text-transform: uppercase; color: var(--quiet); font-weight: 700;
  padding-bottom: 0.6rem;
}

.mt-grid th, .mt-grid td, .mt-spec th, .mt-spec td {
  border-bottom: 1px solid var(--hair);
  padding: 0.75rem 0.9rem 0.75rem 0;
  text-align: left; vertical-align: top;
}
.mt-grid thead th {
  border-bottom: 2px solid var(--ink);
  font-size: 0.76rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--rule);
}
.mt-grid tbody th, .mt-spec th {
  font-weight: 700; width: 34%; padding-right: 1.4rem;
}
.mt-spec th { width: 30%; color: var(--rule); }

.mt-claim-on { color: var(--deep); font-weight: 700; }
.mt-claim-off { color: var(--warm); font-weight: 700; }

/* ---------------------------------------------------------------- plate */

.mt-plate { margin: 2rem 0; max-width: none; }
.mt-plate img { width: 100%; border: 1px solid var(--hair); }
.mt-plate figcaption {
  font-size: 0.88rem; color: var(--quiet);
  padding-top: 0.6rem; max-width: 62ch;
}

/* ---------------------------------------------------------------- form */

.mt-quote {
  max-width: none; margin: 1.6rem 0 2rem;
  background: var(--card); border: 1px solid var(--hair);
  padding: 1.6rem;
}

.mt-fields {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  margin: 1.2rem 0;
}
.mt-field-wide { grid-column: 1 / -1; }

.mt-field label {
  display: block; font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--rule); margin-bottom: 0.35rem;
}
.mt-field input, .mt-field select, .mt-field textarea {
  width: 100%; font: inherit; font-size: 1rem;
  padding: 0.6rem 0.7rem;
  border: 1px solid var(--quiet); background: var(--paper); color: var(--ink);
  border-radius: 0;
}
.mt-field textarea { resize: vertical; }
.mt-field input:focus, .mt-field select:focus, .mt-field textarea:focus {
  border-color: var(--deep);
}
.mt-field [aria-invalid="true"] { border-color: var(--warm); border-width: 2px; }

.mt-said {
  display: block; font-size: 0.86rem; color: var(--warm);
  font-weight: 600; margin-top: 0.3rem;
}

.mt-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.mt-send { margin: 0 0 1rem; }
.mt-send button {
  font: inherit; font-weight: 700; font-size: 1rem;
  letter-spacing: 0.04em;
  background: var(--deep); color: #fff;
  border: 2px solid var(--deep); border-radius: 0;
  padding: 0.75rem 1.7rem; cursor: pointer;
}
.mt-send button:hover:not([disabled]) { background: var(--ink); border-color: var(--ink); }
.mt-send button[disabled] {
  background: transparent; color: var(--quiet); border-color: var(--hair);
  cursor: not-allowed;
}

.mt-fine { font-size: 0.9rem; color: var(--rule); margin: 0 0 0.9rem; }
.mt-off, .mt-broke {
  font-size: 0.92rem; border-left: 4px solid var(--warm);
  padding: 0.6rem 0 0.6rem 0.9rem; margin: 0.9rem 0 0;
}

/* ---------------------------------------------------------------- slot */

.mt-slot { max-width: none; }
.mt-slot[hidden] { display: none; }

/* ---------------------------------------------------------------- also */

.mt-also {
  max-width: none; margin: 3rem 0 0;
  border-top: 3px solid var(--ink); padding-top: 1.2rem;
}
.mt-also h2 {
  font-family: inherit; font-size: 0.76rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--quiet); font-weight: 700;
  margin: 0 0 1rem; padding: 0;
}
.mt-also h2::before { display: none; }
.mt-also ul {
  list-style: none; margin: 0; padding: 0; max-width: none;
  display: grid; gap: 1.1rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}
.mt-also a { text-decoration: none; color: var(--ink); display: block; }
.mt-also-name {
  display: block; font-weight: 700; font-size: 1.02rem;
  border-bottom: 1px solid var(--hair); padding-bottom: 0.3rem; margin-bottom: 0.35rem;
}
.mt-also a:hover .mt-also-name { color: var(--deep); border-color: var(--deep); }
.mt-also-said { display: block; font-size: 0.9rem; color: var(--rule); line-height: 1.5; }

/* ---------------------------------------------------------------- asks */

.mt-asks { max-width: none; margin: 1.4rem 0 2rem; }
.mt-ask {
  border-top: 1px solid var(--hair);
  padding: 1.2rem 0 0.4rem;
  display: grid; gap: 0 2.5rem;
  grid-template-columns: minmax(0, 1fr);
}
.mt-ask h3 { margin: 0 0 0.6rem; font-size: 1.08rem; }
.mt-ask p { margin: 0 0 0.8rem; max-width: 62ch; }

@media (min-width: 54rem) {
  .mt-ask { grid-template-columns: 17rem minmax(0, 1fr); }
  .mt-ask h3 { grid-row: 1 / span 9; }
}

/* ---------------------------------------------------------------- keep */

.mt-keep {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem;
  max-width: 30rem; z-index: 50;
  background: var(--ink); color: #eceade;
  padding: 1.05rem 1.15rem;
  font-size: 0.9rem; line-height: 1.55;
  border-left: 4px solid var(--warm);
}
.mt-keep[hidden] { display: none; }
.mt-keep p { margin: 0 0 0.75rem; }
.mt-keep a { color: #fff; }
.mt-keep-go { margin: 0; display: flex; gap: 0.6rem; flex-wrap: wrap; }
.mt-keep button {
  font: inherit; font-size: 0.88rem; font-weight: 700;
  padding: 0.42rem 1rem; cursor: pointer; border-radius: 0;
  background: transparent; color: #eceade; border: 1px solid #6d6f66;
}
.mt-keep button:hover { background: #eceade; color: var(--ink); border-color: #eceade; }

/* ---------------------------------------------------------------- foot */

.mt-foot {
  background: var(--card);
  border-top: 4px solid var(--ink);
  margin-top: 3rem; padding: 2.6rem 0 1.6rem;
  font-size: 0.93rem;
}
.mt-foot-in {
  width: var(--hold); margin-inline: auto;
  display: grid; gap: 2.2rem;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 56rem) {
  .mt-foot-in { grid-template-columns: 22rem minmax(0, 1fr); gap: 3.5rem; }
}

.mt-foot-say p { margin: 0 0 0.7rem; color: var(--rule); }
.mt-foot-name {
  font-family: "Shop Display", Georgia, serif;
  font-size: 1.35rem; color: var(--ink) !important;
}
.mt-foot-stand {
  border-top: 1px solid var(--hair); padding-top: 0.7rem;
  font-size: 0.88rem;
}

.mt-foot-cols {
  display: grid; gap: 1.6rem;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
}
.mt-foot-cols h2 {
  font-size: 0.74rem; letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--quiet); font-weight: 700; margin: 0 0 0.6rem;
}
.mt-foot-cols ul { list-style: none; margin: 0; padding: 0; }
.mt-foot-cols li { margin-bottom: 0.42rem; }
.mt-foot-cols a { color: var(--ink); text-decoration: none; }
.mt-foot-cols a:hover { color: var(--warm); text-decoration: underline; }

.mt-foot-line {
  width: var(--hold); margin: 2rem auto 0;
  border-top: 1px solid var(--hair); padding-top: 1rem;
  font-size: 0.83rem; color: var(--quiet);
}

@media print {
  .mt-nav, .mt-keep, .mt-quote, .mt-also { display: none; }
  body { font-size: 11pt; }
}
