/* === Reset & Base === */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #FEFEFE;
  --text: #1A1A1A;
  --ink-dark: #2C2C2C;
  --ink-light: #BABABA;
  --yellow: #FFF176;
  --yellow-deep: #FFD54F;
  --font-serif: 'Playfair Display', 'Georgia', serif;
  --font-sans: 'Inter', -apple-system, 'Helvetica Neue', sans-serif;
}

html, body {
  height: 100%;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-weight: 300;
}

/* === Canvas === */
#ink-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/* === Brand (top-left) === */
.brand {
  position: fixed;
  top: clamp(24px, 4vh, 48px);
  left: clamp(24px, 4vw, 56px);
  z-index: 10;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-name {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text);
  line-height: 1.1;
}

.seal {
  width: clamp(32px, 4vw, 48px);
  height: clamp(32px, 4vw, 48px);
  flex-shrink: 0;
  opacity: 0.85;
  transform: rotate(-6deg);
  transition: transform 0.3s ease;
}

.seal:hover {
  transform: rotate(0deg) scale(1.05);
}

.seal-svg {
  width: 100%;
  height: 100%;
}

.subtitle {
  font-family: var(--font-sans);
  font-size: clamp(0.65rem, 1.2vw, 0.8rem);
  font-weight: 300;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ink-light);
  margin-top: 6px;
}

/* === Nav Links (bottom-left) === */
.nav-links {
  position: fixed;
  bottom: clamp(24px, 4vh, 48px);
  left: clamp(24px, 4vw, 56px);
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.link-item {
  display: flex;
  align-items: baseline;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  transition: color 0.2s ease;
}

.link-label {
  font-size: 0.6rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--ink-light);
  min-width: 56px;
}

.link-text {
  font-size: clamp(0.8rem, 1.4vw, 0.95rem);
  font-weight: 400;
  position: relative;
}

.link-text::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 6px;
  background: linear-gradient(120deg, var(--yellow), var(--yellow-deep));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: -1;
  opacity: 0.7;
}

.link-item:hover .link-text::after,
.link-item:focus .link-text::after {
  transform: scaleX(1);
}

.link-item:focus {
  outline: 2px solid var(--yellow);
  outline-offset: 4px;
  border-radius: 2px;
}

/* === Contact (bottom-right) === */
.contact {
  position: fixed;
  bottom: clamp(24px, 4vh, 48px);
  right: clamp(24px, 4vw, 56px);
  z-index: 10;
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-name {
  font-family: var(--font-serif);
  font-size: clamp(0.9rem, 1.6vw, 1.1rem);
  font-weight: 700;
  letter-spacing: 0.06em;
}

.contact-email {
  font-size: clamp(0.7rem, 1.2vw, 0.85rem);
  font-weight: 300;
  color: var(--ink-dark);
  text-decoration: none;
  position: relative;
}

.contact-email::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(120deg, var(--yellow), var(--yellow-deep));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
  z-index: -1;
  opacity: 0.7;
}

.contact-email:hover::after,
.contact-email:focus::after {
  transform: scaleX(1);
}

.contact-email:focus {
  outline: 2px solid var(--yellow);
  outline-offset: 4px;
  border-radius: 2px;
}

/* === Reduced Motion === */
@media (prefers-reduced-motion: reduce) {
  .seal {
    transition: none;
  }
}

/* === Mobile === */
@media (max-width: 640px) {
  .brand-row {
    gap: 10px;
  }

  .nav-links {
    bottom: auto;
    top: auto;
    left: clamp(16px, 4vw, 24px);
    bottom: clamp(16px, 3vh, 24px);
  }

  .contact {
    display: none;
  }

  .link-label {
    display: none;
  }
}
