:root {
  color-scheme: light;
  --site-ink: #17231f;
  --site-muted: #687587;
  --site-accent: #006d75;
  --site-accent-dark: #00545b;
  --site-accent-soft: #e3f0f0;
  --site-border: #dfe5ec;
  --site-surface: #f6f8f5;
}

@font-face {
  font-family: "AJ17Site";
  src: url("AJ17-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "AJSimpleSite";
  src: url("AJSimple-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  unicode-range: U+1000-109F, U+A9E0-A9FF, U+AA60-AA7F;
}

html,
body,
.bg-surface {
  background-color: var(--site-surface) !important;
}

html {
  scrollbar-gutter: stable both-edges;
}

body {
  font-family: "AJSimpleSite", "AJ00", sans-serif !important;
  color: var(--site-ink);
  letter-spacing: 0.005em;
}

.text-on-surface {
  color: var(--site-ink) !important;
}

.text-on-surface-variant,
.text-outline {
  color: var(--site-muted) !important;
}

.text-primary-container,
.text-primary-container\/55 {
  color: var(--site-accent) !important;
}

.text-outline-variant {
  color: #a5b0bd !important;
}

.bg-white {
  background-color: #fff !important;
}

.bg-surface-container-low,
.bg-surface-container,
.bg-surface-variant,
.bg-teal-50 {
  background-color: var(--site-accent-soft) !important;
}

.bg-primary-container {
  background-color: var(--site-accent) !important;
}

.bg-blue-500 {
  background-color: var(--site-accent) !important;
}

.bg-cyan-50,
.bg-indigo-50 {
  background-color: var(--site-accent-soft) !important;
}

.border-cyan-300,
.border-indigo-300,
.border-teal-200,
.border-teal-300 {
  border-color: #b7c3d0 !important;
}

.text-cyan-800,
.text-indigo-800,
.text-teal-700,
.text-teal-800 {
  color: var(--site-accent-dark) !important;
}

.font-card .bg-green-50 {
  background-color: var(--site-accent-soft) !important;
}

.font-card .border-green-300 {
  border-color: #b7c3d0 !important;
}

.font-card .text-green-800,
.font-card .text-green-600 {
  color: var(--site-accent-dark) !important;
}

.font-card .bg-green-600 {
  background-color: var(--site-accent) !important;
}

.font-card .hover\:bg-green-700:hover {
  background-color: var(--site-accent-dark) !important;
}

.border-outline-variant,
.border-primary-container\/30,
.border-primary-container\/40 {
  border-color: var(--site-border) !important;
}

.border-primary-container,
.focus\:border-primary-container:focus {
  border-color: var(--site-accent) !important;
}

.bg-gradient-to-br,
.bg-gradient-to-r {
  background-image: linear-gradient(125deg, #00545b 0%, #006d75 100%) !important;
}

.bg-teal-200\/40,
.bg-teal-100\/50,
.bg-teal-100\/40 {
  background-color: rgba(0, 109, 117, 0.08) !important;
}

.hero-banner {
  color: #fff;
  background-color: #000d21 !important;
  background-image:
    radial-gradient(ellipse 58% 100% at 50% 50%, rgba(0, 68, 84, 0.92) 0%, rgba(0, 39, 55, 0.58) 45%, transparent 100%),
    linear-gradient(155deg, #011b2c 0%, #000a1c 52%, #000d21 100%) !important;
}

.hero-banner-content {
  display: grid;
  grid-template-columns: max-content 2px minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.25rem, 2.5vw, 2.5rem);
  max-width: 1400px;
  min-height: 11rem;
  margin: 0 auto;
}

.hero-brand-lockup {
  display: flex;
  align-items: center;
  gap: clamp(4.5rem, 6vw, 5rem);
  min-width: 0;
}

.hero-logo-frame {
  position: relative;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  isolation: isolate;
  width: clamp(8rem, 14vw, 10rem);
  aspect-ratio: 1;
}

.hero-logo-frame::before,
.hero-logo-frame::after {
  position: absolute;
  inset: 34% -8% 34% -24%;
  border-radius: 999px;
  content: "";
}

.hero-logo-frame::before {
  z-index: -2;
  background: #e29b3d;
  transform: translateX(-0.9rem);
}

.hero-logo-frame::after {
  z-index: -1;
  background: #f2b84e;
  transform: translateX(0.9rem);
}

.hero-logo-tile {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 90%;
  aspect-ratio: 1;
  padding: 0.45rem;
  border: 4px solid #fff;
  border-radius: 50%;
  background-color: #000d21;
  background-image:
    radial-gradient(ellipse 58% 100% at 50% 50%, rgba(0, 68, 84, 0.92) 0%, rgba(0, 39, 55, 0.58) 45%, transparent 100%),
    linear-gradient(155deg, #011b2c 0%, #000a1c 52%, #000d21 100%);
  filter: drop-shadow(0 10px 18px rgba(13, 24, 39, 0.25));
}

.hero-logo-tile img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: contain;
  background: inherit;
}

.hero-brand-copy {
  min-width: 0;
}

.hero-brand-title {
  margin: 0;
  color: #fff;
  font-size: clamp(2.25rem, 4vw, 3.75rem);
  font-weight: 900;
  letter-spacing: 0.077em;
  line-height: 0.98;
}

.hero-banner .brand-fonts {
  color: #f1f3f5 !important;
}

.hero-brand-tagline {
  margin: 0.55rem 0 0;
  color: #f2bd61;
  font-size: clamp(0.75rem, 1.1vw, 0.95rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-native-script {
  min-width: 0;
  margin: 0;
  color: #fff;
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  line-height: 1.5;
}

.hero-script-divider {
  width: 2px;
  height: 5rem;
  background: #00bce2;
}

.hero-banner .home-native-font {
  color: #fff;
}

.hero-website-link {
  position: absolute;
  right: clamp(1rem, 2.5vw, 2rem);
  bottom: 0.6rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.38rem 0.75rem;
  background: rgba(0, 10, 28, 0.72);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.hero-website-link .material-symbols-outlined {
  color: #f2bd61;
  font-size: 0.9rem;
}

.hero-website-link:hover {
  color: #fff;
}

.hero-divider {
  border-color: rgba(23, 35, 31, 0.18);
}

.category-toolbar {
  position: relative;
  z-index: 1;
  box-shadow: 0 5px 16px rgba(23, 35, 31, 0.035);
}

.category-toolbar-main,
.footer-info-row,
.category-toolbar-actions {
  display: flex;
  align-items: center;
}

.category-toolbar-main {
  justify-content: space-between;
  gap: 1.5rem;
}

.category-heading {
  flex-shrink: 0;
}

.category-heading p:first-child {
  font-size: 11px;
}

.category-heading p:last-child {
  font-size: 1rem;
}

.category-filters {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.category-filter {
  border: 1px solid var(--site-border);
  border-radius: 999px;
  background: #fff;
  color: var(--site-muted);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.35rem;
  padding: 0.3rem 0.7rem;
  transition: background-color 0.18s, border-color 0.18s, color 0.18s;
}

.category-filter:hover {
  border-color: var(--site-accent);
  color: var(--site-accent);
}

.category-filter.active {
  border-color: var(--site-accent);
  background: var(--site-accent);
  color: #fff !important;
}

.category-filter.active::after {
  display: none;
}

.footer-info-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem clamp(1rem, 3vw, 2.5rem);
  border-top: 1px solid var(--site-border);
  background: #fff;
}

.footer-info-row .category-note {
  grid-column: 1 / -1;
  justify-self: stretch;
  max-width: none;
  white-space: nowrap;
  font-size: clamp(0.7rem, 1.6vw, 0.9rem);
  text-align: right;
}

.footer-info-row .category-toolbar-actions {
  display: none;
}

.category-note {
  color: var(--site-muted);
  font-size: 0.9rem;
  line-height: 1.65;
  max-width: 46rem;
}

.category-toolbar-actions {
  flex-shrink: 0;
  gap: 1rem;
}

.footer-visitors {
  display: flex;
  flex: 0 1 22rem;
  align-items: center;
  gap: 1rem;
  min-height: 7.5rem;
}

.footer-visitors-divider {
  width: 1px;
  align-self: stretch;
  background: rgba(0, 109, 117, 0.3);
}

.footer-visitors #visitorCounter {
  flex: 1 1 auto;
  border: 0 !important;
  background: transparent !important;
  padding: 0;
  min-width: 0;
}

.footer-visitor-counter > div {
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem 0.75rem;
}

.footer-visitor-counter > div > div {
  align-items: center;
  gap: 0.25rem;
  font-size: 11px;
  letter-spacing: 0.06em;
}

.footer-visitor-counter > div > div:last-child {
  border: 0;
  margin: 0;
  padding: 0;
}

.footer-info-row #mobileVisitorCounter {
  border: 0 !important;
  background: transparent !important;
  padding: 0;
  width: 100%;
}

header {
  border-color: rgba(223, 229, 236, 0.9) !important;
  box-shadow: 0 4px 20px rgba(23, 35, 31, 0.035);
}

header a.font-headline-lg {
  color: var(--site-accent-dark) !important;
}

.brand-aj {
  color: #00bce2 !important;
}

.brand-fonts {
  color: #738188 !important;
}

.home-native-font {
  font-family: "AJ17Site", "AJ00", sans-serif !important;
}

.filter-link.active:not(.category-filter) {
  color: var(--site-accent) !important;
}

.filter-link.active:not(.category-filter)::after {
  background: var(--site-accent) !important;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
[contenteditable="true"]:focus-visible {
  outline: 3px solid rgba(0, 109, 117, 0.25);
  outline-offset: 3px;
}

input:not([type="range"]):focus {
  border-color: var(--site-accent) !important;
  box-shadow: 0 0 0 3px rgba(0, 109, 117, 0.12) !important;
}

.font-card,
.contact-card {
  border-color: var(--site-border);
  border-radius: 22px;
  box-shadow: 0 2px 8px rgba(23, 35, 31, 0.035);
}

.font-card:hover,
.contact-card:hover {
  border-color: rgba(0, 109, 117, 0.35);
  box-shadow: 0 12px 30px rgba(34, 52, 72, 0.12);
}

#cardContainer .font-card:not(.skeleton-card) {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
  height: 100%;
  overflow: hidden;
  padding: 0;
  border: 1px solid #e5ebf1;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 3px 12px rgba(27, 39, 55, 0.07);
}

#cardContainer .font-card:not(.skeleton-card):hover {
  background: #fff;
  border-color: #d7e0e9;
  box-shadow: 0 7px 18px rgba(27, 39, 55, 0.1);
}

.font-card-sample {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 10.25rem;
  padding: 0.85rem 1rem 0.75rem;
  background-color: #000d21;
  background-image:
    radial-gradient(ellipse 58% 100% at 50% 50%, rgba(0, 68, 84, 0.92) 0%, rgba(0, 39, 55, 0.58) 45%, transparent 100%),
    linear-gradient(155deg, #011b2c 0%, #000a1c 52%, #000d21 100%);
  color: #fff;
  text-align: center;
}

.font-card-cover-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 1.5rem;
}

.font-card-category {
  color: rgba(235, 242, 250, 0.62);
  font-size: 0.55rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.font-card-cover-specimen {
  align-self: center;
  max-width: 100%;
  color: #f5f8fc !important;
  font-size: clamp(1.5rem, 2.4vw, 2.15rem);
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.font-card-cover-meta {
  margin: 0;
  color: rgba(235, 242, 250, 0.48);
  font-size: 0.52rem;
  letter-spacing: 0.2em;
  line-height: 1.2;
  text-transform: uppercase;
}

#cardContainer .font-card .like-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.1rem 0.25rem;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.65rem;
}

#cardContainer .font-card .like-btn .like-icon {
  font-size: 1rem !important;
}

#cardContainer .font-card .like-btn.liked {
  color: #ff8296;
}

.font-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid #edf1f5;
}

.font-card-title-group {
  min-width: 0;
}

.font-card-header h3 {
  min-width: 0;
  overflow-wrap: anywhere;
  color: #172436 !important;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
}

.font-card-price {
  flex: 0 0 auto;
  color: #172436;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
}

.font-card-free-badge {
  flex: 0 0 auto;
  padding: 0.22rem 0.55rem;
  border-radius: 0.4rem;
  background: #e8f8f1;
  color: #16835d;
  font-size: 0.7rem;
  font-weight: 600;
}

.font-card-live-preview {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #edf1f5;
}

.font-card-live-header,
.font-card-size-control {
  display: flex;
  align-items: center;
}

.font-card-live-header {
  justify-content: space-between;
  gap: 0.5rem;
  color: #8a97a8;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.font-card-size-control {
  gap: 0.45rem;
}

.font-card-size-value {
  min-width: 2rem;
  color: #657487;
  font-size: 0.58rem;
  letter-spacing: 0;
  text-transform: none;
  text-align: right;
}

.font-card-size-slider {
  width: 4.5rem;
  height: 0.25rem;
  accent-color: #18c9a7;
  cursor: pointer;
}

#cardContainer .font-card-preview-input {
  width: 100%;
  min-width: 0;
  padding: 0.48rem 0.6rem;
  border: 1px solid #e1e8ef !important;
  border-radius: 0.5rem !important;
  background: #fff;
  color: #354052;
  font-size: 0.75rem;
  line-height: 1.3;
}

#cardContainer .font-card-preview-input:focus {
  border-color: var(--site-accent) !important;
  box-shadow: 0 0 0 2px rgba(0, 109, 117, 0.12) !important;
}

.font-card-footer {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
}

.font-card-details-button,
.font-card-buy-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 2.35rem;
  border-radius: 0.55rem;
  font-size: 0.72rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.18s, border-color 0.18s, transform 0.18s;
}

.font-card-details-button {
  flex: 1;
  border: 1px solid #e0e7ef;
  background: #fff;
  color: var(--site-accent);
}

.font-card-details-button:hover {
  border-color: #b9c9d9;
  background: #f7f9fc;
}

.font-card-buy-button {
  flex: 0 0 auto;
  padding: 0 0.9rem;
  border: 0;
  background: var(--site-accent);
  color: #fff;
  cursor: pointer;
}

.font-card-buy-button:hover {
  background: var(--site-accent-dark);
}

.font-card-details-button .material-symbols-outlined,
.font-card-buy-button .material-symbols-outlined {
  font-size: 0.9rem;
}

#fontList {
  background: #f6f8fb;
}

aside.hidden.lg\:flex,
body > div.flex > aside {
  background-color: #fff !important;
  border-color: var(--site-border) !important;
}

#visitorCounter {
  border-color: var(--site-border) !important;
  background: #f8faf8;
}

.custom-slider {
  background: #c7d0dc !important;
}

.custom-slider::-webkit-slider-thumb {
  background: var(--site-accent) !important;
  box-shadow: 0 0 0 4px rgba(0, 109, 117, 0.14);
}

.custom-slider::-moz-range-thumb {
  background: var(--site-accent) !important;
  border: 0;
  box-shadow: 0 0 0 4px rgba(0, 109, 117, 0.14);
}

.like-btn {
  border-color: var(--site-border);
}

#noticeStrip {
  background: #33485e !important;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1fr);
  align-items: center;
  gap: clamp(1rem, 3vw, 2rem);
}

#noticeStrip .notice-text:first-child {
  text-align: right;
}

#noticeStrip .notice-text:last-child {
  text-align: left;
}

#noticeStrip .notice-divider {
  width: 1px;
  align-self: stretch;
  min-height: 2rem;
  background: rgba(255, 255, 255, 0.35);
}

footer,
#glyphSection,
#mobileInfoBar {
  border-color: var(--site-border) !important;
}

.modal-overlay {
  background: rgba(12, 24, 19, 0.58);
  backdrop-filter: blur(5px);
}

#specimen {
  caret-color: var(--site-accent);
}

.contact-card {
  border-radius: 18px;
}

.copy-btn.copied {
  background: var(--site-accent) !important;
  border-color: var(--site-accent) !important;
}

@media (min-width: 1101px) and (max-width: 1200px) {
  .hero-brand-tagline {
    letter-spacing: 0.02em;
  }
}

@media (max-width: 1100px) {
  .hero-banner-content {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 1.25rem;
    min-height: 0;
  }

  .hero-script-divider {
    width: 3.5rem;
    height: 2px;
  }

  .hero-native-script {
    font-size: clamp(1.15rem, 3vw, 1.5rem);
  }

  .hero-website-link {
    position: static;
    display: flex;
    width: fit-content;
    margin: 0 0 0 auto;
  }
}

@media (max-width: 640px) {
  header {
    box-shadow: 0 2px 14px rgba(23, 35, 31, 0.05);
  }

  .hero-banner {
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
  }

  .hero-banner-content {
    gap: 1.25rem;
  }

  .hero-brand-lockup {
    gap: 2.25rem;
  }

  .hero-logo-frame {
    width: 5.75rem;
  }

  .hero-logo-frame::before,
  .hero-logo-frame::after {
    inset: 34% -12% 34% -36%;
  }

  .hero-brand-title {
    font-size: clamp(1.75rem, 8vw, 2.4rem);
  }

  .hero-brand-tagline {
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    line-height: 1.5;
  }

  .hero-native-script {
    font-size: clamp(1.05rem, 3.8vw, 1.3rem);
  }

  .category-toolbar-main {
    align-items: stretch;
    flex-direction: column;
    gap: 0.75rem;
  }

  .category-heading {
    display: flex;
    align-items: baseline;
    gap: 0.65rem;
  }

  .category-filters {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 0.2rem 0 0.5rem;
    scrollbar-width: none;
  }

  .category-filters::-webkit-scrollbar {
    display: none;
  }

  .category-filter {
    flex: 0 0 auto;
  }

  .footer-info-row,
  .category-toolbar-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-info-row {
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    gap: 0.75rem;
  }

  .footer-info-row .category-note {
    grid-column: 1;
    grid-row: 1;
    justify-self: stretch;
    white-space: normal;
    font-size: 0.9rem;
    text-align: center;
  }

  .footer-info-row .category-toolbar-actions {
    display: flex;
    grid-column: 1;
    grid-row: 2;
    align-items: center;
    justify-self: center;
    width: 100%;
    gap: 0.5rem;
  }

  #fontList {
    padding-top: 1.25rem;
  }

  #noticeStrip {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.75rem;
  }

  #noticeStrip .notice-text {
    text-align: center;
  }

  #noticeStrip .notice-divider {
    width: 100%;
    height: 1px;
    min-height: 0;
  }

  #cardContainer {
    gap: 0.85rem;
  }

  .font-card-header,
  .font-card-footer {
    gap: 0.5rem;
  }

  .controls-bar {
    background: #fff !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
