/* JT Capital Holding — static business card
   Self-hosted OFL webfonts, no third-party requests.
   Bodoni Moda © 2020 The Bodoni Moda Project Authors, SIL OFL 1.1
   Inter © 2020 The Inter Project Authors, SIL OFL 1.1
   Licenses: fonts/OFL-BodoniModa.txt, fonts/OFL-Inter.txt */

@font-face {
  font-family: "Bodoni Moda";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/bodoni-moda-latin-400-normal.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: "Bodoni Moda";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/bodoni-moda-latin-400-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: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/inter-latin-400-normal.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: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/inter-latin-500-normal.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;
}

:root {
  --bg: #0b0b0c;
  --text-strong: #f4f0e7;
  --text: #d9d3c7;
  --muted: #b1ab9f;
  --gold: #cbb892;
  --line: rgba(243, 239, 230, 0.12);
  --serif: "Bodoni Moda", "Didot", "Bodoni MT", "Times New Roman", serif;
  --sans: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --measure: 44rem;
  color-scheme: dark;
}

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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 68% 42% at 50% -8%, rgba(203, 184, 146, 0.07), transparent 56%),
    radial-gradient(ellipse 40% 32% at 50% 112%, rgba(203, 184, 146, 0.035), transparent 58%);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.7;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.32;
  background-image: url("../assets/grain.png");
  background-size: 128px 128px;
}

::selection {
  background: rgba(203, 184, 146, 0.28);
  color: var(--text-strong);
}

:focus {
  outline: 1px solid transparent;
  outline-offset: 4px;
}

:focus-visible {
  outline-color: var(--gold);
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 5;
  background: var(--gold);
  color: var(--bg);
  padding: 0.5rem 0.85rem;
  font-size: 0.85rem;
  text-decoration: none;
}

.skip:focus {
  top: 1rem;
}

.topline {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 4;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(203, 184, 146, 0.7), transparent);
}

.frame {
  position: relative;
  z-index: 1;
  width: min(var(--measure), calc(100% - 2 * clamp(1.5rem, 7vw, 5rem)));
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.spacer {
  flex: 1 1 auto;
  min-height: clamp(2.5rem, 8vh, 5.5rem);
}

.lockup {
  width: 100%;
  text-align: center;
}

.monogram {
  display: block;
  width: auto;
  height: 2.55rem;
  color: var(--gold);
}

.mark {
  display: flex;
  justify-content: center;
  margin: 0 0 2.35rem;
}

h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-style: normal;
  font-size: clamp(3.15rem, 8.4vw, 6.05rem);
  line-height: 0.94;
  letter-spacing: 0;
  padding-left: 0;
  color: var(--text-strong);
}

h1 .line {
  display: table;
  margin-inline: auto;
  letter-spacing: 0.045em;
  padding-left: 0.045em;
}

.rule {
  width: 2.25rem;
  height: 1px;
  margin: 2.15rem auto 0;
  background: var(--gold);
  transform-origin: center;
  animation: draw-rule 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.5s both;
}

.contact {
  display: flex;
  justify-content: center;
  margin: 2.65rem 0 0;
}

.contact-link {
  display: inline-block;
  min-height: 44px;
  min-width: 44px;
  padding: 0.85rem 0;
  margin-right: -0.36em;
  color: var(--text-strong);
  text-decoration: none;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.36em;
  text-transform: uppercase;
}

.contact-link:hover {
  color: var(--gold);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem 1.75rem;
  flex-wrap: wrap;
  padding: 1.15rem 0 calc(1.4rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.5;
}

.page-home .site-footer {
  justify-content: center;
  border-top: 0;
  gap: 0.35rem 1.6rem;
}

.copy {
  margin: 0;
}

.footer-nav {
  display: flex;
  gap: 1.35rem;
}

.footer-nav a {
  color: inherit;
  text-decoration: none;
  padding: 0.5rem 0;
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.footer-nav a:hover,
.footer-nav a[aria-current="page"] {
  color: var(--gold);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Legal pages */

.page-legal .spacer {
  display: none;
}

.page-legal main {
  padding-top: clamp(2.6rem, 8vh, 5rem);
  padding-bottom: 3.5rem;
}

.page-legal .site-footer {
  margin-top: auto;
}

.home-link {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  min-height: 44px;
  color: var(--text-strong);
  text-decoration: none;
}

.home-link:hover {
  color: var(--gold);
}

.home-link .monogram {
  height: 1.15rem;
}

.home-name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.2rem;
  letter-spacing: 0.06em;
  text-indent: 0.06em;
  line-height: 1;
}

.page-legal h1 {
  margin-top: 2.6rem;
  padding-left: 0;
  font-size: clamp(2.75rem, 6vw, 3.85rem);
  line-height: 1;
  letter-spacing: 0.02em;
}

.kicker {
  margin: 0.95rem 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.28rem;
  line-height: 1.35;
  letter-spacing: 0.01em;
  color: var(--gold);
}

.legal-block {
  margin-top: 1.9rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
}

.legal-block h2 {
  margin: 0 0 0.7rem;
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1.4;
  color: var(--gold);
}

.legal-block p,
.legal-block address {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--text);
}

.legal-block p + p,
.legal-block address + p,
.legal-block p + address {
  margin-top: 0.75rem;
}

address {
  font-style: normal;
}

.legal-block a {
  color: var(--text-strong);
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(203, 184, 146, 0.65);
  text-underline-offset: 0.2em;
}

.legal-block a:hover {
  color: var(--gold);
  text-decoration-color: var(--gold);
}

.note {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.12rem;
  line-height: 1.45;
  color: var(--gold);
}

@media (max-width: 680px) {
  .page-legal .site-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
  }

  .page-home .site-footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media (prefers-contrast: more) {
  :root {
    --text: #f7f4ee;
    --muted: #e6e1d6;
    --line: rgba(247, 244, 238, 0.42);
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(7px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes draw-rule {
  from {
    opacity: 0;
    transform: scaleX(0);
  }

  to {
    opacity: 1;
    transform: scaleX(1);
  }
}

.reveal {
  animation: fade-up 1.15s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.d1 { animation-delay: 0.05s; }
.d2 { animation-delay: 0.18s; }
.d3 { animation-delay: 0.34s; }
.d4 { animation-delay: 0.52s; }

.page-legal .reveal {
  animation-duration: 0.75s;
}

@media print {
  body {
    background: #fff;
    color: #1a1a1a;
  }

  body::before,
  .topline {
    display: none;
  }

  :root {
    --text-strong: #1a1a1a;
    --text: #1a1a1a;
    --muted: #333;
    --gold: #6d5b32;
    --line: rgba(0, 0, 0, 0.2);
  }

  a {
    color: inherit;
    text-decoration: underline;
  }

  .reveal,
  .rule {
    animation: none;
  }
}
