/*
  Shared stylesheet for both one-pagers, jesabeldc.com and
  thefutureislowtech.com. The two files are identical; keep them that way so
  the sites stay a matched pair.

  Green page, white panels, gold buttons. Every button is the same shape:
  full width, softly rounded rectangle, 3px black border, centred label.

  Design system ported from the old TFILT repo's _variables.scss to custom
  properties, so this stays a no-build static page.
*/

:root {
  --white: #ffffff;
  --black: #111111;
  --grey: #ebebeb;
  --green: #bfdd38;
  --gold: #e3a63f;

  --font-display: 'Jersey 20', sans-serif;
  --font-body: 'DM Sans', sans-serif;

  --border-width: 3px;
  --radius: 12px;
  --radius-button: 16px;

  --transition: 0.2s ease;
}

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

body {
  font-family: var(--font-body);
  background-color: var(--green);
  color: var(--black);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

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

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

.hub {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding: 44px 24px 64px;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

/* Every block of reading sits on white. */
.panel {
  width: 100%;
  background-color: var(--white);
  border: var(--border-width) solid var(--black);
  border-radius: var(--radius);
  padding: 24px 26px;
}

/* ------------------------------------------------------------------ */
/* Hero                                                                */
/* Photo left, name and actions right. Sits straight on the green.     */
/* ------------------------------------------------------------------ */

.hero {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 270px) minmax(0, 1fr);
  gap: 26px;
  align-items: flex-start;
}

/*
  The frame carries the size, not the image. An <img> is a replaced element,
  so letting aspect-ratio and a percentage width set its box left it free to
  blow out of the column. A wrapper with explicit dimensions cannot.
*/
.hero__photo {
  width: 100%;
  height: 325px;
  overflow: hidden;

  border: var(--border-width) solid var(--black);
  border-radius: var(--radius);
  background-color: var(--white);
}

.hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* Wider crops, like the stage shot, sit square and centred. */
.hero__photo--wide {
  height: 260px;
}

.hero__photo--wide img {
  object-position: center;
}

.hero__side {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 20px;
  min-width: 0;
}

.hero__name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(32px, 8vw, 52px);
  line-height: 1;
  text-wrap: balance;
}

.hero__socials {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
}

.hero__social {
  font-size: 13px;
  font-weight: 500;
  border-bottom: 2px solid var(--black);
  padding-bottom: 1px;
  transition: border-color var(--transition);
}

.hero__social:hover {
  border-bottom-color: var(--gold);
}

/* ------------------------------------------------------------------ */
/* Body copy                                                           */
/* ------------------------------------------------------------------ */

.bio {
  display: flex;
  flex-direction: column;
  gap: 14px;

  font-size: 15px;
  line-height: 1.7;
  text-align: left;
}

.inline-link {
  border-bottom: 2px solid var(--gold);
  padding-bottom: 1px;
  transition: border-color var(--transition);
}

.inline-link:hover {
  border-bottom-color: var(--black);
}

/* ------------------------------------------------------------------ */
/* Partner strip                                                       */
/*                                                                     */
/* Logos vary wildly in proportion: Sephora is a 7:1 wordmark, Figma is */
/* nearly square. Sizing them all to one height makes the wide ones     */
/* look enormous. Each sits in a fixed cell instead and is bounded by   */
/* both width and height, so they balance optically rather than         */
/* mathematically.                                                      */
/* ------------------------------------------------------------------ */

.partners {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 22px 26px;
}

.partners__label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.55;
}

.partners__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 20px 30px;
  width: 100%;
}

.partners__cell {
  flex: 0 0 130px;
  height: 34px;

  display: flex;
  align-items: center;
  justify-content: center;
}

.partners__logo {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* Text version, for lists where not every name has a logo file. */
.partners__names {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 14px;
}

.partners__name {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
}

.partners__sep {
  opacity: 0.35;
}

/* ------------------------------------------------------------------ */
/* Buttons                                                             */
/* One shape, one colour. The only variation is size.                  */
/* ------------------------------------------------------------------ */

.buttons {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;

  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.3;

  padding: 16px 24px;
  border: var(--border-width) solid var(--black);
  border-radius: var(--radius-button);
  background-color: var(--gold);

  transition: filter var(--transition), transform var(--transition);
}

.btn:hover {
  filter: brightness(1.06);
}

.btn:active {
  transform: translateY(1px);
}

.btn:focus-visible {
  outline: var(--border-width) solid var(--black);
  outline-offset: 3px;
}

/* The hero variant. Spans its column so the row fills the full width. */
.btn--inline {
  font-size: 14px;
  padding: 13px 22px;
  width: 90%;
}

/* ------------------------------------------------------------------ */
/* Closing block                                                       */
/* ------------------------------------------------------------------ */

.closing {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.closing__status {
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1.15;
}

.closing__lead {
  font-size: 14px;
  line-height: 1.65;
}

.closing__email {
  font-size: 15px;
  font-weight: 500;
  border-bottom: 2px solid var(--gold);
  padding-bottom: 1px;
  align-self: flex-start;
  transition: opacity var(--transition);
}

.closing__email:hover {
  opacity: 0.7;
}

/* ------------------------------------------------------------------ */
/* Small screens                                                       */
/* ------------------------------------------------------------------ */

@media (max-width: 520px) {
  .hub {
    padding: 32px 18px 48px;
    gap: 16px;
  }

  .hero {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 18px;
  }

  .hero__photo {
    width: 220px;
    height: 275px;
  }

  .hero__photo--wide {
    height: 220px;
  }

  .hero__side {
    align-items: center;
  }

  .btn--inline {
    width: auto;
    align-self: center;
  }

  .panel {
    padding: 20px;
  }

  .partners__cell {
    flex: 0 0 104px;
    height: 28px;
  }
}
