/* =========================================================
   Jordan – NDIS Disability Support Worker
   Palette drawn from the portrait: amber-tortoiseshell
   glasses (terracotta), garden leaves (sage), warm skin
   tones (blush/cream) and the charcoal pinstripe shirt.
   ========================================================= */

:root {
  /* Colours */
  --cream:        #faf5ef;   /* page background */
  --paper:        #fffdf9;   /* card surface */
  --blush:        #f3e3d6;   /* soft decorative tone */
  --sage-soft:    #dfe8d6;   /* soft decorative tone */
  --sage:         #4a6741;   /* secondary accent (AA on cream & paper) */
  --terracotta:   #9a5236;   /* primary accent (AA with white text) */
  --terracotta-dk:#7e4029;   /* hover/active */
  --ink:          #2f2a26;   /* body text */
  --ink-soft:     #5c534c;   /* secondary text (AA on cream) */

  /* Shape & rhythm */
  --radius-lg: 2rem;
  --radius-pill: 999px;
  --shadow: 0 0.75rem 2.5rem rgba(90, 60, 40, 0.10);
  --space: clamp(1.25rem, 4vw, 2.5rem);

  /* Type */
  --font: "Nunito", ui-rounded, "SF Pro Rounded", system-ui, -apple-system,
          "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Base ---------- */

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: clamp(1.0625rem, 0.98rem + 0.35vw, 1.1875rem); /* ~17–19px */
  line-height: 1.7;
  color: var(--ink);
  background:
    radial-gradient(ellipse 60% 45% at 0% 0%, var(--sage-soft), transparent 70%),
    radial-gradient(ellipse 55% 40% at 100% 100%, var(--blush), transparent 70%),
    var(--cream);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

p {
  margin: 0 0 1.1em;
}

p:last-child {
  margin-bottom: 0;
}

/* ---------- Layout ---------- */

.page {
  flex: 1;
  width: 100%;
  max-width: 68rem;
  margin: 0 auto;
  padding: var(--space);
  padding-top: clamp(2rem, 6vw, 4.5rem);
  padding-bottom: clamp(2rem, 6vw, 4.5rem);
}

/* ---------- Intro ---------- */

.intro {
  display: grid;
  grid-template-areas:
    "photo"
    "head"
    "body";
  gap: 1.5rem;
  align-items: start;
}

.intro-head {
  grid-area: head;
  width: 100%;
  max-width: 38rem;
  margin: 0 auto;
}

.intro-head h1 {
  margin-bottom: 0;
}

.portrait {
  grid-area: photo;
  justify-self: center;
  width: min(72%, 17rem);
}

.portrait img {
  width: 100%;
  height: auto;
  border-radius: 1rem;
  box-shadow: var(--shadow);
}

.intro-text {
  grid-area: body;
  width: 100%;
  max-width: 38rem;
  margin: 0 auto;
}

h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 1.5rem + 2.4vw, 3.1rem);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.smile {
  color: var(--terracotta);
  white-space: nowrap;
}

.lead {
  font-size: 1.08em;
}

/* ---------- Contact ---------- */

.contact {
  margin-top: clamp(2.5rem, 7vw, 4.5rem);
  padding: clamp(1.5rem, 5vw, 2.75rem);
  background: var(--paper);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  text-align: center;
}

.contact h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 1.25rem + 1.2vw, 2rem);
  font-weight: 800;
  line-height: 1.25;
}

.contact > p {
  max-width: 32rem;
  margin: 0 auto;
  color: var(--ink-soft);
}

.contact-links {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
}

.contact-links li {
  flex: 1 1 16rem;
  max-width: 22rem;
}

.button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  min-height: 3.5rem;               /* large, easy tap target */
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.3;
  text-decoration: none;
  overflow-wrap: anywhere;          /* long email never overflows */
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.button svg {
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
  fill: currentColor;
}

.button-label {
  font-weight: 800;
}

.button-primary {
  background: var(--terracotta);
  color: #fff;
  border: 2px solid var(--terracotta);
}

.button-primary:hover {
  background: var(--terracotta-dk);
  border-color: var(--terracotta-dk);
}

.button-secondary {
  background: var(--paper);
  color: var(--sage);
  border: 2px solid var(--sage);
}

.button-secondary:hover {
  background: var(--sage-soft);
}

.button:hover {
  transform: translateY(-1px);
}

/* Clear, visible keyboard focus */
a:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

/* ---------- Larger screens: text left, photo right ---------- */

@media (min-width: 52rem) {
  .intro {
    grid-template-columns: 1fr minmax(16rem, 20rem);
    grid-template-areas:
      "head ."
      "body photo";
    column-gap: clamp(2rem, 4vw, 3.5rem);
    row-gap: 1.25rem;
  }

  .portrait {
    width: 100%;
    position: sticky;
    top: 2.5rem;
    margin-top: 0.5rem; /* optical alignment with the first line of text */
  }

  .intro-head,
  .intro-text {
    margin: 0;
  }
}

/* ---------- Accessibility preferences ---------- */

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
  .button:hover {
    transform: none;
  }
}

@media (forced-colors: active) {
  .button {
    border: 2px solid ButtonText;
  }
}

@media print {
  body {
    background: #fff;
  }
  .contact {
    box-shadow: none;
    border: 1px solid #ccc;
  }
}
