/* FROME N' GROOM — show-ring homepage */

@font-face {
  font-family: "Bevan";
  src: url("assets/fonts/Bevan-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Oswald";
  src: url("assets/fonts/Oswald-var.woff2") format("woff2");
  font-weight: 200 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Nunito Sans";
  src: url("assets/fonts/NunitoSans-var.woff2") format("woff2");
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Nunito Sans";
  src: url("assets/fonts/NunitoSans-400i.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  /* palette: rosette pink field, black ink, canvas white, ring green, rosette gold */
  --pink: #d64a74;
  --pink-deep: #a62a50;
  --pink-pale: #f6c5d6;
  --ink: #15090e;
  --ink-soft: #3b0a1e;
  --canvas: #fffdfa;
  --canvas-shade: #f1e4dc;
  --green: #1d7a3e;
  --green-deep: #0f5a2b;
  --green-pale: #e6f3ea;
  --gold: #f2b632;
  --gold-deep: #c98a0e;

  --display: "Bevan", "Rockwell", "Clarendon", serif;
  --condensed: "Oswald", "Arial Narrow", sans-serif;
  --body: "Nunito Sans", "Helvetica Neue", Arial, sans-serif;

  /* type scale stepped in fixed units (Swiss raise) */
  --t-1: 0.8125rem;
  --t0: 1rem;
  --t1: 1.125rem;
  --t2: 1.375rem;
  --t3: 1.75rem;
  --t4: 2.5rem;
  --t5: 3.5rem;
  --t6: clamp(2.75rem, 7vw, 5.5rem);

  --s1: 0.25rem; --s2: 0.5rem; --s3: 0.75rem; --s4: 1rem; --s5: 1.5rem;
  --s6: 2rem; --s7: 3rem; --s8: 4.5rem; --s9: 6.5rem;

  --line: 2px;
  --radius: 4px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow: 0 10px 24px -12px rgba(21, 9, 14, 0.45), 0 2px 4px rgba(21, 9, 14, 0.12);
  --measure: 62ch;
  --gutter: clamp(1rem, 4vw, 3rem);
  --max: 1240px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--pink);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--t0);
  line-height: 1.55;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

::selection { background: var(--ink); color: var(--pink-pale); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
a { color: inherit; text-decoration-thickness: var(--line); text-underline-offset: 0.18em; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Bunting ---------- */
.bunting {
  display: block;
  width: 100%;
  height: 28px;
  overflow: visible;
}

/* ---------- Masthead ---------- */
.masthead {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--s5);
  padding-block: var(--s4);
  border-bottom: var(--line) solid var(--ink);
}
.masthead__name {
  font-family: var(--display);
  font-size: var(--t2);
  letter-spacing: 0.01em;
  line-height: 1;
  text-decoration: none;
}
.masthead__id { display: flex; align-items: baseline; gap: var(--s4); flex-wrap: wrap; }
.masthead__place {
  font-family: var(--condensed);
  font-weight: 500;
  font-size: var(--t-1);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
}
.masthead__nav { display: flex; gap: var(--s5); font-family: var(--condensed); font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; font-size: var(--t-1); }
.masthead__nav a { text-decoration: none; padding-block: var(--s1); border-bottom: var(--line) solid transparent; transition: border-color 0.25s var(--ease); }
.masthead__nav a:hover { border-bottom-color: var(--ink); }

/* ---------- Buttons: show-ring signs ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  font-family: var(--condensed);
  font-weight: 600;
  font-size: var(--t1);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.8em 1.4em;
  border: var(--line) solid var(--ink);
  border-radius: var(--radius);
  line-height: 1;
  white-space: nowrap;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background-color 0.25s var(--ease), color 0.25s var(--ease);
}
.btn svg { width: 1.1em; height: 1.1em; flex: none; }
.btn--ink { background: var(--ink); color: var(--canvas); box-shadow: var(--shadow); }
.btn--ink:hover { transform: translateY(-2px); box-shadow: 0 16px 28px -12px rgba(21, 9, 14, 0.55), 0 3px 6px rgba(21, 9, 14, 0.14); }
.btn--line { background: transparent; color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--canvas); }
.btn--canvas { background: var(--canvas); color: var(--ink); }
.btn--canvas:hover { background: var(--ink); color: var(--canvas); }
.btn--lg { font-size: var(--t2); padding: 0.85em 1.5em; }

/* ---------- Hero: the show ring ---------- */
.hero { position: relative; padding-block: var(--s6) 0; }
.banner { text-align: center; }
.banner h1 {
  font-family: var(--display);
  font-size: var(--t6);
  line-height: 1.02;
  letter-spacing: -0.005em;
  text-wrap: balance;
  max-width: 14ch;
  margin-inline: auto;
}
.banner p {
  font-size: var(--t2);
  line-height: 1.35;
  max-width: 44ch;
  margin: var(--s4) auto 0;
  color: var(--ink);
  text-wrap: pretty;
}

.ring {
  position: relative;
  margin-top: var(--s5);
  display: grid;
  grid-template-areas: "stage";
  isolation: isolate;
}
.ring > * { grid-area: stage; }
.ring__rope {
  width: 100%;
  height: auto;
  overflow: visible;
  z-index: 1;
  pointer-events: none;
}
.ring__rope ellipse { fill: none; stroke: var(--ink); stroke-width: 3; stroke-dasharray: 14 10; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.ring__dogs {
  z-index: 0;
  align-self: center;
  justify-self: center;
  width: min(100%, 980px);
  aspect-ratio: 2048 / 1391;
  object-fit: cover;
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 52%, #000 55%, transparent 96%);
  mask-image: radial-gradient(ellipse 50% 50% at 50% 52%, #000 55%, transparent 96%);
}
.ring__rosette {
  z-index: 2;
  position: absolute;
  left: 4%;
  top: 1%;
  width: clamp(150px, 17vw, 240px);
  height: auto;
  aspect-ratio: 200 / 260;
}
.ring__table {
  z-index: 3;
  align-self: end;
  justify-self: center;
  transform: translateY(38%);
  width: min(100%, 880px);
}

/* judge's table: a schedule card */
.card {
  background: var(--canvas);
  color: var(--ink);
  border: var(--line) solid var(--ink);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  position: relative;
}
.card::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid var(--ink);
  border-radius: 2px;
  pointer-events: none;
}
.table {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: var(--s4) var(--s6);
  padding: var(--s5) var(--s6);
}
.table__label {
  font-family: var(--condensed);
  font-weight: 600;
  font-size: var(--t-1);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.table__fact { font-size: var(--t1); margin-top: var(--s1); }
.table__actions { display: flex; gap: var(--s3); flex-wrap: wrap; justify-content: flex-end; }

/* spacer so the overlapping table has room */
.hero-after { height: clamp(4rem, 9vw, 7rem); }

@media (max-width: 760px) {
  .ring { grid-template-areas: "stage" "table"; grid-template-rows: auto auto; }
  .ring__dogs { width: 100%; }
  .ring__rope { align-self: start; }
  .ring__rosette { left: -3%; top: -5%; width: 112px; }
  .ring__table { grid-area: table; transform: none; width: 100%; margin-top: calc(-1 * var(--s4)); }
  .table { grid-template-columns: 1fr; padding: var(--s5); }
  .table__actions { justify-content: stretch; }
  .table__actions .btn { flex: 1 1 100%; justify-content: center; }
  .hero-after { height: var(--s7); }
}

/* ---------- Section rhythm ---------- */
.section { position: relative; padding: calc(var(--s8) + 28px) var(--gutter) var(--s8); }
.bunting--section { position: absolute; top: 0; left: 0; }
.section > .wrap { width: min(100%, var(--max)); }
.section--canvas { background: var(--canvas); }
.section--green { background: var(--green); color: var(--canvas); }
.section--pink { background: var(--pink); }
.section__head { max-width: var(--measure); margin-bottom: var(--s6); }
.section__head h2 {
  font-family: var(--display);
  font-size: var(--t4);
  line-height: 1.08;
  text-wrap: balance;
}
.section__head p { font-size: var(--t1); margin-top: var(--s3); max-width: 52ch; }
.section--green .section__head p { color: var(--green-pale); }
.section--pink .section__head p { color: var(--ink); }
.rule { border: 0; border-top: var(--line) solid currentColor; margin: 0; opacity: 0.9; }

/* ---------- Ring book: this week in the ring ---------- */
.ringbook {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s5);
}
@media (max-width: 960px) { .ringbook { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .ringbook { grid-template-columns: 1fr; } }
.entry {
  display: grid;
  grid-template-rows: auto 1fr;
  background: var(--canvas);
  color: var(--ink);
  border: var(--line) solid var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.entry:hover { transform: translateY(-6px); box-shadow: 0 22px 34px -14px rgba(21, 9, 14, 0.5), 0 3px 6px rgba(21, 9, 14, 0.14); }
.entry__photo { position: relative; aspect-ratio: 4 / 5; overflow: hidden; }
.entry__photo img { width: 100%; height: 100%; object-fit: cover; }
.entry__rosette { position: absolute; top: var(--s3); right: var(--s3); width: 64px; }
.entry__body { padding: var(--s4) var(--s5) var(--s5); border-top: var(--line) solid var(--ink); }
.entry__class { font-family: var(--condensed); font-weight: 600; font-size: var(--t-1); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); padding-bottom: var(--s2); margin-bottom: var(--s3); border-bottom: 1px solid var(--ink); }
.entry__name { font-family: var(--display); font-size: var(--t3); line-height: 1.1; margin-top: var(--s1); }
.entry__breed { font-family: var(--condensed); font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; font-size: var(--t-1); margin-top: var(--s1); }
.entry__remark { margin-top: var(--s3); font-style: italic; color: var(--ink); }
.entry__remark::before { content: "“"; }
.entry__remark::after { content: "”"; }
.entry__signed { margin-top: var(--s2); font-family: var(--condensed); font-size: var(--t-1); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); }

/* ---------- Skip link, masthead cta ---------- */
.skip { position: absolute; left: var(--s4); top: -100px; background: var(--ink); color: var(--canvas); padding: var(--s2) var(--s4); z-index: 50; border-radius: var(--radius); font-family: var(--condensed); text-transform: uppercase; letter-spacing: 0.08em; text-decoration: none; }
.skip:focus { top: var(--s4); }
.masthead__cta { font-size: var(--t-1); }

/* rosette entry sway */
.ring__rosette { transform-origin: 50% 2%; }
@media (prefers-reduced-motion: no-preference) {
  .ring__rosette.is-hung { animation: hang 2.2s var(--ease) 1 both; }
  @keyframes hang {
    0% { rotate: -7deg; }
    35% { rotate: 4deg; }
    65% { rotate: -1.5deg; }
    100% { rotate: 0deg; }
  }
}

/* ---------- Ring book: the "more" entry ---------- */
.entry--more { background: var(--ink); color: var(--canvas); border-color: var(--ink); position: relative; overflow: hidden; }
.entry--more::after { content: ""; position: absolute; width: 150%; aspect-ratio: 200/260; right: -55%; top: -8%; background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 260'><circle cx='100' cy='100' r='92' fill='none' stroke='%23d64a74' stroke-width='10' stroke-dasharray='6 6'/><circle cx='100' cy='100' r='70' fill='none' stroke='%23d64a74' stroke-width='2'/><path d='M78 150 L58 250 L82 236 L100 256 L96 150 Z M122 150 L142 250 L118 236 L100 256 L104 150 Z' fill='none' stroke='%23d64a74' stroke-width='2'/></svg>") no-repeat center / contain; opacity: 0.35; pointer-events: none; }
.entry__more { position: relative; z-index: 1; }
.entry__more { display: grid; align-content: end; gap: var(--s2); min-height: 100%; padding: var(--s5); text-decoration: none; }
.entry--more .entry__class { color: var(--pink-pale); }
.entry__arrow { width: 36px; height: 36px; margin-top: var(--s3); transition: transform 0.35s var(--ease); }
.entry--more:hover .entry__arrow { transform: translateX(8px); }

/* ---------- Schedule of classes ---------- */
.schedule { padding: var(--s6); overflow: hidden; }
.schedule__head { display: flex; justify-content: space-between; align-items: center; gap: var(--s4); flex-wrap: wrap; padding-bottom: var(--s5); margin-bottom: var(--s5); border-bottom: var(--line) solid var(--ink); }
.schedule__ring { font-family: var(--condensed); font-weight: 600; font-size: var(--t-1); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft); }
.schedule__stamp {
  rotate: -3deg;
  font-family: var(--condensed);
  font-weight: 600;
  font-size: var(--t-1);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pink-deep);
  border: 2px solid var(--pink-deep);
  outline: 1px solid var(--pink-deep);
  outline-offset: -5px;
  padding: 0.5em 0.9em;
  opacity: 0.9;
  mix-blend-mode: multiply;
}
.steps__head { display: flex; justify-content: space-between; align-items: center; gap: var(--s4); flex-wrap: wrap; margin-bottom: var(--s5); }
.steps__head .steps__title { margin-bottom: 0; }
.schedule__list { display: grid; }
.schedule__row {
  display: grid;
  grid-template-columns: 3.5rem 1fr auto;
  gap: var(--s4) var(--s5);
  align-items: baseline;
  padding-block: var(--s5);
  border-top: 1px solid var(--ink);
}
.schedule__row:first-child { border-top: 0; padding-top: 0; }
.schedule__no { font-family: var(--display); font-size: var(--t4); line-height: 1; color: var(--pink); }
.schedule__name { font-family: var(--display); font-size: var(--t2); line-height: 1.15; }
.schedule__desc { margin-top: var(--s2); max-width: 52ch; }
.schedule__fee { font-family: var(--condensed); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; font-size: var(--t-1); border: var(--line) solid var(--ink); border-radius: 999px; padding: 0.45em 0.9em; white-space: nowrap; }
.schedule__note { margin-top: var(--s5); padding-top: var(--s5); border-top: var(--line) solid var(--ink); max-width: 62ch; }

.steps { margin-top: var(--s8); }
.steps__title { font-family: var(--display); font-size: var(--t3); margin-bottom: var(--s5); }
.steps__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--s6); counter-reset: step; }
.steps__list li { display: grid; gap: var(--s3); }
.steps__no { font-family: var(--display); font-size: var(--t5); line-height: 0.9; color: var(--pink); }
.steps__list p { max-width: 32ch; }

/* ---------- The judge ---------- */
.judge { display: grid; grid-template-columns: minmax(260px, 5fr) 7fr; gap: var(--s7); align-items: center; }
.judge__photo { border: var(--line) solid var(--ink); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--canvas); padding: var(--s3); rotate: -1.5deg; }
.judge__photo img { aspect-ratio: 3 / 4; object-fit: cover; width: 100%; border-radius: 2px; }
.judge__text p + p { margin-top: var(--s4); }
.judge__text > p { max-width: var(--measure); font-size: var(--t1); }
.judge__line { margin-block: var(--s6); padding-block: var(--s3); border-top: var(--line) solid var(--ink); border-bottom: var(--line) solid var(--ink); font-family: var(--condensed); font-weight: 500; letter-spacing: 0.04em; font-size: var(--t1); text-wrap: balance; max-width: 60ch; }

/* ---------- The line-up (parade) ---------- */
.lineup-section { overflow: hidden; }
.lineup { margin-top: var(--s2); padding-block: var(--s4) var(--s6); position: relative; }
.lineup::before, .lineup::after {
  content: ""; position: absolute; left: 0; right: 0; height: 0; border-top: 3px dashed var(--ink); opacity: 0.9;
}
.lineup::before { top: 0; z-index: 0; }
.lineup::after { bottom: var(--s4); z-index: 0; }
.lineup__track { display: flex; gap: var(--s4); padding-inline: var(--gutter); will-change: transform; width: max-content; position: relative; z-index: 1; }
.lineup__track li { flex: none; width: clamp(180px, 22vw, 300px); border: var(--line) solid var(--ink); border-radius: var(--radius); overflow: hidden; background: var(--canvas); padding: var(--s2); box-shadow: var(--shadow); }
.lineup__track li:nth-child(odd) { rotate: -1.2deg; }
.lineup__track li:nth-child(even) { rotate: 1.2deg; translate: 0 var(--s4); }
.lineup__track img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; border-radius: 2px; }
@media (prefers-reduced-motion: reduce) {
  .lineup { overflow-x: auto; }
}

/* ---------- Find the ring ---------- */
.find__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--s5); }
.find__card { padding: var(--s6); display: grid; gap: var(--s3); align-content: start; }
.find__address { font-family: var(--display); font-size: var(--t2); line-height: 1.3; }
.find__address .tbc { display: block; font-family: var(--body); font-size: var(--t0); color: var(--ink-soft); margin-top: var(--s2); }
.find__card .btn { justify-self: start; margin-top: var(--s2); }
.find__contacts { display: grid; gap: var(--s3); }
.find__contacts li { display: flex; align-items: center; gap: var(--s3); font-size: var(--t1); }
.find__contacts svg { width: 22px; height: 22px; flex: none; }

/* ---------- Footer, thumb bar ---------- */
.bunting--foot { rotate: 180deg; }
.footer { padding-block: var(--s6) var(--s9); display: grid; gap: var(--s2); }
.footer__name { font-family: var(--display); font-size: var(--t2); }
.footer__small { color: var(--ink); font-size: var(--t-1); }

.thumbbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: none; gap: var(--s3); padding: var(--s3) var(--s4) calc(var(--s3) + env(safe-area-inset-bottom));
  background: var(--pink); border-top: var(--line) solid var(--ink);
  transform: translateY(110%); transition: transform 0.45s var(--ease);
}
.thumbbar .btn { flex: 1; justify-content: center; }
.thumbbar.is-shown { transform: none; }
@media (max-width: 760px) {
  .thumbbar { display: flex; }
  .masthead { grid-template-columns: 1fr auto; }
  .masthead__nav { display: none; }
  .masthead__name { font-size: var(--t1); white-space: nowrap; }
  .masthead__place { display: none; }
  .judge { grid-template-columns: 1fr; }
  .judge__photo { max-width: 420px; }
  .schedule__row { grid-template-columns: 2.5rem 1fr; }
  .schedule__fee { grid-column: 2; justify-self: start; }
  .footer { padding-bottom: 8rem; }
}
