/* Romanamore — minimal one-page site */

:root {
  --paper: #f2f0ea;
  --paper-2: #e9e6dd;
  --ink: #121210;
  --muted: #6c6a63;
  --line: rgba(18, 18, 16, 0.14);
  --accent: #2547ff;
  --lime: #c9f24d;
  --radius: 18px;
  --max: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

body {
  margin: 0;
  font-family: "Inter", "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: linear-gradient(to right, rgba(18, 18, 16, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(18, 18, 16, 0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 75%);
  mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 75%);
}

::selection {
  background: var(--lime);
  color: var(--ink);
}

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

a {
  color: inherit;
}

h1,
h2,
h3 {
  font-weight: 600;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1.02;
  margin: 0;
}

h3 {
  font-size: 1.15rem;
  margin: 0 0 0.5rem;
}

p {
  line-height: 1.6;
}

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 100;
  padding: 0.7rem 1rem;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(242, 240, 234, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(37, 71, 255, 0.12);
}

.nav {
  display: flex;
  gap: 1.4rem;
  margin-left: auto;
}

.nav a {
  font-size: 0.92rem;
  text-decoration: none;
  color: var(--muted);
  transition: color 0.2s ease;
}

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

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.3rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  transition: transform 0.2s var(--ease), background 0.2s ease, color 0.2s ease,
    border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  background: var(--accent);
}

.btn:focus-visible,
.nav a:focus-visible,
.brand:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.btn-sm {
  padding: 0.62rem 1rem;
  font-size: 0.86rem;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn-ghost:hover {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

/* Hero */

.hero {
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto;
  height: 80%;
  pointer-events: none;
  background: radial-gradient(60% 60% at 70% 20%, rgba(37, 71, 255, 0.16), transparent 70%),
    radial-gradient(40% 40% at 20% 0%, rgba(201, 242, 77, 0.35), transparent 70%);
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  padding: clamp(3rem, 7vw, 6.5rem) 0;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1rem;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

h1 {
  max-width: 14ch;
  margin: 0;
  font-size: clamp(2.7rem, 6.4vw, 5.8rem);
  line-height: 0.95;
  letter-spacing: -0.045em;
}

h1 em {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}

.lead {
  max-width: 52ch;
  margin: 1.4rem 0 0;
  font-size: 1.08rem;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 2rem;
}

.micro {
  margin: 1.1rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.hero-visual {
  position: relative;
  min-height: 430px;
}

.visual-glow {
  position: absolute;
  left: 15%;
  top: 8%;
  width: 70%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(37, 71, 255, 0.35),
      rgba(201, 242, 77, 0.25) 55%, transparent 70%);
  filter: blur(30px);
}

.visual-card {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  width: 230px;
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  box-shadow: 0 24px 60px rgba(18, 18, 16, 0.12);
  animation: float 7s ease-in-out infinite;
}

.visual-card span {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.visual-card b {
  font-size: 1rem;
  font-weight: 600;
}

.card-a {
  top: 6%;
  left: 2%;
  transform: rotate(-6deg);
  animation-delay: -1s;
}

.card-b {
  top: 38%;
  right: 0;
  transform: rotate(4deg);
  animation-delay: -3s;
}

.card-c {
  bottom: 4%;
  left: 8%;
  transform: rotate(-2deg);
  animation-delay: -5s;
}

@keyframes float {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -10px;
  }
}

/* Strip */

.strip {
  border-block: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.35);
}

.strip-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
  padding: 0.9rem 0;
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Sections */

.section {
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.section-alt {
  background: var(--paper-2);
}

.section-head {
  max-width: 700px;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section-sub {
  max-width: 58ch;
  margin: 0.9rem 0 0;
  font-size: 1.02rem;
  color: var(--muted);
}

/* Cards */

.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--line);
}

.card {
  min-height: 210px;
  padding: clamp(1.4rem, 3vw, 2.2rem);
  background: var(--paper);
  transition: background 0.25s ease;
}

.card:hover {
  background: #fff;
}

.card-num {
  display: block;
  margin-bottom: 1.4rem;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--accent);
}

.card p {
  max-width: 42ch;
  margin: 0;
  color: var(--muted);
}

/* Process */

.process {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.process li {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: clamp(1rem, 3vw, 2.5rem);
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
}

.process .num {
  padding-top: 0.2rem;
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}

.process p {
  max-width: 60ch;
  margin: 0.35rem 0 0;
  color: var(--muted);
}

/* Split / principles */

.split {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.principles {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.principles li {
  padding: 1.3rem 0;
  border-top: 1px solid var(--line);
}

.principles li:first-child {
  padding-top: 0;
  border-top: 0;
}

.principles p {
  max-width: 55ch;
  margin: 0;
  color: var(--muted);
}

/* FAQ */

.faq {
  border-top: 1px solid var(--line);
}

.faq details {
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
}

.faq summary {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 1.08rem;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  font-size: 1.3rem;
  line-height: 1;
  color: var(--muted);
}

.faq details[open] summary::after {
  content: "–";
}

.faq p {
  max-width: 65ch;
  margin: 0.7rem 0 0;
  color: var(--muted);
}

/* Contact */

.contact {
  position: relative;
  overflow: hidden;
  padding: clamp(4rem, 8vw, 7rem) 0;
  background: var(--ink);
  color: var(--paper);
}

.contact::before {
  content: "";
  position: absolute;
  right: -10%;
  top: -40%;
  width: 60%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 242, 77, 0.18), transparent 65%);
  pointer-events: none;
}

.contact-inner {
  position: relative;
}

.eyebrow-light {
  color: rgba(255, 255, 255, 0.55);
}

.contact h2 {
  max-width: 14ch;
  color: #fff;
}

.contact-lead {
  max-width: 52ch;
  margin: 1rem 0 2rem;
  color: rgba(255, 255, 255, 0.65);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.btn-light {
  background: var(--lime);
  color: var(--ink);
}

.btn-light:hover {
  background: #fff;
}

.btn-outline-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-outline-light:hover {
  background: #fff;
  color: var(--ink);
  border-color: #fff;
}

/* Footer */

.site-footer {
  padding: 2rem 0;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem 2rem;
  align-items: center;
  color: var(--muted);
  font-size: 0.88rem;
}

.footer-inner > p {
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  justify-self: end;
}

.footer-links a {
  text-decoration: none;
}

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

.copyright {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--muted);
}

/* Simple pages (privacy, 404) */

.page {
  padding: clamp(3rem, 7vw, 6rem) 0;
}

.page h1 {
  max-width: 20ch;
  font-size: clamp(2.2rem, 5vw, 4rem);
}

.page p,
.page li {
  max-width: 70ch;
  color: var(--muted);
}

.page a {
  color: var(--accent);
}

/* Responsive */

@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 340px;
    max-width: 560px;
  }

  .split {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 760px) {
  .nav {
    display: none;
  }

  .header-inner {
    min-height: 64px;
  }

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

  .process li {
    grid-template-columns: 52px 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-self: start;
  }

  .hero-actions .btn {
    width: 100%;
  }
}

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

  html {
    scroll-behavior: auto;
  }
}
