:root {
  --srcery-palette-black: #121110;
  --srcery-palette-red: #EF2F27;
  --srcery-palette-green: #519F50;
  --srcery-palette-yellow: #FBB829;
  --srcery-palette-blue: #2C78BF;
  --srcery-palette-magenta: #E02C6D;
  --srcery-palette-cyan: #0AAEB3;
  --srcery-palette-white: #C5B088;
  --srcery-palette-bright-black: #917E6B;
  --srcery-palette-bright-red: #F75341;
  --srcery-palette-bright-green: #98BC37;
  --srcery-palette-bright-yellow: #FED06E;
  --srcery-palette-bright-blue: #68A8E4;
  --srcery-palette-bright-magenta: #FF5C8F;
  --srcery-palette-bright-cyan: #2BE4D0;
  --srcery-palette-bright-white: #FCE8C3;
  --srcery-palette-dark-green: #294229;
  --srcery-palette-dark-red: #4F2321;
  --srcery-palette-dark-blue: #1E5181;
  --srcery-palette-dim-green: #2E5C2E;
  --srcery-palette-orange: #FF5F00;
  --srcery-palette-bright-orange: #FF8700;
  --srcery-palette-teal: #008080;
  --srcery-palette-gray1: #1C1B19;
  --srcery-palette-gray2: #262522;
  --srcery-palette-gray3: #312F2C;
  --srcery-palette-gray4: #3B3935;
  --srcery-palette-gray5: #45433E;
  --srcery-palette-gray6: #504D47;
  --srcery-palette-hard-black: #0E0D0C;
}

* {
  background-color: var(--srcery-palette-black);
  color: var(--srcery-palette-bright-white);
}

html {
  scroll-snap-type: y mandatory;
  overflow-y: scroll;
  scroll-behavior: smooth;
}

html, body{
    margin: 0;
    padding: 0;
    height: 100%;
    font-size: 20px;
}

body {
    font-family: 'Jost', sans-serif;
}

/* headings, and the stack names in timelines, use the display serif */
h1, h2, .timeline h3 strong {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    /* Cormorant defaults to old-style figures, which look like "2o26" in small caps labels */
    font-variant-numeric: lining-nums;
}

h1, h2, p {
  display: block;
}

/* section headings are h2 (one h1 per page); match the h1 spacing they replaced */
h2 {
  margin: 0.67em 0;
}



ul{
    margin: 0;
    padding: 0;
    list-style-position: inside;
}

.center{
    margin: 0 auto ;
    padding: 1rem;
    max-width: max(60%, 50rem);


}

.section {
  height: 100vh;
  width: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

}

/* keeps headings and intro lines centred when they wrap */
.section > h1, .section > h2, .section > p, .section > blockquote {
    text-align: center;
}

/* equal centred columns split by hairlines, for a project's main features */
.features {
    display: flex;
    width: 100%;
    max-width: 48rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.features > div {
    flex: 1 1 0;
    padding: 0 1.25rem;
}

.features > div + div {
    border-left: 1px solid var(--srcery-palette-gray6);
}

.features h3 {
    margin: 0 0 0.4rem;
    font-size: 0.9rem;
}

.features p {
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.45;
}

.lede {
    margin-top: 0;
    color: var(--srcery-palette-bright-black);
}

/* phases down a thin line, oldest first; each section sets --timeline-dot to its underline colour */
.timeline {
    max-width: 38rem;
    border-left: 1px solid var(--srcery-palette-gray6);
    padding-left: 1.75rem;
}

.timeline > div {
    position: relative;
    padding-bottom: 0.9rem;
}

.timeline > div:last-child {
    padding-bottom: 0;
}

.timeline > div::before {
    content: "";
    position: absolute;
    left: calc(-1.75rem - 5px);
    top: 0.3rem;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--timeline-dot, var(--srcery-palette-bright-black));
}

.timeline h3 {
    margin: 0 0 0.3rem;
    font-size: 0.75rem;
    font-weight: normal;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--srcery-palette-bright-black);
}

.timeline h3 strong {
    color: var(--srcery-palette-bright-white);
    letter-spacing: 0.05em;
}

.timeline p {
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.4;
}

.v-split-div{
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.v-split-div > div{
 flex: 1;
}

.centerp {
    text-align: center;
    align-items: center;
    justify-content: center;
}

/* columns size to their content and the group is centred, so it lines up with centred content below */
.h-split-div{
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 2rem;
}

/* the cap stops a long column from squeezing a short one when they don't both fit */
.h-split-div > div {
    flex: 0 1 auto;
    max-width: 24rem;
}

/* centred rows stacked one above the other, split by a hairline */
.bands {
    width: 100%;
    max-width: 48rem;
    text-align: center;
}

.bands > div {
    padding: 1rem 0;
}

.bands > div + div {
    border-top: 1px solid var(--srcery-palette-gray6);
}

.bands h3 {
    margin: 0 0 0.5rem;
    font-size: 0.75rem;
    font-weight: normal;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--srcery-palette-bright-black);
}

.bands p {
    margin: 0;
}

/* each item stays on one line, and its separator stays with it so no line starts with a dot */
.bands span {
    white-space: nowrap;
}

.bands span:not(:last-child)::after {
    content: " · ";
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin: 1rem 0;
}

.button {
    display: inline-block;
    padding: 0.4rem 1rem;
    border: 2px solid var(--srcery-palette-bright-white);
    text-decoration: none;
}

.button:hover {
    border-color: var(--srcery-palette-bright-blue);
    color: var(--srcery-palette-bright-blue);
}

.button.disabled {
    color: var(--srcery-palette-bright-black);
    border-color: var(--srcery-palette-bright-black);
    pointer-events: none;
}

.contact, .scroll-hint, .back-link {
    font-size: 0.8rem;
    color: var(--srcery-palette-bright-black);
}

.contact a {
    color: var(--srcery-palette-bright-black);
}

.contact a:hover, .scroll-hint:hover, .back-link:hover {
    color: var(--srcery-palette-bright-white);
}

.scroll-hint, .back-link {
    text-decoration: none;
    margin-top: 2rem;
}

/* the button row already has a bottom margin */
.button-row + .scroll-hint {
    margin-top: 0.5rem;
}

.inline-list {
    display: flex;
    gap: 2rem;
}

.landing {
  h1 {
    font-size: 4rem;
    margin: 0.5rem;
    text-decoration: underline var(--srcery-palette-bright-blue);
  }
}

.engineering {
  h2 {
    font-size: 3rem;
    text-decoration: underline var(--srcery-palette-bright-green);
  }
}

.photography {
  h2 {
    font-size: 3rem;
    text-decoration: underline var(--srcery-palette-magenta);
  }
}

.hobbies {
  h2 {
    font-size: 3rem;
    text-decoration: underline var(--srcery-palette-bright-orange);
  }
}

.gallery {
  --timeline-dot: var(--srcery-palette-teal);

  h2 {
    font-size: 3rem;
    text-decoration: underline var(--srcery-palette-teal);
  }

  /*justify-content: left;*/
}

.bandform {
  --timeline-dot: var(--srcery-palette-orange);

  h2 {
    font-size: 3rem;
    text-decoration: underline var(--srcery-palette-orange);
  }
}


.crisislab {
  --timeline-dot: var(--srcery-palette-blue);

  h2 {
    font-size: 3rem;
    text-decoration: underline var(--srcery-palette-blue);
  }
}

/* phones: use the full width, stack columns, and let tall sections grow instead of clipping */
@media (max-width: 700px) {
  html {
    scroll-snap-type: y proximity;
  }

  html, body {
    font-size: 16px;
  }

  .center {
    max-width: none;
  }

  .section {
    height: auto;
    min-height: 100svh;
    box-sizing: border-box;
    padding: 2rem 0;
  }

  .h-split-div {
    flex-direction: column;
    gap: 0;
  }

  .inline-list {
    gap: 1rem;
  }

  .bands span {
    display: block;
  }

  /* stacked on phones, so the dividers run across */
  .features {
    flex-direction: column;
  }

  .features > div {
    padding: 0.75rem 0;
  }

  .features > div + div {
    border-left: none;
    border-top: 1px solid var(--srcery-palette-gray6);
  }

  .bands span:not(:last-child)::after {
    content: none;
  }

  blockquote {
    margin: 1rem 0;
  }

  .landing h1 {
    font-size: 2.5rem;
  }

  .engineering h2, .photography h2, .hobbies h2,
  .gallery h2, .bandform h2, .crisislab h2 {
    font-size: 2rem;
  }
}
