/* Artist's Choice Framing Gallery — preset "heritage-craft"
 *
 * Palette is sampled from the business's own product photography: the maroon of the mats they
 * cut, the gold of their fillets, the gray of Hokie Stone, and mat board.
 *
 * The one structural device is the FILLET — the thin gold strip a framer sets inside a mat
 * opening. Here it is a hairline rule that appears only where something is being presented.
 * Framed work is shown hanging on a wall: a shadow, no added border, because every photograph
 * on this page already contains a frame and framing a frame would be silly.
 */

/* Self-hosted type (SIL OFL 1.1, licences in assets/fonts/). No request leaves the page. */
@font-face {
  font-family: 'Bodoni Moda';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/bodoni-moda-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Bodoni Moda';
  font-style: italic;
  font-weight: 400 600;
  font-display: swap;
  src: url('fonts/bodoni-moda-italic-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('fonts/archivo-latin.woff2') format('woff2');
}

:root {
  --oxblood: #4a1520;
  --oxblood-deep: #2c0d13;
  --oxblood-lift: #5d1f2b;
  --gold: #b08a4a;
  --gold-soft: #cdae76;
  --board: #e8e4dd;
  --board-deep: #dbd5cb;
  --ink: #241c19;
  --stone: #5f5a52;   /* 5.40:1 on --board, 4.69:1 on --board-deep — AA on both */
  --stone-light: #b8b2a8;
  --plate: #f1eee8;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  --measure: 34rem;
  --gap: clamp(1.25rem, 3vw, 2.5rem);
  --band-y: clamp(3.5rem, 8vw, 7rem);

  --sans: Archivo, ui-sans-serif, system-ui, sans-serif;
  --serif: 'Bodoni Moda', Georgia, 'Times New Roman', serif;
}

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

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

body {
  margin: 0;
  background: var(--board);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.6;
  overflow-x: hidden;
}

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

a { color: inherit; }

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

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--oxblood);
  color: var(--board);
  padding: 0.75rem 1rem;
  z-index: 50;
}
.skip:focus { left: 0; }

.wrap {
  width: min(100% - 2rem, 68rem);
  margin-inline: auto;
}
@media (min-width: 40em) {
  .wrap { width: min(100% - 4rem, 68rem); }
}

/* ---------------------------------------------------------------- headings */

.head2 {
  text-wrap: balance;
  font-variation-settings: 'opsz' 18;
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-weight: 500;
  font-size: clamp(1.85rem, 1.2rem + 2.4vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.005em;
  margin: 0 0 0.6rem;
}
.head2::before {
  content: '';
  display: block;
  width: 2.75rem;
  height: 1px;
  margin-bottom: 1.35rem;
  background: var(--gold);
}
.head2--light { color: var(--board); }

.head3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.2rem, 1rem + 0.7vw, 1.5rem);
  line-height: 1.2;
  margin: 0 0 1rem;
}

.lede {
  max-width: var(--measure);
  margin: 0 0 2.25rem;
  color: var(--stone);
  font-size: 1.0625rem;
}
.lede--light { color: var(--stone-light); }

.aside {
  margin: 1.75rem 0 0;
  color: var(--stone);
  font-size: 0.9375rem;
  max-width: var(--measure);
}

/* ------------------------------------------------------------------ header */

.site-head {
  background: var(--board);
  border-bottom: 1px solid var(--board-deep);
}
.site-head__inner {
  display: flex;
  align-items: center;
  gap: var(--gap);
  padding: 1rem 0;
  flex-wrap: wrap;
}
.site-head__mark { line-height: 0; margin-right: auto; }
.site-head__mark img { width: 200px; height: auto; }

.site-nav {
  display: flex;
  gap: clamp(0.9rem, 2vw, 1.75rem);
  flex-wrap: wrap;
}
.site-nav a {
  text-decoration: none;
  color: var(--stone);
  font-size: 0.9375rem;
  padding-block: 0.35rem;
  border-bottom: 1px solid transparent;
  transition: color 180ms var(--ease), border-color 180ms var(--ease);
}
.site-nav a:hover, .site-nav a:focus-visible { color: var(--ink); border-bottom-color: var(--gold); }

/* Phone numbers are set in the text face: at small sizes Bodoni's hairline crossbar makes
   the 4 read as a 1, and a misread digit is the one thing a phone number must not have. */
.site-head__tel {
  font-family: var(--sans);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-size: 1.0625rem;
  text-decoration: none;
  white-space: nowrap;
  color: var(--oxblood);
}
.site-head__tel:hover { color: var(--oxblood); }

@media (max-width: 47.99em) {
  .site-head__inner { padding: 0.75rem 0 0; gap: 0 1.25rem; }
  .site-head__mark img { width: 148px; }
  .site-nav {
    order: 3;
    width: 100%;
    gap: 0 1.1rem;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    margin-top: 0.35rem;
    border-top: 1px solid var(--board-deep);
  }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav { justify-content: space-between; gap: 0 0.75rem; }
  .site-nav a { font-size: 0.8125rem; padding-block: 0.8rem; white-space: nowrap; }
}

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

.hero {
  position: relative;
  background: var(--oxblood);
  color: var(--board);
}
.hero__mouldings {
  height: clamp(44px, 6vw, 68px);
  box-shadow: inset 0 -10px 14px -10px rgba(0, 0, 0, 0.55), inset 0 6px 8px -6px rgba(0, 0, 0, 0.35);
  background-size: auto 100%;
  background-repeat: repeat-x;
  background-position: center;
}
.hero__inner {
  display: grid;
  gap: clamp(2rem, 5vw, 4.5rem);
  padding: clamp(2.75rem, 6vw, 5.5rem) 0 clamp(3rem, 6vw, 5.5rem);
  align-items: center;
}
@media (min-width: 56em) {
  .hero__inner { grid-template-columns: 1.15fr 0.85fr; }
}

.hero__eyebrow {
  margin: 0 0 1.35rem;
  color: var(--gold-soft);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
/* Optical size pinned low: at display sizes the default (opsz 96) turns Bodoni's hairlines into
   gaps that read as broken letters. 28 keeps the contrast and holds the strokes together. */
.hero__head {
  text-wrap: balance;
  font-family: var(--serif);
  font-variation-settings: 'opsz' 28;
  font-weight: 500;
  font-size: clamp(2.6rem, 1.3rem + 4.9vw, 4.6rem);
  line-height: 1.04;
  letter-spacing: -0.018em;
  margin: 0 0 1.5rem;
  max-width: 12ch;
}
.hero__head em {
  display: block;
  font-style: italic;
  font-weight: 400;
  color: var(--gold-soft);
  letter-spacing: -0.01em;
}
.hero__stand {
  max-width: 32rem;
  margin: 0 0 2rem;
  color: #e5d8d6;
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  line-height: 1.55;
}
.hero__acts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin: 0 0 2rem;
}
.hero__where {
  margin: 0;
  padding-top: 1.35rem;
  border-top: 1px solid var(--gold);
  color: var(--gold-soft);
  font-size: 0.9375rem;
  max-width: 24rem;
}

.hero__show { justify-self: center; position: relative; }

/* A gilt stamp: the one fact the business leads with, set like a framer's label. */
.seal {
  position: absolute;
  left: clamp(-3.25rem, -4vw, -1.5rem);
  bottom: clamp(3.5rem, 6vw, 4.5rem);
  width: clamp(6.25rem, 9vw, 7.5rem);
  aspect-ratio: 1;
  margin: 0;
  display: grid;
  place-content: center;
  text-align: center;
  border-radius: 50%;
  background: var(--oxblood-deep);
  color: var(--gold-soft);
  border: 1px solid var(--gold);
  box-shadow: 0 0 0 5px var(--oxblood-deep), 0 0 0 6px rgba(176, 138, 74, 0.55), 0 14px 30px -12px rgba(0, 0, 0, 0.7);
  line-height: 1;
}
.seal__top, .seal__bottom {
  font-size: 0.625rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.seal__year {
  font-family: var(--serif);
  font-variation-settings: 'opsz' 6;
  font-weight: 700;
  font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.1rem);
  color: var(--board);
  margin: 0.3rem 0 0.35rem;
}

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

.btn {
  display: inline-block;
  font: inherit;
  font-weight: 500;
  text-decoration: none;
  padding: 0.9rem 1.6rem;
  min-height: 3rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 180ms var(--ease), border-color 180ms var(--ease), color 180ms var(--ease), transform 180ms var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--primary {
  background: var(--gold);
  color: #221a10;
  border-color: var(--gold);
}
.btn--primary:hover { background: var(--gold-soft); border-color: var(--gold-soft); }
.btn--quiet {
  background: transparent;
  color: var(--board);
  border-color: rgba(232, 228, 221, 0.4);
}
.btn--quiet:hover { border-color: var(--gold-soft); color: #fff; background: rgba(0, 0, 0, 0.12); }

/* --------------------------------------------- a framed piece, on the wall */

.piece { margin: 0; }
.piece__hang {
  display: block;
  width: min(100%, var(--native, 100%));
  margin-inline: auto;
}
.piece__hang img {
  display: block;
  width: 100%;
  height: auto;
}
.piece--dark .piece__hang img { box-shadow: 0 18px 38px -14px rgba(0, 0, 0, 0.75); }
.piece--light .piece__hang img { box-shadow: 0 12px 26px -12px rgba(36, 28, 25, 0.45); }

.piece__caption {
  margin: 1rem auto 0;
  max-width: 26rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--stone);
  text-align: center;
}
.piece--dark .piece__caption { color: var(--stone-light); }

/* The fillet: the thin gold strip a framer sets inside an opening. */
.hero__show .piece__hang { position: relative; }
.hero__show .piece__hang::before {
  content: '';
  position: absolute;
  inset: -0.85rem;
  border: 1px solid var(--gold);
  pointer-events: none;
}

/* ------------------------------------------------------------------- creed */

.creed {
  background: var(--oxblood-deep);
  color: var(--gold-soft);
  border-top: 1px solid var(--oxblood-lift);
}
.creed__words {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem clamp(1.5rem, 5vw, 3.5rem);
  letter-spacing: 0.02em;
  margin: 0;
  padding: clamp(1.1rem, 2.5vw, 1.6rem) 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.0625rem, 0.95rem + 0.5vw, 1.375rem);
}

.creed__words span + span::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: clamp(1.5rem, 5vw, 3.5rem);
  vertical-align: middle;
  transform: rotate(45deg) translateY(-2px);
  background: var(--gold);
}

/* ------------------------------------------------------------------- bands */

.band { padding: var(--band-y) 0; }
.band--mat { background: var(--board); }
.band--deep { background: var(--oxblood-deep); color: var(--board); }

/* ------------------------------------------------------- the diploma line */

.frames {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: clamp(2rem, 4vw, 3.25rem) var(--gap);
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 40em) { .frames { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 62em) { .frames { grid-template-columns: repeat(4, 1fr); } }
.frames__item {
  text-align: center;
  display: grid;
  grid-row: span 2;
  grid-template-rows: subgrid;
  align-items: end;
  row-gap: 0;
  padding: clamp(1.5rem, 3vw, 2.25rem) clamp(0.75rem, 2vw, 1.25rem) 1.1rem;
  background: var(--plate);
  border: 1px solid var(--board-deep);
  transition: border-color 220ms var(--ease), box-shadow 220ms var(--ease);
}
.frames__item .piece__hang { transition: transform 260ms var(--ease); }
.frames__item:hover { border-color: var(--gold); box-shadow: 0 16px 30px -24px rgba(36, 28, 25, 0.55); }
.frames__item:hover .piece__hang { transform: translateY(-4px); }
@supports not (grid-template-rows: subgrid) {
  .frames { align-items: end; }
  .frames__item { display: block; }
}
.frames__name {
  margin: 1.25rem 0 0;
  padding-top: 0.85rem;
  border-top: 1px solid var(--board-deep);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.35;
}
.frames__n {
  display: block;
  font-family: var(--serif);
  font-variation-settings: 'opsz' 6;  /* sturdiest cut, so a 4 never reads as a 1 */
  font-weight: 600;
  color: var(--oxblood);
  font-size: 1.375rem;
  line-height: 1.1;
  margin-bottom: 0.15rem;
}
.frames__n::before { content: 'No. '; font-family: var(--sans); font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--stone); }
.frames__variant { display: block; font-size: 0.8125rem; color: var(--stone); }

.choice {
  margin-top: clamp(3rem, 6vw, 4.5rem);
  padding-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--board-deep);
}
.choice__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--gap);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
  max-width: 48rem;
}
.choice__item { text-align: center; }
.choice__blank {
  aspect-ratio: 286 / 206;
  margin: 0;
  display: grid;
  place-items: center;
  background: var(--board-deep);
  border: 1px solid var(--gold);
  color: var(--stone);
  font-size: 0.875rem;
  font-style: italic;
}
.choice__name { margin: 0.85rem 0 0; font-size: 0.9375rem; }
.choice__kind { margin: 0.1rem 0 0; font-size: 0.8125rem; color: var(--stone); }

.pricenote {
  margin: clamp(2.5rem, 5vw, 3.5rem) 0 0;
  padding-left: 1.25rem;
  border-left: 2px solid var(--gold);
  max-width: var(--measure);
  color: var(--stone);
  font-size: 0.9375rem;
}

/* --------------------------------------------------------- custom framing */

.custom {
  display: grid;
  gap: clamp(2.25rem, 5vw, 4rem);
  align-items: center;
}
@media (min-width: 56em) {
  .custom { grid-template-columns: 0.8fr 1.2fr; }
}
.custom__pieces {
  display: grid;
  gap: var(--gap);
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  align-items: end;
}

/* ---------------------------------------------------------------- services */

.svc {
  margin: 0;
  display: grid;
  gap: clamp(1.75rem, 3.5vw, 2.75rem) var(--gap);
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
@media (min-width: 62em) {
  .svc { grid-template-columns: repeat(3, 1fr); }
}
.svc__item { border-top: 1px solid var(--board-deep); padding-top: 1.25rem; position: relative; }
/* A mitred corner in gold — the join every frame is built on. */
.svc__item::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  width: 1.1rem;
  height: 1.1rem;
  border-top: 2px solid var(--gold);
  border-left: 2px solid var(--gold);
}
.svc__name {
  font-family: var(--serif);
  font-variation-settings: 'opsz' 28;
  font-weight: 500;
  font-size: 1.25rem;
  line-height: 1.2;
  margin-bottom: 0.4rem;
}
.svc__body { margin: 0; color: var(--stone); font-size: 0.9375rem; }

/* ------------------------------------------------------------------- visit */

.visit {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
}
@media (min-width: 56em) {
  .visit { grid-template-columns: 1fr 1.1fr; }
}
.visit__addr { margin: 0 0 0.75rem; font-size: 1.0625rem; line-height: 1.45; }
.visit__tel { margin: 0 0 0.2rem; font-family: var(--sans); font-weight: 600; font-variant-numeric: tabular-nums; font-size: 1.5rem; color: var(--oxblood); }
.visit__tel a, .visit__mail a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
}
.visit__mail { margin: 0 0 2rem; font-size: 0.9375rem; word-break: break-word; }

.hours { border-collapse: collapse; width: min(100%, 22rem); }
.hours__cap {
  text-align: left;
  font-family: var(--serif);
  font-variation-settings: 'opsz' 28;
  font-weight: 500;
  font-size: 1.125rem;
  padding-bottom: 0.5rem;
}
.hours th, .hours td {
  text-align: left;
  font-weight: 400;
  font-size: 0.9375rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--board-deep);
}
.hours td { text-align: right; color: var(--stone); font-variant-numeric: tabular-nums; }
.hours__note {
  margin: 0.85rem 0 0;
  max-width: 22rem;
  font-size: 0.8125rem;
  color: var(--stone);
}

.visit__form {
  background: #fff;
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
  border: 1px solid var(--board-deep);
  border-top: 3px solid var(--oxblood);
  box-shadow: 0 24px 50px -36px rgba(36, 28, 25, 0.5);
}
.flds {
  display: grid;
  gap: 1.1rem var(--gap);
  grid-template-columns: 1fr;
}
@media (min-width: 30em) {
  .flds { grid-template-columns: 1fr 1fr; }
}
.fld { margin: 0; display: flex; flex-direction: column; gap: 0.35rem; }
.fld--wide { grid-column: 1 / -1; }
.fld label { font-size: 0.875rem; color: var(--stone); }
.fld__req { color: var(--stone); font-size: 0.75rem; }
.fld input, .fld textarea {
  font: inherit;
  font-size: 1rem;
  padding: 0.75rem 0.85rem;
  min-height: 2.9rem;
  border: 1px solid #cfc8bc;
  background: #fbfaf7;
  transition: border-color 160ms var(--ease), background-color 160ms var(--ease);
  color: var(--ink);
  width: 100%;
  border-radius: 0;
}
.fld input:hover, .fld textarea:hover { border-color: var(--stone-light); }
.fld input:focus, .fld textarea:focus { background: #fff; border-color: var(--gold); outline: 1px solid var(--gold); outline-offset: 0; }
.fld textarea { resize: vertical; }

.visit__send { margin: 1.5rem 0 0; }
.visit__send .btn { width: 100%; }
@media (min-width: 30em) { .visit__send .btn { width: auto; } }
.visit__formnote { margin: 0.85rem 0 0; font-size: 0.8125rem; color: var(--stone); }

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

.site-foot {
  background: var(--oxblood-deep);
  color: var(--stone-light);
  padding: clamp(2.5rem, 5vw, 3.5rem) 0;
}
.site-foot__inner { display: grid; gap: 0.3rem; }
.site-foot__name {
  text-wrap: balance;
  font-family: var(--serif);
  font-size: 1.375rem;
  color: var(--board);
  margin: 0 0 0.4rem;
}
.site-foot__meta { margin: 0; font-size: 0.9375rem; }
.site-foot__meta a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  text-decoration: none;
  border-bottom: 1px solid var(--oxblood-lift);
}
.site-foot__meta a:hover { border-bottom-color: var(--gold); }
.site-foot__sample {
  margin: 0.9rem 0 0;
  font-size: 0.75rem;
  line-height: 1.5;
  color: #9d958b;
  max-width: 40rem;
}
.site-foot__since {
  margin: 1.25rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--oxblood);
  font-size: 0.875rem;
  color: var(--gold-soft);
}

/* ------------------------------------------------------------------ motion */

@media (prefers-reduced-motion: no-preference) {
  .hero__show .piece__hang {
    animation: settle 700ms cubic-bezier(0.22, 0.61, 0.36, 1) both;
  }
  .seal { animation: settle 700ms 260ms var(--ease) both; }
  @keyframes settle {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: none; }
  }
}

/* ------------------------------------------------------------------ small screens */

@media (max-width: 55.99em) {
  .hero__show { margin-top: 0.5rem; }
  .seal { left: auto; right: 0.25rem; bottom: auto; top: -2rem; width: 5.5rem; }
  .seal__top, .seal__bottom { font-size: 0.5625rem; letter-spacing: 0.16em; }
}
@media (max-width: 29.99em) {
  .hero__acts .btn { flex: 1 1 100%; text-align: center; }
  .frames { gap: 0.75rem; }
  .frames__item { padding: 1.25rem 0.6rem 0.9rem; }
  .frames__n { font-size: 1.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  .btn, .frames__item, .frames__item .piece__hang, .site-nav a, .fld input, .fld textarea { transition: none; }
  .frames__item:hover .piece__hang { transform: none; }
}
