:root {
  --bg: #FDFBF7;
  --bg-2: #F4EFE6;
  --ink: #1C2421;
  --ink-soft: #4A5D54;
  --brand: #0B7285;
  --brand-2: #1098AD;
  --card: #FFFFFF;
  --stroke: #EAE3D5;
  --shadow: 0 12px 36px rgba(11, 114, 133, 0.08);
  --shadow-hover: 0 24px 48px rgba(11, 114, 133, 0.12);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  font-family: "Sora", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(900px 500px at -15% -20%, rgba(16, 152, 173, 0.08) 0%, transparent 58%),
    radial-gradient(800px 440px at 115% -15%, rgba(11, 114, 133, 0.08) 0%, transparent 54%),
    var(--bg);
  line-height: 1.6;
  position: relative;
}

body::before,
body::after {
  content: "";
  position: fixed;
  pointer-events: none;
  z-index: -1;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  animation: drift 14s ease-in-out infinite alternate;
}

body::before {
  width: 300px;
  height: 300px;
  background: rgba(16, 152, 173, 0.1);
  left: -100px;
  top: 20vh;
}

body::after {
  width: 250px;
  height: 250px;
  background: rgba(11, 114, 133, 0.1);
  right: -80px;
  top: 60vh;
  animation-delay: -5s;
}

@keyframes drift {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(30px, -40px) scale(1.1); }
}

.container {
  width: min(1160px, calc(100% - 2.5rem));
  margin: 0 auto;
}

.site-header {
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(234, 227, 213, 0.6);
  margin-bottom: 2rem;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.brand {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
  transition: color var(--transition);
}

.brand:hover {
  color: var(--brand);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: transparent;
  transition: var(--transition);
  border: 1px solid transparent;
}

.nav a:hover {
  background: rgba(11, 114, 133, 0.05);
  color: var(--brand);
}

.nav a.active {
  background: var(--brand);
  color: #ffffff;
  border-color: var(--brand);
  box-shadow: 0 4px 10px rgba(11, 114, 133, 0.2);
}

.hero {
  padding: 1rem 0 3rem;
  text-align: center;
  animation: reveal 0.8s ease-out;
}

.hero h1 {
  margin: 0 0 1rem;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  line-height: 1.1;
  color: var(--ink);
}

.hero p {
  margin: 0 auto;
  max-width: 65ch;
  color: var(--ink-soft);
  font-size: 1.1rem;
}

.layout {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 2rem;
  margin-bottom: 4rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 2.25rem;
  transition: var(--transition);
  animation: reveal 1s ease-out;
}

.card:hover {
  box-shadow: var(--shadow-hover);
}

.card h2,
.card h3 {
  margin: 0 0 1.5rem;
  font-family: "Fraunces", Georgia, serif;
  color: var(--ink);
  font-size: 1.5rem;
}

.field {
  margin-top: 1.25rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
}

textarea,
input[type="text"],
input[type="date"],
select {
  width: 100%;
  border: 2px solid var(--stroke);
  background: var(--bg);
  border-radius: var(--radius-md);
  padding: 0.8rem 1rem;
  color: var(--ink);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
}

textarea:focus,
input[type="text"]:focus,
input[type="date"]:focus,
select:focus {
  outline: none;
  border-color: var(--brand);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(11, 114, 133, 0.1);
}

textarea {
  resize: vertical;
  min-height: 100px;
}

input[type="range"],
input[type="color"] {
  width: 100%;
}

input[type="range"] {
  accent-color: var(--brand);
  height: 6px;
  border-radius: 3px;
  background: var(--stroke);
  outline: none;
  margin-top: 0.5rem;
}

input[type="color"] {
  height: 48px;
  border: 2px solid var(--stroke);
  border-radius: var(--radius-sm);
  background: #fff;
  padding: 2px;
  cursor: pointer;
  transition: border-color var(--transition);
}

input[type="color"]:hover {
  border-color: var(--brand);
}

.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.5rem 0;
}

.inline input[type="checkbox"] {
  width: 1.25rem;
  height: 1.25rem;
  accent-color: var(--brand);
  cursor: pointer;
}

.small {
  margin: 0.25rem 0 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.preview-surface {
  background: var(--bg);
  border: 2px dashed rgba(11, 114, 133, 0.2);
  min-height: 380px;
  border-radius: var(--radius-md);
  padding: 2rem;
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
  transition: background-color var(--transition);
  overflow: hidden;
  position: relative;
  margin-bottom: 2rem;
}

.preview-main {
  margin: 0;
  line-height: 1.2;
  text-wrap: pretty;
  max-width: 100%;
  word-break: break-word;
}

.preview-sub {
  margin: 1rem 0 0;
  color: var(--ink-soft);
  font-size: 1.1rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

button {
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.8rem 1.5rem;
  background: var(--brand);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}

button:hover {
  background: #095C6B;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(11, 114, 133, 0.2);
}

button.ghost {
  background: transparent;
  border: 2px solid var(--stroke);
  color: var(--ink);
}

button.ghost:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: rgba(11, 114, 133, 0.05);
  box-shadow: none;
}

.status {
  min-height: 1.5em;
  margin: 1rem 0 0;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-soft);
}

.hidden {
  display: none !important;
}

.frame-floral::before,
.frame-classic::before {
  content: "";
  position: absolute;
  inset: 16px;
  border-radius: var(--radius-sm);
  pointer-events: none;
}

.frame-floral::before {
  border: 2px dotted color-mix(in oklab, var(--brand-2) 45%, #b79856 55%);
}

.frame-classic::before {
  border: 2px solid #d4c4a8;
}

.shape-circle {
  border-radius: 50%;
  aspect-ratio: 1 / 1;
  width: min(100%, 420px);
  margin-inline: auto;
  min-height: auto;
}

.shape-rounded {
  border-radius: 32px;
}

.gradient-text {
  background: linear-gradient(90deg, #0B7285, #E86A33);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
}

.monogram {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.2em;
}

.monogram.stack {
  flex-direction: column;
  align-items: center;
  gap: 0.05em;
}

.mono-side {
  font-size: 0.75em;
}

.mono-center {
  font-size: 1.25em;
}

.ratio-square {
  aspect-ratio: 1 / 1;
  min-height: auto;
}

.ratio-story {
  aspect-ratio: 9 / 16;
  min-height: auto;
}

.ratio-wide {
  aspect-ratio: 16 / 9;
  min-height: auto;
}

#tattoo-canvas {
  width: 100%;
  max-width: 620px;
  border-radius: var(--radius-md);
  border: 2px dashed rgba(11, 114, 133, 0.2);
  background: var(--bg);
}

.insta-output {
  margin-top: 1rem;
  width: 100%;
  display: grid;
  gap: 0.75rem;
}

.insta-row {
  border: 1px solid var(--stroke);
  border-radius: var(--radius-md);
  background: var(--card);
  padding: 1rem;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: var(--transition);
}
.insta-row:hover {
  border-color: var(--brand);
}

.insta-row p {
  margin: 0;
  font-size: 1rem;
  overflow-wrap: anywhere;
  color: var(--ink);
}

.insta-row button {
  align-self: flex-start;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

.seo {
  margin: 0 0 2rem;
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.seo:hover {
  box-shadow: var(--shadow-hover);
}

.seo h2,
.seo h3 {
  font-family: "Fraunces", Georgia, serif;
  margin: 0 0 1rem;
  font-size: 1.75rem;
  color: var(--ink);
}

.seo h3 {
  font-size: 1.4rem;
}

.seo p {
  margin: 0 0 1rem;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.links-grid a {
  color: var(--brand);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  padding: 0.5rem 0;
  transition: color var(--transition);
  display: inline-block;
}

.links-grid a:hover {
  color: var(--brand-2);
  text-decoration: underline;
}

.site-footer {
  padding: 2rem 0 3rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
  border-top: 1px solid var(--stroke);
  text-align: center;
}

@keyframes reveal {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 980px) {
  .layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .topbar {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .nav {
    justify-content: center;
  }
  .row {
    grid-template-columns: 1fr;
  }
  .links-grid {
    grid-template-columns: 1fr;
  }
  .actions {
    flex-direction: column;
  }
  button {
    width: 100%;
  }
}
