/* 247 Tennis HK — one-page site
   Type: Cormorant Garamond + Outfit (self-hosted)
   Theme: #fe0054 on warm ivory, with a deep wine footer
*/

@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/cormorant-latin-ext-500.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/cormorant-latin-500.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/cormorant-latin-ext-500-italic.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/cormorant-latin-500-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/cormorant-latin-ext-600.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/cormorant-latin-600.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url("fonts/outfit-latin-ext-var.woff2") format("woff2-variations"),
       url("fonts/outfit-latin-ext-var.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url("fonts/outfit-latin-var.woff2") format("woff2-variations"),
       url("fonts/outfit-latin-var.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


/* 247 Tennis HK — revision 2
   Type: Cormorant Garamond + Outfit (self-hosted)
   Theme: #fe0054 on warm ivory, with a deep wine footer
*/

:root {
  --bg: #f3eee8;
  --bg-blush: #f8e6eb;
  --bg-footer: #2a1f24;
  --ink: #1c1416;
  --ink-muted: #5a4d50;
  --line: rgba(28, 20, 22, 0.12);
  --line-strong: rgba(28, 20, 22, 0.2);
  --accent: #fe0054;
  --on-red: #fff8f6;
  --accent-soft: #fde4ea;
  --font-display: "Cormorant Garamond", "Times New Roman", Times, serif;
  --font-body: "Outfit", system-ui, -apple-system, sans-serif;
  --measure: 1180px;
  --gutter: clamp(1.5rem, 4vw, 3.5rem);
  --header-h: 5.5rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.65;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
}

h2, h3 {
  text-wrap: balance;
}

p, li {
  text-wrap: pretty;
}

.nowrap {
  white-space: nowrap;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--ink);
}

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

.site-header :focus-visible,
.closing :focus-visible,
.location-card :focus-visible {
  outline-color: var(--on-red);
}

::selection {
  background: var(--accent);
  color: var(--on-red);
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 50;
  padding: 0.6rem 1rem;
  background: var(--ink);
  color: var(--bg);
  font-size: 0.85rem;
  font-weight: 500;
}

.skip:focus {
  top: 0.75rem;
}

.wrap {
  width: min(var(--measure), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}

.eyebrow {
  margin: 0 0 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.eyebrow::before {
  content: "";
  width: 2rem;
  height: 3px;
  background: var(--accent);
  flex: 0 0 auto;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: var(--accent);
  color: var(--on-red);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(var(--measure), calc(100% - var(--gutter) * 2));
}

.wordmark {
  text-decoration: none;
  color: var(--on-red);
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  line-height: 1;
}

.wordmark:hover {
  color: var(--on-red);
}

.wordmark-247 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.95rem;
  letter-spacing: 0.02em;
}

.wordmark-247 .slash {
  padding: 0 0.02em;
}

.wordmark-name {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--on-red);
  padding-left: 0.08rem;
}

.header-status {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--on-red);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  display: flex;
  align-items: stretch;
  padding: clamp(2.75rem, 6vh, 5.5rem) 0 clamp(2.75rem, 6vh, 4.5rem);
  background: var(--bg);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(2.5rem, 6vh, 4.5rem);
  width: min(var(--measure), calc(100% - var(--gutter) * 2));
  flex: 1;
}

.hero h1 {
  margin: 0 0 1.6rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.85rem, 7vw, 6.25rem);
  line-height: 0.96;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.hero h1 .accent-line {
  color: var(--accent);
}

.hero-lead {
  margin: 0;
  max-width: 36em;
  color: var(--ink-muted);
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  line-height: 1.7;
}

.hero-facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.hero-facts li {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.15rem 1.2rem 1.2rem;
  background: var(--accent-soft);
  border-top: 5px solid var(--accent);
}

.hero-facts .label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.hero-facts .value {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.8vw, 1.55rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink);
}

/* ---------- Shared sections ---------- */

.section {
  padding: clamp(4.5rem, 10vw, 8.5rem) 0;
  border-top: 1px solid var(--line);
}

.section-studio {
  background: var(--bg-blush);
  border-top: none;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: clamp(2rem, 4vw, 3.25rem);
}

.section-index {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
}

.section-index span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  height: 1.55rem;
  padding: 0 0.45rem;
  background: var(--accent);
  color: var(--on-red);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}

.section h2 {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.25rem, 4.4vw, 3.85rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.lede {
  margin: 0;
  max-width: 38em;
  color: var(--ink-muted);
  font-size: 1.0625rem;
}

/* ---------- Facilities ---------- */

.features {
  list-style: none;
  margin: clamp(3rem, 6vw, 4.75rem) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.feature {
  margin: 0;
  padding: 1.6rem 1.5rem 1.7rem;
  background: var(--bg);
  border-top: 5px solid var(--accent);
}

.feature-index {
  display: block;
  margin-bottom: 1.1rem;
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1;
  color: var(--accent);
}

.feature h3 {
  margin: 0 0 0.9rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.55rem, 2vw, 1.9rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
}

.feature p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.98rem;
  line-height: 1.7;
}

/* ---------- Location ---------- */

.location-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(16rem, 0.75fr);
  gap: clamp(2.5rem, 6vw, 6.5rem);
  align-items: start;
}

.location-card {
  background: var(--accent);
  color: var(--on-red);
  padding: 1.85rem 1.85rem 1.7rem;
}

.location-card h3 {
  margin: 0 0 1.5rem;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--on-red);
}

.location-card dl {
  margin: 0;
}

.location-card dt {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.location-card dd {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--on-red);
}

.location-card .place-meta {
  font-family: var(--font-body);
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.45;
  color: var(--on-red);
}

.location-card .card-foot {
  margin-top: 1.7rem;
  padding-top: 1.15rem;
  border-top: 2px solid rgba(255, 248, 246, 0.35);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--on-red);
}

/* ---------- Closing ---------- */

.closing {
  text-align: center;
  padding-top: clamp(5rem, 12vw, 9rem);
  padding-bottom: clamp(5rem, 12vw, 9rem);
  background: var(--accent);
  color: var(--on-red);
  border-top: none;
}

.closing .eyebrow {
  justify-content: center;
  color: var(--on-red);
}

.closing .eyebrow::before {
  background: var(--on-red);
}

.closing h2 {
  margin-bottom: 1.35rem;
  color: var(--on-red);
}

.closing .lede {
  margin-inline: auto;
  color: var(--on-red);
  font-size: 1.5rem;
  line-height: 1.5;
  font-weight: 300;
  max-width: 28em;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--bg-footer);
  color: #e8dfe2;
  padding: 1.5rem 0 2rem;
}

.site-footer .wrap {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.8125rem;
}

.footer-brand {
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--on-red);
}

.footer-domain {
  text-decoration: none;
  letter-spacing: 0.04em;
  color: #e8dfe2;
}

.footer-domain:hover {
  color: var(--on-red);
}

/* ---------- Motion ---------- */

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.hero-main > *,
.hero-facts {
  animation: rise 0.9s var(--ease) both;
}

.hero-main > *:nth-child(1) { animation-delay: 0.05s; }
.hero-main > *:nth-child(2) { animation-delay: 0.14s; }
.hero-main > *:nth-child(3) { animation-delay: 0.22s; }
.hero-facts { animation-delay: 0.3s; }

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .location-grid,
  .features,
  .hero-facts {
    grid-template-columns: 1fr 1fr;
  }

  .features {
    gap: 0.75rem;
  }

  .feature:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  :root {
    --header-h: 4.75rem;
  }

  body {
    font-size: 1rem;
  }

  .wordmark-247 {
    font-size: 1.7rem;
  }

  .hero {
    align-items: stretch;
    padding-top: 2.25rem;
    padding-bottom: 2.6rem;
  }

  .hero h1 {
    font-size: clamp(2.45rem, 12vw, 3.15rem);
  }

  .hero-facts {
    grid-template-columns: 1fr 1fr;
    gap: 0.55rem;
  }

  .hero-facts li {
    padding: 0.95rem 0.9rem 1rem;
  }

  .hero-facts .value {
    font-size: 1.2rem;
  }

  .features {
    grid-template-columns: 1fr;
  }

  .feature:last-child {
    grid-column: auto;
  }

  .location-grid {
    grid-template-columns: 1fr;
  }

  .location-card {
    padding: 1.5rem 1.35rem 1.4rem;
  }

  .location-card dd {
    font-size: 1.5rem;
  }

  .closing .lede {
    font-size: 1.25rem;
  }

  .site-footer .wrap {
    flex-direction: column;
    gap: 0.35rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-main > *,
  .hero-facts {
    animation: none;
  }
}
