/* =========================================================
   NOLAN HEMWAY — OFFICIAL WEBSITE
   Palette: Black · Ivory · Muted Gold
   ========================================================= */

:root {
  --bg: #10100f;
  --panel: #151513;
  --panel-soft: #1b1a17;
  --ivory: #f3f0e9;
  --body: #c8c4bc;
  --muted: #a8a39a;
  --gold: #c6a66b;
  --gold-dim: #a88b56;
  --line: #34312c;

  --serif: "Playfair Display", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
  --mono: "DM Mono", monospace;

  --site-width: 1440px;
  --content-width: 1120px;
  --gutter: clamp(22px, 5vw, 76px);
  --content-gutter: clamp(22px, 6vw, 80px);
  --header-height: 82px;
}

/* RESET */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 30px;
  background: var(--bg);
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--bg);
  color: var(--ivory);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img,
svg,
video {
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
  transition:
    color 180ms ease,
    border-color 180ms ease;
}

a:hover {
  color: var(--gold);
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  color: inherit;
}

::selection {
  background: var(--gold);
  color: var(--bg);
}

/* ACCESSIBILITY */

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

/* =========================================================
   HEADER
   Logo left · Official Website centered · Navigation right
   ========================================================= */

.site-header {
  position: relative;
  z-index: 20;

  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;

  width: 100%;
  max-width: var(--site-width);
  min-height: var(--header-height);
  margin-inline: auto;
  padding: 17px var(--gutter);

  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

/* NH favicon logo */

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  justify-self: start;

  width: fit-content;
  padding: 0;
  border: 0;
  line-height: 0;
}

.brand img {
  display: block;
  width: 42px;
  height: 42px;
  object-fit: contain;
}

/* Centered website label */

.header-label {
  justify-self: center;
  margin: 0;

  color: var(--gold);
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  line-height: 1.5;
  text-align: center;
  white-space: nowrap;
}

/* Right-aligned navigation */

.navigation {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  justify-self: end;
  gap: clamp(15px, 2vw, 30px);

  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.09em;
}

.navigation a {
  position: relative;
  padding: 8px 0;
  color: var(--body);
  white-space: nowrap;
}

.navigation a::after {
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;

  height: 1px;
  background: var(--gold);
  content: "";

  transform: scaleX(0);
  transform-origin: left;
  transition: transform 200ms ease;
}

.navigation a:hover {
  color: var(--ivory);
}

.navigation a:hover::after {
  transform: scaleX(1);
}

/* Mobile menu button */

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;

  padding: 9px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ivory);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--ivory);
  transition: background 180ms ease;
}

.menu-toggle:hover span {
  background: var(--gold);
}

/* =========================================================
   HOMEPAGE HERO
   ========================================================= */

.hero {
  position: relative;
  isolation: isolate;

  display: flex;
  flex-direction: column;
  justify-content: space-between;

  width: 100%;
  min-height: calc(100svh - var(--header-height));
  padding: 30px var(--gutter) 36px;
  margin-inline: auto;

  overflow: hidden;
}

.hero-glow {
  position: absolute;
  z-index: -1;
  top: 52%;
  left: 50%;

  width: min(75vw, 850px);
  aspect-ratio: 1;
  border-radius: 50%;

  background: radial-gradient(
    circle,
    rgba(198, 166, 107, 0.11) 0%,
    rgba(198, 166, 107, 0.04) 40%,
    transparent 70%
  );

  pointer-events: none;
  transform: translate(-50%, -50%);
}

.hero-topline,
.hero-bottom {
  position: relative;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;

  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
}

.hero-edition {
  color: var(--gold);
  text-align: right;
}

.hero-center {
  position: relative;

  width: 100%;
  max-width: 1100px;
  margin: auto;
  padding: clamp(65px, 9vh, 110px) 0;

  text-align: center;
}

.intro-label {
  margin: 0 0 25px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.67rem;
  letter-spacing: 0.16em;
}

.hero-title {
  margin: 0;

  font-family: var(--serif);
  font-size: clamp(4.5rem, 12vw, 10.5rem);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: -0.065em;
}

.first-name,
.last-name {
  display: block;
}

.last-name {
  color: var(--ivory);
  font-style: italic;
}

.period {
  color: var(--gold);
}

.hero-tagline {
  margin-top: 32px;
  color: var(--gold);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
}

.explore-link {
  display: inline-flex;
  align-items: center;
  gap: 18px;

  padding: 0 0 10px;
  border-bottom: 1px solid var(--gold);

  color: var(--ivory);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
}

.explore-link:hover {
  border-color: var(--ivory);
  color: var(--gold);
}

.arrow {
  color: var(--gold);
  font-size: 1rem;
  transition: transform 180ms ease;
}

.explore-link:hover .arrow {
  transform: translateX(4px);
}

.hero-index {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-align: right;
}

.vertical-label {
  position: absolute;
  top: 45%;
  right: 16px;

  color: #756b58;
  font-family: var(--mono);
  font-size: 0.56rem;
  letter-spacing: 0.13em;
  writing-mode: vertical-rl;
}

/* =========================================================
   INNER PAGE HEROES
   ========================================================= */

.inner-hero {
  width: 100%;
  max-width: var(--content-width);
  margin-inline: auto;
  padding: clamp(75px, 9vw, 120px) var(--content-gutter) 70px;

  border-bottom: 1px solid var(--line);
  text-align: center;
}

.inner-hero.compact {
  padding-top: 65px;
  padding-bottom: 52px;
}

.eyebrow,
.section-kicker {
  margin: 0;

  color: var(--gold);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
}

.inner-hero h1 {
  max-width: 900px;
  margin: 25px auto;

  font-family: var(--serif);
  font-size: clamp(3rem, 7.5vw, 6.5rem);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.05em;
  overflow-wrap: break-word;
}

.inner-hero h1 em,
.content-section h2 em {
  color: var(--gold);
  font-weight: 400;
}

.inner-lead {
  max-width: 650px;
  margin: 0 auto;

  color: var(--body);
  font-size: 1.02rem;
  line-height: 1.9;
}

/* =========================================================
   CENTERED PAGE CONTENT
   ========================================================= */

.content-section {
  width: 100%;
  max-width: var(--content-width);
  margin-inline: auto;
  padding: 70px var(--content-gutter) 95px;

  text-align: center;
}

.content-section > p {
  max-width: 720px;
  margin: 18px auto;
  color: var(--body);
}

.content-section h2 {
  margin: 20px 0;

  font-family: var(--serif);
  font-size: clamp(2rem, 4.5vw, 3.8rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.content-section .text-link {
  margin-top: 22px;
}

/* Small links */

.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 8px 0;
  border-bottom: 1px solid var(--line);

  color: var(--gold);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.11em;
}

.text-link:hover {
  border-color: var(--gold);
}

/* =========================================================
   WORK LIST
   ========================================================= */

.work-list {
  width: 100%;
  max-width: 760px;
  margin: 38px auto 0;

  border-top: 1px solid var(--line);
  text-align: center;
}

.work-list article {
  padding: 28px 12px;
  border-bottom: 1px solid var(--line);
}

.work-list article > span {
  color: var(--gold);
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.15em;
}

.work-list h2 {
  margin: 12px 0;

  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 400;
}

.work-list p {
  max-width: 600px;
  margin: 0 auto;
  color: var(--body);
}

.quiet,
.small {
  color: var(--muted) !important;
  font-size: 0.85rem;
}

/* =========================================================
   NEWS
   ========================================================= */

.news-empty {
  max-width: 720px;
  margin-inline: auto;
  padding: 35px 0 55px;
  text-align: center;
}

.gold-dash {
  display: block;
  width: 38px;
  height: 1px;
  margin: 22px auto;
  background: var(--gold);
}

/* =========================================================
   CONTACT AND NEWSLETTER
   ========================================================= */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(30px, 6vw, 70px);

  width: 100%;
  max-width: 960px;
  margin-inline: auto;

  text-align: center;
}

.contact-grid > * {
  min-width: 0;
}

.newsletter-card {
  padding: clamp(25px, 4vw, 42px);
  border: 1px solid var(--line);
  background: var(--panel);
  text-align: center;
  scroll-margin-top: 30px;
}

.newsletter-card h2 {
  margin: 0 0 16px;

  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 2.65rem);
  font-weight: 400;
  line-height: 1.2;
}

.newsletter-card p {
  margin-inline: auto;
}

.newsletter-fields {
  display: flex;
  align-items: stretch;
  gap: 10px;

  width: 100%;
  margin-top: 25px;
  flex-wrap: wrap;
}

.form-control {
  flex: 1 1 180px;
  width: 100%;
  min-width: 0;
  padding: 14px 15px;

  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--bg);
  color: var(--ivory);

  font-family: var(--sans);
  font-size: 0.95rem;
}

.form-control::placeholder {
  color: var(--muted);
  opacity: 1;
}

.form-control:focus {
  border-color: var(--gold);
  outline: 1px solid var(--gold);
  outline-offset: 0;
}

.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 14px 20px;
  border: 1px solid var(--gold);
  border-radius: 0;

  background: var(--gold);
  color: #15130f;

  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;

  cursor: pointer;
  transition:
    background 180ms ease,
    color 180ms ease,
    border-color 180ms ease;
}

.primary:hover {
  border-color: var(--ivory);
  background: var(--ivory);
  color: var(--bg);
}

.ml-form-successBody {
  padding: 20px 0;
}

/* =========================================================
   PRIVACY AND TERMS
   Keep legal copy readable while centered on the page.
   ========================================================= */

.legal {
  width: 100%;
  max-width: 760px;
  margin-inline: auto;
  text-align: left;
  overflow-wrap: anywhere;
}

.legal h2 {
  margin-top: 40px;

  color: var(--ivory);
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 400;
  line-height: 1.35;
}

.legal p {
  color: var(--body);
  line-height: 1.9;
}

.legal a {
  color: var(--gold);
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 4px;
}

.legal a:hover {
  text-decoration-color: var(--gold);
}

/* =========================================================
   FOOTER
   Brand left · Official Website centered · Links right
   ========================================================= */

.site-footer {
  width: 100%;
  padding: 28px var(--gutter) 24px;
  border-top: 1px solid var(--line);
}

.footer-top,
.footer-bottom {
  width: 100%;
  max-width: var(--site-width);
  margin-inline: auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
}

.footer-brand {
  justify-self: start;

  color: var(--ivory);
  font-family: var(--serif);
  font-size: 1.25rem;
  letter-spacing: 0.04em;
}

.footer-descriptor {
  justify-self: center;

  margin: 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-align: center;
}

.footer-official {
  justify-self: end;

  margin: 0;
  color: var(--gold);
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.13em;
  text-align: right;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;

  margin-top: 24px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}

.footer-copyright {
  margin: 0;

  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.59rem;
  letter-spacing: 0.04em;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  flex-wrap: wrap;

  font-family: var(--mono);
  font-size: 0.6rem;
}

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

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

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1050px) {
  .site-header {
    gap: 15px;
  }

  .navigation {
    gap: 15px;
    font-size: 0.62rem;
  }

  .header-label {
    font-size: 0.61rem;
  }

  .contact-grid {
    gap: 28px;
  }
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 760px) {
  :root {
    --header-height: 72px;
    --content-gutter: 6vw;
  }

  .site-header {
    grid-template-columns: 1fr auto 1fr;
    min-height: var(--header-height);
    padding: 13px var(--gutter);
    gap: 8px;
  }

  .brand img {
    width: 39px;
    height: 39px;
  }

  .header-label {
    justify-self: center;
    margin: 0;

    font-size: 0.53rem;
    letter-spacing: 0.1em;
    text-align: center;
  }

  .menu-toggle {
    display: flex;
    justify-self: end;
  }

  .navigation {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;

    display: none;
    align-items: stretch;
    flex-direction: column;
    gap: 0;

    padding: 14px var(--gutter) 22px;
    border-bottom: 1px solid var(--line);
    background: var(--bg);
  }

  .navigation.is-open {
    display: flex;
  }

  .navigation a {
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
    font-size: 0.73rem;
  }

  .navigation a:last-child {
    border-bottom: 0;
  }

  .navigation a::after {
    display: none;
  }

  .hero {
    min-height: calc(100svh - var(--header-height));
    padding: 24px var(--gutter) 28px;
  }

  .hero-glow {
    width: 115vw;
  }

  .hero-center {
    padding: 60px 0;
  }

  .hero-title {
    font-size: clamp(3.8rem, 16vw, 7rem);
    line-height: 0.97;
  }

  .intro-label {
    margin-bottom: 20px;
  }

  .hero-tagline {
    margin-top: 27px;
  }

  .hero-topline,
  .hero-bottom {
    gap: 10px;
    font-size: 0.53rem;
    letter-spacing: 0.06em;
  }

  .vertical-label {
    right: 6px;
    font-size: 0.45rem;
  }

  .inner-hero {
    padding: 65px var(--content-gutter) 45px;
  }

  .inner-hero.compact {
    padding-top: 52px;
    padding-bottom: 40px;
  }

  .inner-hero h1 {
    margin: 21px auto;
    font-size: clamp(2.7rem, 10.5vw, 4.8rem);
    line-height: 1.1;
  }

  .inner-lead {
    font-size: 0.98rem;
  }

  .content-section {
    padding: 48px var(--content-gutter) 68px;
  }

  .content-section h2 {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .work-list {
    margin-top: 30px;
  }

  .work-list article {
    padding: 24px 4px;
  }

  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .newsletter-card {
    padding: 26px 22px;
  }

  .newsletter-fields {
    flex-direction: column;
  }

  .form-control,
  .primary {
    width: 100%;
    flex-basis: auto;
  }

  .site-footer {
    padding: 26px var(--gutter) 22px;
  }

  .footer-top {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 8px;

    text-align: center;
  }

  .footer-brand,
  .footer-descriptor,
  .footer-official {
    justify-self: center;
    text-align: center;
  }

  .footer-brand {
    font-size: 1.2rem;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: center;
    gap: 14px;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
    gap: 12px 18px;
  }
}

/* EXTRA SMALL PHONES */

@media (max-width: 380px) {
  .brand img {
    width: 35px;
    height: 35px;
  }

  .header-label {
    font-size: 0.47rem;
    letter-spacing: 0.07em;
  }

  .hero-title {
    font-size: 15vw;
  }

  .hero-topline,
  .hero-bottom {
    font-size: 0.47rem;
  }

  .hero-center {
    padding: 50px 0;
  }

  .inner-hero h1 {
    font-size: 2.55rem;
  }

  .footer-links {
    gap: 10px 14px;
  }
}

/* REDUCED MOTION */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}