/* ------------------------------------------------------------------
   properties.knoxvillecolo.com
   Static stylesheet. No build step, no dependencies, no framework.
   ------------------------------------------------------------------ */

:root {
  --paper:      #F6F7F4;
  --paper-lift: #FFFFFF;
  --ink:        #16211D;
  --ink-soft:   #4A574F;
  --pine:       #1E3A31;
  --pine-deep:  #0F211B;
  --sage:       #8FA294;
  --brass:      #B98A22;
  --rule:       #DCDED7;
  --rule-dark:  #2F4A40;

  --measure: 64ch;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --shell: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Newsreader", Georgia, serif;
  font-size: 1.075rem;
  line-height: 1.62;
  font-optical-sizing: auto;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: "Archivo", "Helvetica Neue", Arial, sans-serif;
  font-weight: 650;
  letter-spacing: -0.024em;
  line-height: 1.05;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0 0 1.05em; max-width: var(--measure); }
p:last-child { margin-bottom: 0; }
a { color: inherit; }
img { max-width: 100%; display: block; }

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.masthead {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 20;
  color: #fff;
}

.masthead__bar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding-block: 1.4rem;
}

.wordmark {
  font-family: "Archivo", Arial, sans-serif;
  font-weight: 700;
  font-size: 1.06rem;
  text-decoration: none;
  text-shadow: 0 1px 12px rgba(0,0,0,.5);
}
.wordmark span { color: #C7D3C8; font-weight: 500; }

.masthead__contact {
  font-size: 0.96rem;
  display: flex;
  gap: 1.4rem;
  flex-wrap: wrap;
  text-shadow: 0 1px 12px rgba(0,0,0,.5);
}
.masthead__contact a { text-decoration: none; }
.masthead__contact a:hover { text-decoration: underline; }

/* ---------- media wells ---------- */

.well {
  position: relative;
  overflow: hidden;
  background: var(--pine);
}
.well img { width: 100%; height: 100%; object-fit: cover; }

.well--pending {
  background-color: var(--pine);
  background-image: repeating-linear-gradient(
    135deg, rgba(255,255,255,.06) 0 1px, transparent 1px 12px);
  display: grid;
  place-content: center;
  text-align: center;
  padding: 2rem;
  color: #C6D2C8;
}
.well--pending strong {
  display: block;
  font-family: "Archivo", Arial, sans-serif;
  font-weight: 600;
  font-size: 1.06rem;
  color: #EEF2ED;
  margin-bottom: .4rem;
  letter-spacing: -.01em;
}
.well--pending span { font-size: .93rem; line-height: 1.5; display: block; max-width: 32ch; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: min(88vh, 780px);
  display: flex;
  align-items: flex-end;
  color: #fff;
  isolation: isolate;
}

.hero .well {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    180deg,
    rgba(15,33,27,.72) 0%,
    rgba(15,33,27,.28) 34%,
    rgba(15,33,27,.62) 72%,
    rgba(15,33,27,.92) 100%);
}

.hero__inner { padding-block: clamp(3rem, 8vw, 5.5rem); width: 100%; }

.hero h1 {
  font-size: clamp(2.6rem, 7.2vw, 5.4rem);
  font-weight: 700;
  max-width: 16ch;
  margin-bottom: 1.1rem;
  text-shadow: 0 2px 28px rgba(0,0,0,.45);
}

.hero__where {
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  color: #D6E0D7;
  margin-bottom: 1.5rem;
  max-width: 46ch;
}

.hero__lede {
  font-size: clamp(1.08rem, 1.6vw, 1.28rem);
  color: #D6E0D7;
  max-width: 52ch;
  margin-bottom: 1.8rem;
}

/* ---------- facts strip ---------- */

.facts { background: var(--ink); color: var(--paper); }

.facts__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }

.facts__item {
  padding: clamp(1.3rem, 3vw, 1.9rem) 1.25rem;
  border-left: 1px solid rgba(255,255,255,.13);
}
.facts__item:first-child { border-left: 0; padding-left: 0; }

.facts__n {
  font-family: "Archivo", Arial, sans-serif;
  font-weight: 700;
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  letter-spacing: -.03em;
  line-height: 1;
  display: block;
  margin-bottom: .4rem;
}
.facts__l { font-size: .92rem; color: var(--sage); }

/* ---------- index: alternating property blocks ---------- */

.band { padding-block: clamp(3rem, 7vw, 5.5rem); }
.band--tight { padding-block: clamp(2rem, 4vw, 3rem); }
.band--lift { background: var(--paper-lift); border-block: 1px solid var(--rule); }

.band__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--ink);
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.band__head h2 { font-size: clamp(1.55rem, 3vw, 2.15rem); }
.band__head p { color: var(--ink-soft); font-size: .95rem; margin: 0; }

.entry {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  margin-bottom: clamp(3rem, 7vw, 5rem);
}
.entry:last-child { margin-bottom: 0; }

.entry .well { aspect-ratio: 3 / 2; }

.entry:nth-child(even) .entry__media { order: 2; }

.entry:nth-child(odd)  .entry__media { margin-left: calc(var(--gutter) * -1); }
.entry:nth-child(even) .entry__media { margin-right: calc(var(--gutter) * -1); }

.entry h3 { font-size: clamp(1.65rem, 3.2vw, 2.35rem); margin-bottom: .45rem; }
.entry__where { color: var(--ink-soft); margin-bottom: 1.1rem; }
.entry__blurb { margin-bottom: 1.4rem; }

.entry__from {
  font-family: "Archivo", Arial, sans-serif;
  font-size: 1.02rem;
  color: var(--ink-soft);
  margin-bottom: 1.4rem;
}
.entry__from b {
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: -.03em;
  color: var(--ink);
  display: inline-block;
  margin-right: .35rem;
}

/* ---------- status ---------- */

.status {
  display: inline-block;
  font-family: "Archivo", Arial, sans-serif;
  font-size: .8rem;
  font-weight: 600;
  padding: .3rem .7rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  vertical-align: .18em;
  white-space: nowrap;
}
.status--available { color: var(--brass); }
.status--pending   { color: var(--ink-soft); }
.status--leased    { color: var(--sage); }

.hero .status { color: #F0C960; background: rgba(15,33,27,.55); }

/* ---------- buttons ---------- */

.actions { display: flex; flex-wrap: wrap; gap: .75rem; }

.btn {
  display: inline-block;
  font-family: "Archivo", Arial, sans-serif;
  font-size: .99rem;
  font-weight: 600;
  padding: .78rem 1.45rem;
  text-decoration: none;
  border: 1.5px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  transition: background-color 120ms ease, color 120ms ease, border-color 120ms ease;
}
.btn:hover { background: var(--pine); border-color: var(--pine); }
.btn--quiet { background: transparent; color: var(--ink); }
.btn--quiet:hover { background: var(--ink); color: var(--paper); }
.btn--light { background: #fff; border-color: #fff; color: var(--ink); }
.btn--light:hover { background: var(--brass); border-color: var(--brass); color: #fff; }
.btn--ghost { background: transparent; border-color: rgba(255,255,255,.65); color: #fff; }
.btn--ghost:hover { background: rgba(255,255,255,.14); border-color: #fff; }

/* ---------- buy / lease chooser ---------- */

.paths {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.path {
  background: var(--paper-lift);
  padding: clamp(1.5rem, 3vw, 2.1rem);
  text-decoration: none;
  color: inherit;
  border-top: 3px solid transparent;
  transition: border-color 120ms ease, background-color 120ms ease;
}
.path:hover { border-top-color: var(--brass); background: #FFFDF7; }
.path h2 { font-size: 1.35rem; margin-bottom: .5rem; }
.path p { font-size: .99rem; color: var(--ink-soft); margin-bottom: .85rem; }
.path__cue {
  font-family: "Archivo", Arial, sans-serif;
  font-weight: 600;
  font-size: .95rem;
  color: var(--pine);
  border-bottom: 1.5px solid var(--brass);
  padding-bottom: 2px;
}

/* ---------- gallery ---------- */

.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; }
.gallery .shot { border: 0; padding: 0; cursor: zoom-in; background: none; display: block; }
.gallery .well { aspect-ratio: 3 / 2; height: 100%; }
.gallery .shot:first-child { grid-column: span 2; grid-row: span 2; }
.gallery .shot:first-child .well { aspect-ratio: 3 / 2.02; }
.gallery img { transition: transform 400ms ease; }
.gallery .shot:hover img { transform: scale(1.03); }

.gallery--empty { grid-template-columns: 1fr; }
.gallery--empty .well { aspect-ratio: 21 / 8; }

.gallery__more {
  grid-column: 1 / -1;
  text-align: center;
  padding: .85rem;
  font-family: "Archivo", Arial, sans-serif;
  font-size: .95rem;
  color: var(--ink-soft);
  background: var(--paper-lift);
}

.lb {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(10,18,15,.94);
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
}
.lb.is-open { display: flex; }
.lb img { max-width: 100%; max-height: 86vh; object-fit: contain; }
.lb__btn {
  position: absolute;
  background: none;
  border: 0;
  color: #fff;
  font-size: 2.4rem;
  line-height: 1;
  padding: .6rem 1rem;
  cursor: pointer;
  opacity: .75;
}
.lb__btn:hover { opacity: 1; }
.lb__close { top: .5rem; right: .8rem; font-size: 2rem; }
.lb__prev { left: .3rem; }
.lb__next { right: .3rem; }
.lb__count {
  position: absolute;
  bottom: 1.1rem;
  left: 50%;
  transform: translateX(-50%);
  color: #C6D2C8;
  font-family: "Archivo", Arial, sans-serif;
  font-size: .9rem;
}

/* ---------- detail layout ---------- */

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.aside {
  position: sticky;
  top: 1.5rem;
  background: var(--pine-deep);
  color: var(--paper);
  padding: clamp(1.5rem, 3vw, 2rem);
}
.aside h2 { font-size: 1.28rem; margin-bottom: .8rem; }
.aside p { font-size: .97rem; color: #C6D2C8; }

.aside__line {
  display: block;
  padding-block: .65rem;
  border-bottom: 1px solid var(--rule-dark);
  font-size: 1.02rem;
  text-decoration: none;
}
.aside__line:hover { color: #F0C960; }
.aside__line b {
  font-family: "Archivo", Arial, sans-serif;
  font-weight: 550;
  font-size: .84rem;
  color: var(--sage);
  display: block;
  margin-bottom: .1rem;
}

/* ---------- prose ---------- */

.prose h2 {
  font-size: clamp(1.4rem, 2.7vw, 1.85rem);
  margin-top: 2.75rem;
  margin-bottom: .9rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--ink);
}
.prose > h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.15rem; margin: 0 0 1.2rem; max-width: var(--measure); }
.prose li { margin-bottom: .4rem; }

.specs { margin: 0 0 1.5rem; border-top: 1px solid var(--rule); }
.specs div {
  display: grid;
  grid-template-columns: 11rem minmax(0, 1fr);
  gap: .35rem 1.25rem;
  padding-block: .62rem;
  border-bottom: 1px solid var(--rule);
}
.specs dt {
  font-family: "Archivo", Arial, sans-serif;
  font-size: .9rem;
  font-weight: 550;
  color: var(--ink-soft);
}
.specs dd { margin: 0; }

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

.rates {
  display: grid;
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  margin-bottom: 1.5rem;
}

.rate {
  background: var(--paper-lift);
  padding: clamp(1.15rem, 2.4vw, 1.5rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .4rem 1.5rem;
  align-items: baseline;
}

.rate__name {
  font-family: "Archivo", Arial, sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: -.015em;
}

.rate__amt {
  font-family: "Archivo", Arial, sans-serif;
  font-weight: 700;
  font-size: 1.75rem;
  letter-spacing: -.03em;
  white-space: nowrap;
  text-align: right;
}
.rate__amt small {
  font-size: .82rem;
  font-weight: 500;
  color: var(--ink-soft);
  display: block;
  letter-spacing: 0;
}

.rate__note {
  grid-column: 1 / -1;
  color: var(--ink-soft);
  font-size: .97rem;
  margin: 0;
  max-width: none;
}

.callout {
  background: var(--paper-lift);
  border-left: 3px solid var(--brass);
  padding: 1.2rem 1.45rem;
  margin-bottom: 1.4rem;
  max-width: var(--measure);
}
.callout p { font-size: .99rem; }

.tk {
  background: #FBE9BE;
  color: #6B4E05;
  padding: 0 .35em;
  font-family: "Archivo", Arial, sans-serif;
  font-size: .88em;
  font-weight: 600;
}

/* ---------- sticky mobile contact bar ---------- */

.dock {
  display: none;
  position: fixed;
  inset: auto 0 0 0;
  z-index: 60;
  background: var(--pine-deep);
  border-top: 1px solid var(--rule-dark);
  padding: .6rem .75rem calc(.6rem + env(safe-area-inset-bottom));
  gap: .6rem;
}
.dock a {
  flex: 1;
  text-align: center;
  font-family: "Archivo", Arial, sans-serif;
  font-weight: 600;
  font-size: .97rem;
  padding: .8rem .5rem;
  text-decoration: none;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.4);
}
.dock a.primary { background: var(--brass); border-color: var(--brass); color: #14201C; }

/* ---------- footer ---------- */

.footer {
  background: var(--pine-deep);
  color: #C6D2C8;
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
  font-size: .97rem;
}
.footer a { color: #EEF2ED; }
.footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--rule-dark);
}
.footer h2 { font-size: 1rem; color: #fff; margin-bottom: .7rem; font-weight: 600; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: .42rem; }
.footer__fine {
  padding-top: 1.5rem;
  color: var(--sage);
  font-size: .87rem;
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.footer__fine p { max-width: 62ch; margin: 0; }

/* ---------- responsive ---------- */

@media (max-width: 1000px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery .shot:first-child { grid-column: span 2; grid-row: auto; }
}

@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  .aside { position: static; }
  .entry { grid-template-columns: 1fr; }
  .entry:nth-child(even) .entry__media { order: 0; }
  .entry__media { margin-inline: calc(var(--gutter) * -1) !important; }
  .dock { display: flex; }
  body { padding-bottom: 4.5rem; }
  .hero { min-height: min(72vh, 620px); }
}

@media (max-width: 560px) {
  .specs div { grid-template-columns: 1fr; }
  .rate { grid-template-columns: 1fr; }
  .rate__amt { text-align: left; }
  .btn { width: 100%; text-align: center; }
  .facts__item { border-left: 0; border-top: 1px solid rgba(255,255,255,.13); padding-left: 0; }
  .facts__item:first-child { border-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

@media print {
  .masthead, .footer, .actions, .dock, .lb { display: none !important; }
  body { background: #fff; padding-bottom: 0; }
  .hero { min-height: auto; color: var(--ink); }
  .hero::after { display: none; }
}

/* overflow photos are in the DOM for the lightbox but must not render */
.gallery[hidden] { display: none !important; }
.gallery__more { cursor: zoom-in; }

/* text-code lines */
.hero__codes {
  margin-top: 1.1rem;
  font-size: 1rem;
  color: #D6E0D7;
}
.hero__codes b {
  font-family: "Archivo", Arial, sans-serif;
  font-weight: 700;
  color: #F0C960;
  letter-spacing: .01em;
}
.hero__codes a { color: #fff; }

.path__code {
  display: block;
  margin-top: .7rem;
  font-size: .89rem;
  color: var(--ink-soft);
}
.path__code b {
  font-family: "Archivo", Arial, sans-serif;
  font-weight: 700;
  color: var(--pine);
}

.dock a { font-size: .88rem; padding: .8rem .3rem; }

/* ---------- photo entry points ---------- */

.galhead { padding-block: clamp(1.5rem,3vw,2.25rem) .9rem; }
.galhead__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-bottom: .8rem;
  border-bottom: 2px solid var(--ink);
}
.galhead__bar h2 { font-size: clamp(1.4rem,2.6vw,1.8rem); }

.seephotos { margin: 1.4rem 0 0; max-width: none; }

.aside__photos { width: 100%; text-align: center; margin-bottom: 1.4rem; }

/* make tiles obviously clickable */
.gallery .shot { position: relative; }
.gallery .shot::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(15,33,27,0);
  transition: background-color 160ms ease;
  pointer-events: none;
}
.gallery .shot:hover::after { background: rgba(15,33,27,.28); }
.gallery .shot::before {
  content: "\2295";
  position: absolute;
  z-index: 2;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%) scale(.8);
  color: #fff;
  font-size: 2rem;
  opacity: 0;
  transition: opacity 160ms ease, transform 160ms ease;
  pointer-events: none;
  text-shadow: 0 2px 12px rgba(0,0,0,.5);
}
.gallery .shot:hover::before { opacity: 1; transform: translate(-50%,-50%) scale(1); }

.gallery__more { font-weight: 600; color: var(--ink); }
.gallery__more:hover { background: var(--ink); color: var(--paper); }

/* sidebar text codes: one number, two codes */
.aside__codes { display: block; }
.aside__codes a {
  display: inline-block;
  margin: .5rem .45rem 0 0;
  padding: .4rem .75rem;
  border: 1px solid var(--rule-dark);
  font-family: "Archivo", Arial, sans-serif;
  font-weight: 700;
  font-size: .95rem;
  color: #F0C960;
  text-decoration: none;
  line-height: 1.25;
}
.aside__codes a:hover { background: var(--brass); border-color: var(--brass); color: #14201C; }
.aside__codes a span {
  display: block;
  font-weight: 500;
  font-size: .74rem;
  color: var(--sage);
}
.aside__codes a:hover span { color: #14201C; }

/* sidebar: the number appears once, at the top */
.aside__num {
  display: block;
  font-family: "Archivo", Arial, sans-serif;
  font-weight: 700;
  font-size: clamp(1.4rem, 2.4vw, 1.75rem);
  letter-spacing: -.02em;
  color: #F0C960;
  text-decoration: none;
  margin-bottom: .3rem;
}
.aside__num:hover { text-decoration: underline; }
.aside__sub { font-size: .92rem; color: var(--sage); margin-bottom: 1rem; }
.aside .aside__line {
  font-family: "Archivo", Arial, sans-serif;
  font-weight: 550;
  font-size: .98rem;
}
.aside .aside__line b { display: none; }
