/* thelastsocialite.com homepage */
:root {
  --bg: #fdfbf5;
  --paper: #ffffff;
  --ink: #142a78;
  --muted: #4b5678;
  --coral: #f0563f;
  --ochre: #e0a21b;
  --line: #e3e1da;
  --display: 'Instrument Serif', Georgia, serif;
  --text: 'Source Serif 4', Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, p { margin: 0; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--text);
  font-size: 18px;
  line-height: 1.6;
  overflow-x: clip;
}

a { color: inherit; }
a:focus-visible { outline: 2px solid var(--coral); outline-offset: 3px; }

.bg-seagull {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  max-width: 500px;
  opacity: 0.05;
  pointer-events: none;
  z-index: 0;
}

.page {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 2rem 4rem;
}

/* Intro: text on the left, photo fading in towards the right (Erin is on the far right) */
.intro {
  position: relative;
  /* full-bleed: photo runs to the top and right edges of the window */
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-bottom: 4rem;
  padding: 5rem max(2rem, calc((100vw - 1120px) / 2 + 2rem)) 3.5rem;
}

.intro-text {
  position: relative;
  z-index: 1;
  max-width: 36rem;
}

.hero-photo {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 72%;
  /* fade in from the left, and out at the bottom so no edge shows */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, transparent 42%, rgba(0, 0, 0, 0.4) 60%, #000 76%), linear-gradient(to bottom, #000 75%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent 0%, transparent 42%, rgba(0, 0, 0, 0.4) 60%, #000 76%), linear-gradient(to bottom, #000 75%, transparent 100%);
  mask-composite: intersect;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 88% 30%;
  display: block;
}

h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 5rem;
  line-height: 1;
  color: var(--coral);
  margin-bottom: 0.6rem;
}

.role {
  font-size: 1.3rem;
  color: var(--ink);
  margin-bottom: 1.8rem;
}

.role strong {
  font-weight: 700;
}

.org {
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid var(--coral);
  white-space: nowrap;
}

.org img {
  width: 20px;
  height: 20px;
  vertical-align: -4px;
  margin: 0 0.3rem 0 0.15rem;
}

.org:hover { color: var(--coral); }

.intro-text p:not(.role) {
  font-size: 1.3rem;
  line-height: 1.55;
  margin-bottom: 1.1rem;
}

/* Sections */
section { margin-bottom: 4rem; }

h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 2.4rem;
  line-height: 1.1;
  margin-bottom: 1.4rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--line);
}

.section-note {
  color: var(--muted);
  font-style: italic;
  margin: -0.6rem 0 1.4rem;
}

/* Tiles */
.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.tile {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 0.7rem 0.7rem 1.1rem;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

a.tile:hover {
  transform: translateY(-3px);
  border-color: var(--coral);
  box-shadow: 0 10px 24px rgba(20, 42, 120, 0.14);
}

.shot {
  display: block;
  border: 1px solid var(--line);
  background: #fff;
  overflow: hidden;
  margin-bottom: 0.9rem;
}

.bar {
  display: block;
  font-family: var(--text);
  font-size: 0.68rem;
  line-height: 1;
  padding: 0.4rem 0.5rem 0.4rem 2.4rem;
  color: var(--muted);
  background: #f4f2ec radial-gradient(circle, var(--coral) 2.5px, transparent 3px) 0.45rem 50% / 9px 9px no-repeat;
  position: relative;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bar::before {
  content: '';
  position: absolute;
  left: 1.05rem;
  top: 50%;
  width: 5px;
  height: 5px;
  margin-top: -2.5px;
  border-radius: 50%;
  background: var(--ochre);
  box-shadow: 9px 0 0 var(--ink);
}

.shot img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top;
}

.shot.square { border: none; }
.shot.square img { aspect-ratio: 1; }

.label {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--coral);
  font-weight: 600;
  padding: 0 0.3rem;
}

.name {
  font-family: var(--display);
  font-size: 1.65rem;
  line-height: 1.1;
  margin: 0.2rem 0 0.4rem;
  padding: 0 0.3rem;
}

a.tile:hover .name { color: var(--coral); }

.desc {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--muted);
  padding: 0 0.3rem;
}

/* Contact icons */
.icons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.icons a {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  color: var(--ink);
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.icons a:hover {
  background: var(--coral);
  border-color: var(--coral);
  color: var(--paper);
}

.icons svg { width: 24px; height: 24px; fill: currentColor; }
.icons svg.stroke { fill: none; stroke: currentColor; stroke-width: 1.8; }

/* Responsive */
@media (max-width: 960px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .page { padding: 0 1rem 3rem; }
  .intro { padding: 0 1rem; display: flex; flex-direction: column-reverse; }
  .intro-text p:not(.role) { font-size: 1.1rem; }
  .role { font-size: 1.1rem; }
  .hero-photo {
    position: relative;
    width: auto;
    height: 300px;
    margin: 0 -1rem 1.5rem;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.35) 35%, #000 70%);
    mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.35) 35%, #000 70%);
  }
  .hero-photo img { object-position: 92% 25%; }
  h1 { font-size: 3.2rem; }
  h2 { font-size: 2rem; }
}

@media (max-width: 460px) {
  .grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .tile { transition: none; }
}
