/* ScriptyLabs default page for newly registered domains. Plain CSS, no build step. */
@font-face {
  font-family: "DM Sans";
  src: url(./assets/fonts/dm-sans.woff2) format("woff2");
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f6f5f1;
  --ink: #0f1a16;
  --muted: #6b706c;
  --line: #d9d7cf;
  --brand: #0b5a43;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--ink);
  font-family: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

.page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  padding: 28px 24px;
}

.logo {
  display: block;
  width: 124px;
  height: auto;
}

/* One centred moment: label, name, rule, sentence, two links. */
.center {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 72px 0;
  text-align: center;
}

.label {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.domain {
  width: 100%;
  margin: 28px 0 0;
  font-size: clamp(44px, 9vw, 120px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.045em;
  white-space: nowrap;
}

.domain.wrap {
  white-space: normal;
  overflow-wrap: anywhere;
}

.rule {
  display: block;
  width: 56px;
  height: 1px;
  margin-top: 40px;
  background: var(--brand);
}

.lead {
  max-width: 420px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.6;
  text-wrap: balance;
}

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

/* Domain search: one underlined field; submitting opens the domain search on scriptylabs.com. */
.search {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 440px;
  margin-top: 48px;
  border-bottom: 1px solid var(--line);
  transition: border-color 0.3s ease;
}

.search:focus-within {
  border-color: var(--ink);
}

.search input {
  flex: 1;
  min-width: 0;
  padding: 14px 4px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 17px;
  text-align: left;
}

.search input::placeholder {
  color: var(--muted);
}

.search button {
  display: grid;
  flex: none;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 8px;
  border: 0;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.search button:hover {
  background: #084634;
}

.search button svg {
  width: 22px;
  height: 22px;
  stroke-width: 1.8;
}

.search svg,
.link svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  transition: transform 0.3s ease;
}

.search button:hover svg,
.link:hover svg {
  transform: translateX(4px);
}

.link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  color: var(--muted);
  font-size: 14px;
  transition: color 0.3s ease;
}

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

.link svg {
  width: 15px;
  height: 15px;
}

.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
}

@media (min-width: 720px) {
  .page {
    padding: 40px 56px;
  }
  .logo {
    width: 140px;
  }
}

/* A single, slow fade in. */
.fade {
  opacity: 0;
  transform: translateY(8px);
  animation: fade 1.1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--d, 0ms);
}

@keyframes fade {
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fade {
    opacity: 1;
    transform: none;
    animation: none;
  }
}
