/* heysydney.co: warm, casual personal-brand link page with big photo tiles.
   Type and colours borrowed from mortgageswithsyd.ca (Butler + Google Sans Flex). */
@font-face { font-family: "Butler"; src: url("/assets/fonts/butler-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --bg: #faf7f2;
  --sand: #e6dacb;
  --ink: #2b2420;
  --ink-soft: #4a3f38;
  --muted: #6b5c50;
  --faint: #8a7b6f;
  --line: #e2d5c4;
  --radius: 22px;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 300 16px/1.6 "Google Sans Flex", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
h1 {
  margin: 0;
  font: 400 clamp(40px, 10vw, 56px)/1.02 "Butler", Georgia, serif;
  letter-spacing: -.01em;
  text-wrap: balance;
}

.page { max-width: 560px; margin: 0 auto; padding: 20px 16px 40px; }

/* Intro */
.intro { text-align: center; }
.photo {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: 45% 30%;
  border-radius: var(--radius);
  background: var(--sand);
  margin-bottom: 28px;
}
.intro p { max-width: 400px; margin: 14px auto 0; font-size: 17px; color: var(--ink-soft); }

/* Tiles */
.tiles { display: grid; gap: 14px; margin-top: 32px; }
.tile {
  position: relative;
  display: block;
  aspect-ratio: 5 / 4;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--sand);
  text-decoration: none;
  color: #fff;
  isolation: isolate;
  box-shadow: 0 1px 2px rgba(43, 36, 32, .06);
  transition: transform .35s ease, box-shadow .35s ease;
}
.tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform .6s ease;
}
.tile::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(20, 16, 14, 0) 22%, rgba(20, 16, 14, .5) 55%, rgba(20, 16, 14, .82) 100%);
}
.tile:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -18px rgba(43, 36, 32, .45); }
.tile:hover img { transform: scale(1.04); }
.tile:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }

.tile-text {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 22px 56px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.tile-text::after {
  content: "→";
  position: absolute;
  right: 20px;
  bottom: 22px;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  color: var(--ink);
  font: 400 16px "Google Sans Flex", sans-serif;
  transition: transform .35s ease;
}
.tile:hover .tile-text::after { transform: translateX(3px); }
.tag {
  align-self: flex-start;
  margin-bottom: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .92);
  color: var(--ink);
  font: 500 10.5px/1.2 "Google Sans Flex", sans-serif;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.tile strong { font: 400 clamp(23px, 6vw, 28px)/1.1 "Butler", Georgia, serif; text-wrap: balance; }
.tile small { font-size: 14.5px; line-height: 1.45; opacity: .92; }

/* Say hi */
.say-hi { margin-top: 40px; text-align: center; }
.say-hi p { margin: 0 0 14px; font: 400 21px/1.3 "Butler", Georgia, serif; }
.icons { display: flex; justify-content: center; gap: 12px; }
.icons a {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  transition: background .3s ease, color .3s ease, border-color .3s ease;
}
.icons a:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.icons svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

.fine {
  margin: 32px 0 0;
  text-align: center;
  font: 400 10.5px/1.8 "Google Sans Flex", sans-serif;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--faint);
}

/* 404 */
.simple { max-width: 560px; margin: 0 auto; padding: 80px 16px; text-align: center; }
.simple p { color: var(--ink-soft); }
.btn {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 28px;
  margin-top: 12px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  font: 500 12px/1 "Google Sans Flex", sans-serif;
  letter-spacing: .18em;
  text-transform: uppercase;
}

/* Larger screens: 2x2 grid */
@media (min-width: 760px) {
  .page { max-width: 920px; padding: 40px 32px 56px; }
  .intro { max-width: 560px; margin: 0 auto; }
  .tiles { grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 44px; }
  .tile { aspect-ratio: 4 / 5; }
}

@media (prefers-reduced-motion: reduce) {
  .tile, .tile img, .tile-text::after, .icons a { transition: none; }
  .tile:hover, .tile:hover img { transform: none; }
}
