/* Setoi homepage styles.
   Colours: petrol blue background, warm ivory text.
   Fonts: Bricolage Grotesque Bold (self-hosted) for the wordmark,
   system sans-serif for everything else. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("assets/fonts/bricolage-grotesque-bold-subset.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --petrol: #02374B;
  --ivory: #FCF1D7;
  /* Ivory on petrol is about 11:1 contrast. Keep text at this colour only. */
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: "Bricolage Grotesque", var(--sans);
  --gutter: clamp(1.25rem, 5vw, 4rem);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--petrol);
  color: var(--ivory);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}

/* Keyboard focus: visible on every interactive element. */
:focus-visible {
  outline: 3px solid var(--ivory);
  outline-offset: 4px;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: 0;
  padding: 0.75rem 1rem;
  background: var(--ivory);
  color: var(--petrol);
  font-weight: 600;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0.75rem);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  padding: clamp(1.5rem, 4vw, 2.5rem) var(--gutter) 0;
}

.wordmark {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  letter-spacing: -0.02em;
  line-height: 1;
}

main {
  flex: 1;
  display: flex;
  align-items: center;
  padding: clamp(3rem, 10vh, 7rem) var(--gutter);
}

.hero {
  width: 100%;
  max-width: 62rem;
  margin: 0 auto;
}

h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.5rem, 9vw, 6.5rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  max-width: 14ch;
}

.location {
  margin: clamp(1.25rem, 3vw, 2rem) 0 0;
  font-size: clamp(1.125rem, 2.4vw, 1.5rem);
  line-height: 1.3;
}

.actions {
  margin-top: clamp(2rem, 5vw, 3rem);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0.75rem 1.75rem;
  border: 2px solid var(--ivory);
  border-radius: 999px;
  background: var(--ivory);
  color: var(--petrol);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  max-width: 100%;
}

.button:hover {
  background: transparent;
  color: var(--ivory);
}

.email {
  margin: 0;
  font-size: clamp(1rem, 2.6vw, 1.25rem);
}

.email-address {
  color: var(--ivory);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  user-select: all;
  -webkit-user-select: all;
  word-break: break-all;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding: 1.5rem var(--gutter) 2rem;
  border-top: 1px solid rgba(252, 241, 215, 0.25);
  font-size: 0.9375rem;
}

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

.social a,
.domain a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--ivory);
  text-underline-offset: 0.2em;
}

.domain {
  margin: 0;
}

a:hover {
  text-decoration-thickness: 2px;
}

/* Wider screens: keep the hero in one clear column with more air. */
@media (min-width: 768px) {
  .actions {
    flex-direction: row;
    align-items: center;
    gap: 2rem;
  }
}

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