/* the bright yellow thing in the sky */

/* ---- tokens: swap fonts and colours here ---- */

/* fonts are the visitor's own helvetica (arial/roboto elsewhere): no font files */

:root {
  --sand: #F4EEE3;
  --sand-tint: #EAE2D4; /* photo placeholder while loading */
  --ink: #2B2A27;
  --muted: #6E675D;     /* 4.84:1 on sand */
  --sun: #E8B931;       /* never used for text */

  --font-text: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mark: var(--font-text);

  --step-small: 0.9375rem;
  --step-text: 0.9375rem;
  --step-line: 0.9375rem;
  --step-mark: clamp(1.375rem, 6.5vw, 1.625rem);

  --gutter: 1.25rem;
  --header-h: 9rem;
}

/* ---- base ---- */

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

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--sand);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: var(--step-text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

h1,
p {
  margin: 0;
  font-size: inherit;
  font-weight: 400;
}

/* ---- links ---- */

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
}

a:hover {
  text-decoration-color: var(--sun);
  text-decoration-thickness: 2px;
}

a:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---- header ---- */

.site-header {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 1.25rem var(--gutter) 0.5rem;
  text-align: center;
}

.wordmark {
  font-family: var(--font-mark);
  font-weight: 400;
  font-size: var(--step-mark);
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.wordmark:hover {
  text-decoration: none;
}

.wordmark-line {
  display: block;
}

.wordmark-end {
  white-space: nowrap;
}

.sun {
  display: inline-block;
  width: 0.6em;
  height: 0.6em;
  margin-left: 0.16em;
  vertical-align: baseline;
  fill: var(--sun);
}

.site-nav {
  display: flex;
  gap: 0.5rem;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.75rem;
  font-size: var(--step-small);
  text-decoration: none;
}

.site-nav a:hover {
  text-decoration: underline;
  text-decoration-color: currentColor;
  text-decoration-thickness: 1px;
}

.site-nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--ink);
  text-decoration-thickness: 1px;
}

/* instagram: right corner of the nav row on phones, of the header on desktop */
.ig {
  position: absolute;
  right: 0.5rem;
  bottom: 0.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
}

.ig svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

.ig .ig-dot {
  fill: currentColor;
  stroke: none;
}

.ig:hover svg {
  stroke: var(--ink);
  stroke-width: 2;
}

/* ---- home: header + large photo fill the first screen, small photo below ---- */

.home {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* --header-h is a little more than the real header, so the first screen
   always ends with the lines in view */
.hero {
  width: 100%;
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
  display: flex;
  flex-direction: column;
}

.frame.frame-small {
  max-width: 20rem;
  margin: 0 var(--gutter) 4rem;
  width: calc(100% - 2 * var(--gutter));
}

.hero-photo {
  position: relative;
  flex: 1;
  min-height: 20rem;
  margin: 0;
  background: var(--sand-tint);
}

.hero-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 42% 82%;
}

.hero-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem var(--gutter);
  text-align: center;
}

/* ---- pages: one framed photo, then the lines ---- */

.page {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.5rem var(--gutter) 3rem;
  text-align: center;
}

.frame {
  width: 100%;
  max-width: 26rem;
  margin: 0 0 1.25rem;
  aspect-ratio: 4 / 5;
  background: var(--sand-tint);
}

.frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.frame-low img {
  object-position: 50% 80%;
}

/* every line under a photo: same font, same size */
.line {
  max-width: 28rem;
  font-family: var(--font-text);
  font-size: var(--step-line);
  line-height: 1.5;
  text-wrap: balance;
}

.page-404 {
  justify-content: center;
}

/* ---- tablet and up: one-row header ---- */

@media (min-width: 768px) {
  :root {
    --gutter: 2.5rem;
    --header-h: 5.5rem;
    --step-mark: 1.375rem;
  }

  .site-header {
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    padding-top: 1.25rem;
    padding-bottom: 1rem;
    text-align: left;
  }

  .wordmark-line {
    display: inline;
  }

  .site-nav {
    margin-left: auto;
  }

  .ig {
    position: static;
    margin-right: -0.75rem;
  }

  .page {
    padding-top: 2.5rem;
  }
}
