/* GORGON HOUSE — art deco, gold on black */

:root {
  --black: #0a0a08;
  --black-2: #111009;
  --gold: #d4af37;
  --gold-bright: #f2d478;
  --gold-dim: #8a7327;
  --gold-faint: rgba(212, 175, 55, 0.28);
  --gold-ghost: rgba(212, 175, 55, 0.1);
  --ivory: #ece5d3;
  --ivory-dim: #b7ae97;
  --serif: "Cinzel", "Times New Roman", serif;
  --sans: "Josefin Sans", "Futura", "Century Gothic", sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--black);
  color: var(--ivory);
  font-family: var(--sans);
  font-weight: 300;
  letter-spacing: 0.02em;
  line-height: 1.7;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

/* ---- page chrome: fixed deco frame ---- */

.frame {
  position: fixed;
  inset: 14px;
  border: 1px solid var(--gold-faint);
  pointer-events: none;
  z-index: 40;
}

.frame::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid var(--gold-ghost);
}

.frame .corner {
  position: absolute;
  width: 26px;
  height: 26px;
  border-color: var(--gold);
  border-style: solid;
  border-width: 0;
}

.frame .corner.tl { top: -1px; left: -1px; border-top-width: 2px; border-left-width: 2px; }
.frame .corner.tr { top: -1px; right: -1px; border-top-width: 2px; border-right-width: 2px; }
.frame .corner.bl { bottom: -1px; left: -1px; border-bottom-width: 2px; border-left-width: 2px; }
.frame .corner.br { bottom: -1px; right: -1px; border-bottom-width: 2px; border-right-width: 2px; }

/* faint radial glow behind the hero */
.glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 55% at 50% 38%, rgba(212, 175, 55, 0.07), transparent 70%),
    radial-gradient(ellipse 100% 40% at 50% 110%, rgba(212, 175, 55, 0.05), transparent 70%);
  z-index: 0;
}

main {
  position: relative;
  z-index: 1;
}

/* ---- hero ---- */

.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 96px 28px;
}

.emblem {
  width: clamp(120px, 18vw, 170px);
  height: auto;
  margin-bottom: 2.4rem;
  animation: rise 1.2s ease both;
}

.hero-kicker {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 0.72rem;
  letter-spacing: 0.62em;
  text-indent: 0.62em; /* balances tracking on centered text */
  text-transform: uppercase;
  color: var(--gold-dim);
  animation: rise 1.2s 0.15s ease both;
}

.wordmark {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.6rem, 9vw, 6.4rem);
  line-height: 1.08;
  letter-spacing: 0.18em;
  text-indent: 0.18em;
  margin: 1.1rem 0 1.4rem;
  background: linear-gradient(180deg, #f6e3a1 0%, var(--gold) 45%, #a8842a 78%, #e8ca6e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: rise 1.2s 0.3s ease both;
}

.wordmark span {
  display: block;
}

.divider {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--gold);
  margin: 0 auto 1.6rem;
  width: min(420px, 70vw);
  animation: rise 1.2s 0.45s ease both;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-faint));
}

.divider::after {
  background: linear-gradient(90deg, var(--gold-faint), transparent);
}

.divider .diamond {
  width: 7px;
  height: 7px;
  background: var(--gold);
  transform: rotate(45deg);
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.6);
}

.hero-tagline {
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  font-weight: 300;
  letter-spacing: 0.3em;
  text-indent: 0.3em;
  text-transform: uppercase;
  color: var(--ivory);
  animation: rise 1.2s 0.55s ease both;
}

.hero-soon {
  margin-top: 3.2rem;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  animation: rise 1.2s 0.7s ease both;
}

.hero-soon .soon {
  font-family: var(--serif);
  font-size: 0.95rem;
  letter-spacing: 0.55em;
  text-indent: 0.55em;
  text-transform: uppercase;
  color: var(--gold-bright);
  padding: 0.85rem 2rem;
  border: 1px solid var(--gold-faint);
  position: relative;
}

.hero-soon .soon::before,
.hero-soon .soon::after {
  content: "";
  position: absolute;
  top: -4px;
  bottom: -4px;
  width: 9px;
  border: 1px solid var(--gold);
}

.hero-soon .soon::before { left: -4px; border-right: 0; }
.hero-soon .soon::after { right: -4px; border-left: 0; }

.hero-soon .year {
  font-size: 0.75rem;
  letter-spacing: 0.5em;
  text-indent: 0.5em;
  color: var(--gold-dim);
}

.hero-contact {
  margin-top: 2.6rem;
  animation: rise 1.2s 0.85s ease both;
}

/* ---- enquire button + modal ---- */

.enquire-btn {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 0.78rem;
  letter-spacing: 0.42em;
  text-indent: 0.42em;
  text-transform: uppercase;
  color: var(--black);
  background: linear-gradient(180deg, var(--gold-bright), var(--gold) 55%, #b8912c);
  border: 0;
  padding: 1rem 2.6rem;
  cursor: pointer;
  position: relative;
  transition: filter 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.enquire-btn:hover {
  filter: brightness(1.12);
  transform: translateY(-2px);
  box-shadow: 0 10px 34px rgba(212, 175, 55, 0.28);
}

.enquire-btn:disabled {
  opacity: 0.6;
  cursor: wait;
  transform: none;
}

.enquire-modal {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: min(440px, calc(100vw - 40px));
  width: 100%;
  margin: auto; /* the global reset kills the UA centering — restore it */
}

.enquire-modal button:focus-visible {
  outline: 1px solid var(--gold-bright);
  outline-offset: 3px;
}

.enquire-modal input:focus-visible {
  outline: none; /* focus is shown by the brighter underline */
}

.enquire-modal::backdrop {
  background: rgba(5, 5, 3, 0.82);
  backdrop-filter: blur(4px);
}

.modal-inner {
  position: relative;
  background: var(--black-2);
  border: 1px solid var(--gold-faint);
  outline: 1px solid var(--gold-ghost);
  outline-offset: 5px;
  padding: 3rem 2.6rem 2.8rem;
  text-align: center;
  color: var(--ivory);
  font-family: var(--sans);
  font-weight: 300;
}

.modal-inner .kicker {
  font-size: 0.66rem;
  letter-spacing: 0.55em;
  text-indent: 0.55em;
  text-transform: uppercase;
  color: var(--gold-dim);
}

.modal-inner h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.7rem;
  letter-spacing: 0.24em;
  text-indent: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 0.6rem;
}

.modal-inner .divider {
  width: min(220px, 60%);
  margin: 1.2rem auto 1.8rem;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 14px;
  background: none;
  border: 0;
  color: var(--gold-dim);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.3s ease;
}

.modal-close:hover {
  color: var(--gold-bright);
}

.enquire-modal form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: left;
}

.enquire-modal label {
  font-size: 0.66rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-top: 0.9rem;
}

.enquire-modal input {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1rem;
  letter-spacing: 0.05em;
  color: var(--ivory);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--gold-faint);
  padding: 0.55rem 2px;
  outline: none;
  transition: border-color 0.3s ease;
}

.enquire-modal input:focus {
  border-bottom-color: var(--gold-bright);
}

.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.form-error {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  color: #d98a8a;
  margin-top: 1rem;
}

.enquire-btn.submit {
  margin-top: 1.8rem;
  width: 100%;
}

.form-done .done-mark {
  color: var(--gold);
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.form-done p {
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  line-height: 1.9;
}

.form-done .enquire-btn {
  margin-top: 1.8rem;
}

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

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

/* ---- journal (dispatches) ---- */

.section {
  max-width: 980px;
  margin: 0 auto;
  padding: 90px 28px 110px;
}

.section-head {
  text-align: center;
  margin-bottom: 3.4rem;
}

.section-head .kicker {
  font-size: 0.7rem;
  letter-spacing: 0.55em;
  text-indent: 0.55em;
  text-transform: uppercase;
  color: var(--gold-dim);
}

.section-head h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  letter-spacing: 0.22em;
  text-indent: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 0.7rem;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 26px;
}

.post-card {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding: 2rem 1.8rem 1.9rem;
  border: 1px solid var(--gold-ghost);
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.04), transparent 60%);
  position: relative;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.post-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 54px;
  height: 3px;
  background: var(--gold);
}

.post-card:hover {
  border-color: var(--gold-faint);
  transform: translateY(-4px);
}

.post-card .meta {
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-dim);
}

.post-card h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.2rem;
  letter-spacing: 0.06em;
  line-height: 1.35;
}

.post-card h3 a {
  color: var(--ivory);
}

.post-card h3 a:hover {
  color: var(--gold-bright);
}

.post-card p {
  font-size: 0.92rem;
  color: var(--ivory-dim);
  flex: 1;
}

.post-card .read {
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.empty-note {
  text-align: center;
  color: var(--ivory-dim);
  font-size: 0.95rem;
  letter-spacing: 0.12em;
}

/* ---- article page ---- */

.article-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 120px 28px 90px;
}

.back-link {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  margin-bottom: 3rem;
}

.article-head {
  text-align: center;
  margin-bottom: 3rem;
}

.article-head .meta {
  font-size: 0.7rem;
  letter-spacing: 0.4em;
  text-indent: 0.4em;
  text-transform: uppercase;
  color: var(--gold-dim);
}

.article-head h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.8rem, 5vw, 2.9rem);
  letter-spacing: 0.08em;
  line-height: 1.25;
  color: var(--gold);
  margin: 1.1rem 0 1.4rem;
}

.article-body {
  font-size: 1.06rem;
  color: var(--ivory);
}

.article-body > * + * {
  margin-top: 1.3em;
}

.article-body h2,
.article-body h3,
.article-body h4 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--gold);
  margin-top: 2em;
}

.article-body img {
  max-width: 100%;
  height: auto;
  border: 1px solid var(--gold-ghost);
}

.article-body blockquote {
  border-left: 2px solid var(--gold);
  padding-left: 1.4em;
  color: var(--ivory-dim);
  font-style: italic;
}

.article-body ul,
.article-body ol {
  padding-left: 1.4em;
}

.article-body pre {
  overflow-x: auto;
  background: var(--black-2);
  border: 1px solid var(--gold-ghost);
  padding: 1em 1.2em;
  font-size: 0.9em;
}

.article-body hr {
  border: 0;
  height: 1px;
  background: var(--gold-faint);
}

/* ---- footer ---- */

footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2.6rem 28px 3rem;
  border-top: 1px solid var(--gold-ghost);
}

footer .mark {
  font-family: var(--serif);
  font-size: 0.8rem;
  letter-spacing: 0.45em;
  text-indent: 0.45em;
  text-transform: uppercase;
  color: var(--gold);
}

footer .fine {
  margin-top: 0.6rem;
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  color: var(--ivory-dim);
}
