/* ============================================================
   Alex Hutlet — site styles
   Light theme — graphite text on white.
   ============================================================ */

:root {
  --bg: #ffffff;
  --bg-elevated: #f6f6f7;
  --line: rgba(0, 0, 0, 0.12);
  --line-strong: rgba(0, 0, 0, 0.24);
  --text: #1a1a1c;
  --text-dim: #565659;
  --text-faint: #8a8a90;

  /* Soft graphite gradient used for the logo + headings.
     Subtle sheen — keep the swing between stops gentle. */
  --metal: linear-gradient(
    175deg,
    #3a3a40 0%,
    #232327 45%,
    #1a1a1c 72%,
    #2e2e33 100%
  );

  --maxw: 1040px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(120% 80% at 50% -10%, #f3f3f5 0%, var(--bg) 55%) fixed,
    var(--bg);
  color: var(--text);
  font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Subtle film-grain / paper texture overlay */
.grain {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

main,
.site-header,
.site-footer {
  position: relative;
  z-index: 1;
}

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

/* ---------- Metal text helper ---------- */
.metal-text,
.logo-mark,
.hero__name,
.section-title {
  background: var(--metal);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ============================================================
   Header / nav
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.7);
  border-bottom: 1px solid var(--line);
}

.nav {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__brand {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  font-size: 1.5rem;
  letter-spacing: 0.08em;
  background: var(--metal);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav__links {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.nav__links a {
  color: var(--text-dim);
  transition: color 0.25s var(--ease);
}

.nav__links a:hover {
  color: var(--text);
}

/* ============================================================
   Hero — the business card
   ============================================================ */
.hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(3rem, 10vw, 7rem) 1.5rem clamp(2rem, 6vw, 4rem);
  display: flex;
  justify-content: center;
}

.hero__card {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 5vw, 4rem);
  width: 100%;
  max-width: 860px;
}

.hero__logo {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-mark {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  font-size: clamp(5rem, 18vw, 11rem);
  line-height: 0.9;
  letter-spacing: 0.02em;
  filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.12));
}

.hero__divider {
  flex: 0 0 1px;
  align-self: stretch;
  min-height: 180px;
  background: linear-gradient(
    to bottom,
    transparent,
    var(--line-strong) 18%,
    var(--line-strong) 82%,
    transparent
  );
}

.hero__info {
  flex: 1 1 auto;
}

.hero__name {
  margin: 0;
  font-size: clamp(1.6rem, 5vw, 2.9rem);
  font-weight: 300;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  line-height: 1.1;
}

.hero__title {
  margin: 0.7rem 0 0;
  font-size: clamp(0.8rem, 2.5vw, 1.05rem);
  font-weight: 300;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.hero__rule {
  height: 1px;
  width: clamp(120px, 40%, 220px);
  margin: 1.4rem 0;
  background: var(--line-strong);
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-list a {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  color: var(--text-dim);
  font-size: clamp(0.95rem, 2.5vw, 1.15rem);
  letter-spacing: 0.04em;
  width: fit-content;
  transition: color 0.25s var(--ease);
}

.contact-list a:hover {
  color: var(--text);
}

.contact-list__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--text-faint);
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.contact-list a:hover .contact-list__icon {
  color: var(--text);
  border-color: var(--line-strong);
}

.contact-list__icon--text {
  border: none;
  width: auto;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  color: var(--text-faint);
}

/* ============================================================
   Contact form
   ============================================================ */
.contact {
  padding: clamp(3rem, 8vw, 6rem) 1.5rem clamp(4rem, 10vw, 7rem);
  border-top: 1px solid var(--line);
}

.contact__inner {
  max-width: 620px;
  margin: 0 auto;
}

.section-title {
  margin: 0;
  font-size: clamp(1.4rem, 4vw, 2rem);
  font-weight: 300;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.contact__lede {
  margin: 0.9rem 0 2.5rem;
  color: var(--text-dim);
  font-weight: 300;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.field label {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 300;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--line-strong);
  background: #ffffff;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--text-faint);
}

/* Honeypot — keep off-screen */
.hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
}

.btn {
  align-self: flex-start;
  margin-top: 0.4rem;
  padding: 0.85rem 2.2rem;
  background: var(--metal);
  color: #ffffff;
  border: none;
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.2s var(--ease), filter 0.2s var(--ease), opacity 0.2s var(--ease);
}

.btn:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn:disabled {
  opacity: 0.6;
  cursor: default;
  transform: none;
}

.form-status {
  margin: 0.4rem 0 0;
  min-height: 1.2em;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

.form-status.is-success {
  color: #1f7a44;
}

.form-status.is-error {
  color: #b3261e;
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  padding: 2rem 1.5rem;
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--text-faint);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
}

.site-footer p {
  margin: 0;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 640px) {
  .hero__card {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }

  .hero__divider {
    width: 60%;
    min-height: 1px;
    height: 1px;
    align-self: center;
    background: linear-gradient(to right, transparent, var(--line-strong), transparent);
  }

  .hero__rule {
    margin-left: auto;
    margin-right: auto;
  }

  .contact-list a {
    margin: 0 auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
