/* sinatralink.business — homepage styles */

:root {
  --page-bg: #dfe8f8;
  --card-bg: #a8bcff;
  --ink: #000;
  --heading: #242424;
  --muted: #6a6b76;
  --rules-ink: #352b40;
  --rules-muted: #746b80;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Cairo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --rules-font: "Montserrat", Arial, sans-serif;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  background: var(--page-bg);
  color: var(--muted);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.5;
}

/* Fixed, viewport-sized background (works on iOS, unlike background-attachment: fixed) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: var(--page-bg) url("../img/background.jpg") center / 100% 100% no-repeat;
}

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

.page {
  width: 100%;
  max-width: 976px;
  margin: 0 auto;
  padding: 126px 20px 20px;
}

/* ---------- Profile ---------- */

.profile { text-align: center; }

.profile__photo {
  width: 137px;
  height: 137px;
  margin: 0 auto;
  border-radius: 50%;
  object-fit: cover;
}

.profile__name {
  margin: 20px 0 0;
  color: var(--heading);
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 700;
  line-height: 32px;
}

.profile__tagline {
  margin: 30px 0 0;
  color: #000;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 24px;
}

.socials {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin: 20px 0 24px;
}

.socials__item {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #000;
  transition: transform .15s ease, opacity .15s ease;
}
.socials__item svg { width: 20px; height: 20px; fill: #fff; }
.socials__item:hover { transform: scale(1.08); }

/* ---------- Link cards ---------- */

.links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  /* room for the hard shadow on the right */
  padding-right: 13px;
}

.link-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  max-width: 625px;
  min-height: 81px;
  padding: 10px 23px 10px 24px;
  background: var(--card-bg);
  border: 3px solid var(--ink);
  border-radius: 10px;
  box-shadow: 13px 13px 0 var(--ink);
  color: var(--ink);
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}

a.link-card:hover,
a.link-card:focus-visible {
  transform: translate(4px, 4px);
  box-shadow: 9px 9px 0 var(--ink);
}
a.link-card:active {
  transform: translate(10px, 10px);
  box-shadow: 3px 3px 0 var(--ink);
}
a.link-card:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

.link-card--inactive { cursor: default; }

.link-card__label {
  font-family: var(--serif);
  font-size: 35px;
  font-weight: 700;
  line-height: 1.5;
}

.link-card__icon { flex: none; width: 55px; height: 55px; }

.link-card__thumb {
  flex: none;
  width: 100px;
  height: 61px;
  object-fit: cover;
}

.copyright {
  margin: 0;
  padding: 50px 0 33px;
  text-align: center;
  font-size: 16px;
}

/* ---------- House rules ---------- */

.rules {
  position: relative;
  overflow: hidden;
  max-width: 1000px;
  margin: 18px auto 30px;
  padding: 36px 34px 30px;
  background: linear-gradient(145deg, #fdf7fd 0%, #f9f5ff 50%, #f3f7ff 100%);
  border: 1px solid #e9def2;
  border-radius: 28px;
  box-shadow: 0 12px 35px rgba(114, 87, 142, .08), 0 3px 10px rgba(114, 87, 142, .04);
  color: var(--rules-ink);
  font-family: var(--rules-font);
}

.rules::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 6px;
  background: linear-gradient(90deg, #f6bfd9 0%, #f8d8c8 25%, #e5c9fc 55%, #bfd9fa 80%, #c8ebde 100%);
}

.rules__head { text-align: center; padding: 12px 0 28px; }

.rules__badge {
  display: inline-block;
  margin-bottom: 17px;
  padding: 9px 19px;
  background: #f7e6f4;
  border: 1px solid #efd5e9;
  border-radius: 100px;
  color: #81577d;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  line-height: 1.4;
  text-transform: uppercase;
}

.rules__title {
  margin: 0 0 14px;
  color: #322a40;
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 900;
  letter-spacing: -.8px;
  line-height: 1.2;
}

.rules__intro {
  max-width: 610px;
  margin: 0 auto;
  color: var(--rules-muted);
  font-size: 15px;
  line-height: 1.75;
}

.rules__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.rule {
  padding: 24px 23px;
  background: rgba(255, 255, 255, .96);
  border: 1px solid #eae2ef;
  border-radius: 19px;
  box-shadow: 0 3px 12px rgba(100, 80, 120, .035);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.rule:hover {
  transform: translateY(-3px);
  border-color: #d7c7e8;
  box-shadow: 0 8px 22px rgba(110, 85, 145, .08);
}
.rule--wide { grid-column: 1 / -1; }

.rule__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 43px;
  height: 31px;
  margin-bottom: 15px;
  padding: 0 10px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .5px;
}
.rule--pink .rule__num     { background: #fce8f1; color: #ac6384; }
.rule--lavender .rule__num { background: #eee6fc; color: #8662ad; }
.rule--blue .rule__num     { background: #e5f1fe; color: #648dbd; }
.rule--mint .rule__num     { background: #e7f6ef; color: #57947a; }
.rule--peach .rule__num    { background: #fcefd9; color: #ac8755; }

.rule__title {
  margin: 0 0 9px;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.35;
}

.rule__text {
  margin: 0;
  color: var(--rules-muted);
  font-size: 14px;
  line-height: 1.7;
}

.rules__sign {
  margin: 27px 0 0;
  padding-top: 21px;
  border-top: 1px solid #e8dfea;
  color: #a2789f;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
}

/* ---------- Phones ---------- */

@media (max-width: 600px) {
  .page { padding: 64px 16px 16px; }

  .links { gap: 20px; padding-right: 8px; }

  .link-card {
    min-height: 68px;
    padding: 8px 14px 8px 16px;
    box-shadow: 8px 8px 0 var(--ink);
  }
  a.link-card:hover, a.link-card:focus-visible { transform: translate(3px, 3px); box-shadow: 5px 5px 0 var(--ink); }
  a.link-card:active { transform: translate(6px, 6px); box-shadow: 2px 2px 0 var(--ink); }

  .link-card__label { font-size: clamp(20px, 6.2vw, 28px); line-height: 1.3; }
  .link-card__icon { width: 44px; height: 44px; }
  .link-card__thumb { width: 80px; height: 49px; }

  .rules { margin: 10px auto 20px; padding: 26px 17px 24px; border-radius: 22px; }
  .rules__head { padding: 12px 0 24px; }
  .rules__badge { margin-bottom: 16px; padding: 8px 14px; font-size: 9px; letter-spacing: 1.5px; }
  .rules__title { font-size: 26px; letter-spacing: -.5px; }
  .rules__intro { font-size: 13px; line-height: 1.7; }
  .rules__grid { grid-template-columns: 1fr; gap: 11px; }
  .rule { padding: 20px 19px; border-radius: 16px; }
  .rule__num { margin-bottom: 12px; }
  .rule__title { font-size: 16px; }
  .rule__text { font-size: 13px; }
  .rule--wide { grid-column: auto; }
  .rules__sign { margin-top: 22px; padding-top: 19px; font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  .link-card, .rule, .socials__item { transition: none; }
  .rule:hover { transform: none; }
}
