/* Self-hosted Google Fonts (no third-party font requests). */
@font-face {
  font-family: 'Space Grotesk';
  src: url('../fonts/space-grotesk-latin.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Space Grotesk';
  src: url('../fonts/space-grotesk-latin.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Space Grotesk';
  src: url('../fonts/space-grotesk-latin.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Fraunces';
  src: url('../fonts/fraunces-latin.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Fraunces';
  src: url('../fonts/fraunces-latin.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Fraunces';
  src: url('../fonts/fraunces-latin.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --yk-ink: #13121a;
  --yk-ink-soft: #30303a;
  --yk-cream: #f7f3ee;
  --yk-teal: #1b7f7a;
  --yk-teal-dark: #0f5753;
  --yk-amber: #f1b44c;
  --yk-rose: #d86d62;
  --yk-shadow: 0 24px 60px rgba(15, 20, 25, 0.15);
}

body.yomikamo-contact {
  background: radial-gradient(circle at 20% 20%, rgba(241, 180, 76, 0.18), transparent 45%),
              radial-gradient(circle at 80% 80%, rgba(27, 127, 122, 0.18), transparent 50%),
              var(--yk-cream);
  font-family: 'Space Grotesk', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color: var(--yk-ink);
  --text: #1f1a17;
  --muted: #6e655e;
  --brand: #2e2a4a;
  --border: #e9e1d6;
  --surface: #ffffff;
}

/* Contact uses its own page background + a rounded card. Ensure generic page theming does not
   create a large hard-edged background rectangle behind the card. */
body.yomikamo-contact main {
  background: transparent;
}

/* ---------------------------
   Dark theme (Contact)
   --------------------------- */

@media (prefers-color-scheme: dark) {
  html:not(.yk-theme-light):not(.yk-theme-dark) {
    --yk-ink: #c0caf5;
    --yk-ink-soft: rgba(192, 202, 245, 0.72);
    --yk-cream: #0d1017;
    --yk-shadow: 0 24px 70px rgba(0, 0, 0, 0.52);
  }

	  html:not(.yk-theme-light):not(.yk-theme-dark) body.yomikamo-contact {
    background:
      radial-gradient(circle at 20% 20%, rgba(122, 162, 247, 0.12), transparent 45%),
      radial-gradient(circle at 80% 80%, rgba(187, 154, 247, 0.12), transparent 50%),
      var(--yk-cream);
    color: var(--yk-ink);
    --text: #c0caf5;
    --muted: rgba(192, 202, 245, 0.72);
    --brand: #7aa2f7;
    --border: rgba(122, 162, 247, 0.14);
    --surface: #151921;
	  }

	  html:not(.yk-theme-light):not(.yk-theme-dark) body.yomikamo-contact main {
	    background: transparent;
	  }

  html:not(.yk-theme-light):not(.yk-theme-dark) .yk-contact__card {
    background: rgba(21, 25, 33, 0.92);
    border: 1px solid rgba(192, 202, 245, 0.12);
  }

  html:not(.yk-theme-light):not(.yk-theme-dark) .yk-contact__field input,
  html:not(.yk-theme-light):not(.yk-theme-dark) .yk-contact__field textarea,
  html:not(.yk-theme-light):not(.yk-theme-dark) .yk-contact__honeypot input,
  html:not(.yk-theme-light):not(.yk-theme-dark) .yk-account-delete__panel input[type="password"] {
    background: rgba(13, 16, 23, 0.35);
    border-color: rgba(192, 202, 245, 0.18);
    color: var(--yk-ink);
  }

  html:not(.yk-theme-light):not(.yk-theme-dark) .yk-contact__field input::placeholder,
  html:not(.yk-theme-light):not(.yk-theme-dark) .yk-contact__field textarea::placeholder {
    color: rgba(192, 202, 245, 0.55);
  }

  html:not(.yk-theme-light):not(.yk-theme-dark) .yk-account-delete__panel input[type="submit"],
  html:not(.yk-theme-light):not(.yk-theme-dark) .yk-account-delete__panel a {
    color: var(--yk-ink);
    background: rgba(247, 118, 142, 0.18);
    border-color: rgba(247, 118, 142, 0.48);
  }

  html:not(.yk-theme-light):not(.yk-theme-dark) .yk-account-delete__panel input[type="submit"]:hover,
  html:not(.yk-theme-light):not(.yk-theme-dark) .yk-account-delete__panel input[type="submit"]:focus,
  html:not(.yk-theme-light):not(.yk-theme-dark) .yk-account-delete__panel a:hover,
  html:not(.yk-theme-light):not(.yk-theme-dark) .yk-account-delete__panel a:focus {
    background: rgba(247, 118, 142, 0.26);
  }
}

html.yk-theme-dark {
  --yk-ink: #c0caf5;
  --yk-ink-soft: rgba(192, 202, 245, 0.72);
  --yk-cream: #0d1017;
  --yk-shadow: 0 24px 70px rgba(0, 0, 0, 0.52);
}

html.yk-theme-dark body.yomikamo-contact {
  background:
    radial-gradient(circle at 20% 20%, rgba(122, 162, 247, 0.12), transparent 45%),
    radial-gradient(circle at 80% 80%, rgba(187, 154, 247, 0.12), transparent 50%),
    var(--yk-cream);
  color: var(--yk-ink);
  --text: #c0caf5;
  --muted: rgba(192, 202, 245, 0.72);
  --brand: #7aa2f7;
  --border: rgba(122, 162, 247, 0.14);
  --surface: #151921;
}

html.yk-theme-dark body.yomikamo-contact main {
  background: transparent;
}

html.yk-theme-dark .yk-contact__card {
  background: rgba(21, 25, 33, 0.92);
  border: 1px solid rgba(192, 202, 245, 0.12);
}

html.yk-theme-dark .yk-contact__field input,
html.yk-theme-dark .yk-contact__field textarea,
html.yk-theme-dark .yk-contact__honeypot input,
html.yk-theme-dark .yk-account-delete__panel input[type="password"] {
  background: rgba(13, 16, 23, 0.35);
  border-color: rgba(192, 202, 245, 0.18);
  color: var(--yk-ink);
}

html.yk-theme-dark .yk-contact__field input::placeholder,
html.yk-theme-dark .yk-contact__field textarea::placeholder {
  color: rgba(192, 202, 245, 0.55);
}

html.yk-theme-dark .yk-account-delete__panel input[type="submit"],
html.yk-theme-dark .yk-account-delete__panel a {
  color: var(--yk-ink);
  background: rgba(247, 118, 142, 0.18);
  border-color: rgba(247, 118, 142, 0.48);
}

html.yk-theme-dark .yk-account-delete__panel input[type="submit"]:hover,
html.yk-theme-dark .yk-account-delete__panel input[type="submit"]:focus,
html.yk-theme-dark .yk-account-delete__panel a:hover,
html.yk-theme-dark .yk-account-delete__panel a:focus {
  background: rgba(247, 118, 142, 0.26);
}

.yk-contact {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 48px 16px;
}

.yk-contact__card {
  width: 100%;
  max-width: 560px;
  box-sizing: border-box;
  background: #fff;
  border-radius: 24px;
  padding: 36px;
  box-shadow: var(--yk-shadow);
}

.yk-contact__header h1 {
  font-family: 'Fraunces', 'Times New Roman', serif;
  font-size: clamp(28px, 4vw, 40px);
  margin: 0 0 12px;
}

.yk-contact__header p {
  margin: 0 0 16px;
  color: var(--yk-ink-soft);
}

.yk-contact__kicker {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--yk-ink-soft);
  margin-bottom: 8px;
}

.yk-contact__form {
  display: grid;
  gap: 14px;
}

.yk-contact .yk-turnstile {
  display: flex;
  justify-content: center;
  padding: 2px 0;
  overflow: hidden;
}

.yk-contact .yk-turnstile .cf-turnstile {
  max-width: 100%;
  transform: scale(0.94);
  transform-origin: center;
}

.yk-contact .yk-turnstile.yk-turnstile--hidden {
  /* Keep Turnstile renderable while removing it from layout. */
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  padding: 0;
  margin: 0;
}

.yk-contact__field {
  display: grid;
  gap: 8px;
  font-size: 13px;
  color: var(--yk-ink-soft);
}

.yk-contact__field input,
.yk-contact__field textarea {
  box-sizing: border-box;
  border-radius: 12px;
  border: 1px solid rgba(19, 18, 26, 0.15);
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
}

.yk-contact__submit {
  border: none;
  border-radius: 999px;
  background: var(--yk-teal);
  color: #fff;
  font-weight: 600;
  padding: 12px 20px;
  cursor: pointer;
}

.yk-contact__submit:hover,
.yk-contact__submit:focus {
  background: var(--yk-teal-dark);
}

@media (max-width: 720px) {
  .yk-contact {
    padding: 32px 16px;
  }

  .yk-contact__card {
    padding: 28px 22px;
  }

  .yk-contact__header h1 {
    font-size: clamp(26px, 6vw, 34px);
  }
}

.yk-contact__notice {
  margin: 16px 0;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 14px;
}

.yk-contact__notice--success {
  background: rgba(27, 127, 122, 0.1);
  color: var(--yk-teal-dark);
}

.yk-contact__notice--error {
  background: rgba(216, 109, 98, 0.12);
  color: var(--yk-rose);
}

.yk-contact__honeypot {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.yk-account-delete .yk-contact__card {
  width: min(520px, 92vw);
}

.yk-account-delete__panel {
  margin-top: 16px;
}

.yk-account-delete__panel form {
  display: grid;
  gap: 12px;
}

.yk-account-delete__panel p {
  margin: 0;
  color: var(--yk-ink-soft);
  font-size: 14px;
}

.yk-account-delete__panel label {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--yk-ink-soft);
  display: block;
  margin-bottom: 6px;
}

.yk-account-delete__panel input[type="password"] {
  box-sizing: border-box;
  border-radius: 12px;
  border: 1px solid rgba(19, 18, 26, 0.15);
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
  width: 100%;
}

.yk-account-delete__panel input[type="submit"],
.yk-account-delete__panel a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(216, 109, 98, 0.4);
  color: #b4443a;
  background: rgba(216, 109, 98, 0.08);
  font-weight: 700;
  font-size: 12px;
  padding: 8px 16px;
  text-decoration: none;
  width: max-content;
}

.yk-account-delete__panel input[type="submit"]:hover,
.yk-account-delete__panel input[type="submit"]:focus,
.yk-account-delete__panel a:hover,
.yk-account-delete__panel a:focus {
  background: rgba(216, 109, 98, 0.16);
}
