/* ==========================================================================
   cmarkey.com — Camille Markey
   Change the accent colour here; everything else follows.
   ========================================================================== */

:root {
  --accent: #E8674A;

  --ink: #1D2B4F;
  --ink-dark: #0E1830;
  --ink-soft: #33416A;
  --ink-muted: #4B5877;
  --ink-faint: #C3CCE0;

  --sky: #DCE8F5;
  --sky-light: #EEF4FB;
  --sky-deep: #C9D8EA;
  --white: #FFFFFF;
  --sun: #FFCB47;
  --sun-light: #FFF1C7;
  --peach: #FDE4DA;
  --mint: #E3F0E6;

  --font: 'Bricolage Grotesque', 'Avenir Next', sans-serif;
  --hand: 'Caveat', cursive;

  --gutter: 80px;
  --section-y: 100px;
}

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

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--sky);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ink); }
a:hover { color: var(--ink-dark); }

h1, h2, h3, p, ul { margin: 0; }

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

.page {
  max-width: 1440px;
  min-height: 100vh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.hand {
  font-family: var(--hand);
  font-weight: 700;
}

/* ---------- Buttons & pills ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.btn--dark { background: var(--ink); color: var(--white); padding: 0 26px; font-size: 16px; }
.btn--dark:hover { background: var(--ink-dark); color: var(--white); }
.btn--accent { background: var(--accent); padding: 0 24px; font-weight: 700; }
.btn--outline { border: 2px solid var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--white); }

.pill {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--white);
  font-size: 14px;
  font-weight: 700;
}
.pill--sun { background: var(--sun); }

/* ---------- Header ---------- */

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 32px var(--gutter);
}

.logo {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-decoration: none;
}
.logo span { color: var(--accent); }

.nav {
  display: flex;
  gap: 4px;
  padding: 6px;
  background: var(--white);
  border-radius: 999px;
  font-size: 16px;
  font-weight: 500;
}
.nav a {
  display: flex;
  align-items: center;
  height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
}
.nav a:hover { background: var(--sky-light); }

/* ---------- Hero ---------- */

.hero {
  display: grid;
  grid-template-columns: 7fr 5fr;
  column-gap: 24px;
  align-items: center;
  padding: 64px var(--gutter) 120px;
}

.hero__text {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.hero__hi {
  font-size: 52px;
  line-height: 1;
  color: var(--accent);
  transform: rotate(-3deg);
  transform-origin: left;
}

.hero h1 {
  font-size: clamp(64px, 10.8vw, 156px);
  font-weight: 800;
  line-height: 0.88;
  letter-spacing: -0.05em;
}

.hero__intro {
  max-width: 620px;
  font-size: 22px;
  line-height: 1.5;
  color: var(--ink-soft);
  text-wrap: pretty;
}

.hero__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero__visual {
  position: relative;
  height: 600px;
}

.polaroid {
  position: absolute;
  left: 40px;
  top: 20px;
  width: 400px;
  max-width: calc(100% - 40px);
  margin: 0;
  padding: 20px 20px 76px;
  background: var(--white);
  border-radius: 6px;
  box-shadow: 0 24px 48px rgba(29, 43, 79, 0.18);
  transform: rotate(3deg);
}
.polaroid img {
  width: 100%;
  aspect-ratio: 360 / 440;
  object-fit: cover;
  background: var(--sky-deep);
}
.polaroid__caption {
  position: absolute;
  right: 24px;
  bottom: 18px;
  font-size: 34px;
}

.sticker {
  position: absolute;
  left: 0;
  top: 380px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: var(--sun);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  transform: rotate(-12deg);
  box-shadow: 0 10px 24px rgba(29, 43, 79, 0.16);
}
.sticker strong { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; }
.sticker .hand { font-size: 22px; }

/* ---------- Sections ---------- */

.section {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding: var(--section-y) var(--gutter);
}
.section--white { background: var(--white); }

.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 20px;
  row-gap: 4px;
}
.section__head h2 {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}
.section__head .hand {
  font-size: 34px;
  color: var(--accent);
}

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

/* ---------- Experience ---------- */

.job {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 36px;
  background: var(--sky-light);
  border-radius: 28px;
}
.job__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.job__now {
  font-size: 30px;
  color: var(--accent);
  transform: rotate(-4deg);
}
.job h3 {
  margin-top: 4px;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.job__where {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink-soft);
}
.job p {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-soft);
  text-wrap: pretty;
}
.job p a { font-weight: 600; }

.dots {
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink-soft);
}
.dots li {
  display: flex;
  gap: 12px;
}
.dots li::before {
  content: "";
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  margin-top: calc((1.5em - 10px) / 2);
  border-radius: 50%;
  background: var(--accent);
}

/* ---------- Education (boarding passes) ---------- */

.ticket {
  display: flex;
  background: var(--white);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(29, 43, 79, 0.08);
}
.ticket__stub {
  width: 180px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 28px;
  background: var(--peach);
  border-right: 3px dashed var(--sky);
}
.ticket__stub--sun { background: var(--sun-light); }
.ticket__stub--sky { background: var(--sky); border-right-color: var(--white); }
.ticket__stub--mint { background: var(--mint); }

.ticket__code {
  font-size: 60px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}
.ticket__code--double { font-size: 38px; line-height: 1.05; }
.ticket__city { font-size: 26px; line-height: 1.1; }

.ticket__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 28px 32px;
}
.ticket__date {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.ticket h3 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.ticket p {
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-soft);
}

/* ---------- Skills & interests ---------- */

.duo { padding: 0 var(--gutter) var(--section-y); }

.card {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 48px;
  background: var(--white);
  border-radius: 32px;
}
.card h2 {
  font-size: clamp(36px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.tag {
  display: inline-flex;
  align-items: center;
  height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 18px;
  font-weight: 700;
}
.tag--sun { background: var(--sun); }
.tag--peach { background: var(--peach); }
.tag--sky { background: var(--sky); }
.tag--mint { background: var(--mint); }
.tag--outline { border: 2px solid var(--ink); font-weight: 600; }
.tilt-l { transform: rotate(-2deg); }
.tilt-l-sm { transform: rotate(-1.5deg); }
.tilt-r { transform: rotate(2deg); }

.loves {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.love {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  background: var(--sky-light);
  border-radius: 20px;
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
}
.love svg { width: 36px; height: 36px; }
a.love { background: var(--peach); }
a.love:hover { background: #FBD3C3; }

/* ---------- Footer ---------- */

.footer {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 48px;
  padding: 96px var(--gutter) 48px;
  background: var(--ink);
  color: var(--white);
  border-radius: 48px 48px 0 0;
}
.footer__hi {
  display: block;
  font-size: 56px;
  color: var(--sun);
  transform: rotate(-2deg);
  transform-origin: left;
}
.footer__mail {
  display: inline-block;
  margin-top: 16px;
  font-size: clamp(34px, 7.2vw, 104px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1;
  color: var(--white);
  text-decoration: none;
  overflow-wrap: anywhere;
}
.footer__mail:hover { color: var(--sun); }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 15px;
  color: var(--ink-faint);
}
.footer__bottom nav { display: flex; gap: 24px; }
.footer__bottom a { color: var(--white); }
.footer__bottom a:hover { color: var(--sun); }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1180px) {
  :root { --gutter: 48px; --section-y: 80px; }

  .grid-2--tickets { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 1000px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 56px;
    padding-top: 32px;
    padding-bottom: 80px;
  }
  .hero__visual {
    height: auto;
    display: flex;
    justify-content: center;
    padding: 0 0 40px;
  }
  .polaroid {
    position: relative;
    left: auto;
    top: auto;
    width: min(400px, 88%);
    max-width: none;
  }
  .sticker {
    top: auto;
    bottom: 0;
    left: max(0px, calc(50% - 250px));
  }

  .grid-2--jobs,
  .duo { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 760px) {
  :root { --gutter: 20px; --section-y: 64px; }

  .header {
    flex-wrap: wrap;
    padding-top: 20px;
    padding-bottom: 20px;
  }
  .header .btn--dark { height: 44px; padding: 0 20px; font-size: 15px; }
  .nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { flex: 1 0 auto; justify-content: center; padding: 0 14px; }

  .hero__hi { font-size: 40px; }
  .hero h1 { font-size: clamp(56px, 18vw, 96px); }
  .hero__intro { font-size: 19px; }
  .hero__links .btn { height: 48px; font-size: 16px; }

  .polaroid { padding: 14px 14px 60px; }
  .polaroid__caption { right: 18px; bottom: 12px; font-size: 28px; }
  .sticker { width: 116px; height: 116px; left: 0; }
  .sticker strong { font-size: 20px; }
  .sticker .hand { font-size: 18px; }

  .section { gap: 28px; }
  .section__head .hand { font-size: 28px; }

  .job { padding: 26px 22px; border-radius: 22px; }
  .job h3 { font-size: 28px; }
  .job__now { font-size: 26px; }
  .job p, .dots, .job__where { font-size: 16px; }

  .ticket__stub { width: 108px; padding: 20px 16px; }
  .ticket__code { font-size: 36px; }
  .ticket__code--double { font-size: 26px; }
  .ticket__city { font-size: 20px; }
  .ticket__body { padding: 20px; }
  .ticket h3 { font-size: 21px; }
  .ticket p { font-size: 15px; }

  .card { padding: 28px 22px; border-radius: 24px; gap: 22px; }
  .tag { height: 42px; padding: 0 18px; font-size: 16px; }
  .loves { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .love { font-size: 16px; padding: 16px; }

  .footer { padding-top: 64px; padding-bottom: 32px; border-radius: 32px 32px 0 0; }
  .footer__hi { font-size: 40px; }
}

@media (max-width: 380px) {
  .header .btn--dark { display: none; }
  .ticket { flex-direction: column; }
  .ticket__stub {
    width: auto;
    flex-direction: row;
    align-items: baseline;
    gap: 10px;
    border-right: 0;
    border-bottom: 3px dashed var(--sky);
  }
  .ticket__stub--sky { border-bottom-color: var(--white); }
  .ticket__code--double br { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
