@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400..700;1,400..700&display=swap');

/* Modular scale */
:root {
  --ratio: 1.5;
  --s-5: calc(var(--s-4) / var(--ratio));
  --s-4: calc(var(--s-3) / var(--ratio));
  --s-3: calc(var(--s-2) / var(--ratio));
  --s-2: calc(var(--s-1) / var(--ratio));
  --s-1: calc(var(--s0) / var(--ratio));
  --s0: 1rem;
  --s1: calc(var(--s0) * var(--ratio));
  --s2: calc(var(--s1) * var(--ratio));
  --s3: calc(var(--s2) * var(--ratio));
  --s4: calc(var(--s3) * var(--ratio));
  --s5: calc(var(--s4) * var(--ratio));
}

/* Typography */
html {
  font-family: "Libre Baskerville", serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  -webkit-font-smoothing: antialiased; /* Makes text slightly thinner/cleaner on Mac */
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  font-style: bold;
}

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

/* Prevent font size inflation */
html {
  -moz-text-size-adjust: none;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
}

/* Remove default margin in favour of better control in authored CSS */
body, h1, h2, h3, h4, p,
figure, blockquote, dl, dd {
  margin-block-end: 0;
}

/* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */
ul[role='list'],
ol[role='list'] {
  list-style: none;
}

/* Set core body defaults */
body {
  min-height: 100vh;
  line-height: 1.5;
}

/* Set shorter line heights on headings and interactive elements */
h1, h2, h3, h4,
button, input, label {
  line-height: 1.1;
}

/* Balance text wrapping on headings */
h1, h2,
h3, h4 {
  text-wrap: balance;
}

/* A elements that don't have a class get default styles */
a:not([class]) {
  text-decoration-skip-ink: auto;
  color: currentColor;
}

/* Make images easier to work with */
img,
picture {
  max-width: 100%;
  display: block;
}

/* Inherit fonts for inputs and buttons */
input, button,
textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* Make sure textareas without a rows attribute are not tiny */
textarea:not([rows]) {
  min-height: 10em;
}

/* Anything that has been anchored to should have extra scroll margin */
:target {
  scroll-margin-block: 5ex;
}

/* Stack */
.stack {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.stack > * {
  margin-block: 0;
} 

.stack > * + * {
  margin-block-start: var(--s0, 1rem);
}

.stack.stack-large > * + * {
  margin-block-start: var(--s2, 1.5rem);
}

.stack.stack-small > * + * {
  margin-block-start: var(--s-1, 0.5rem);
}

/* Cluster */
.cluster {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s0, 1rem);
  justify-content: flex-start;
  align-items: center;
}

.cluster.prevent-wrap {
  flex-wrap: nowrap;
}

/* Utilities */
.container {
  margin: 0 auto;
  max-width: 65ch;
}

.cluster.industry-box > * {
  flex: 1; /* Shorthand for flex-grow: 1, flex-shrink: 1, flex-basis: 0 */
  flex-basis: 0; /* This ensures they start from 0 and grow equally */
}

.cluster.industry-box > * {
  font-weight: bold;
}

.content {
  padding: var(--s1, 1.5rem) var(--s1, 1.5rem);
}

.bg-color {
  background: #fffef7;
}

.font-color {
  color: #2b2b2b;
}

.border-bottom {
  border-bottom: 1px solid lightgray;
}

header, footer {
  color: #fffef7;
  background-color: #2b2b2b;
}

/* Art */
.icon-box {
  width: 74px;
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px; /* Optional: softened corners for the container */
  position: relative;
}

/* Software Engineering Icon */
.icon-square {
  width: 40px;
  height: 40px;
  background: #007bff; /* Engineering Blue */
}

/* Filmmaking Icon */
.icon-cone {
  width: 0;
  height: 0;
  /* 24px left + 24px right = 48px wide base */
  border-left: 24px solid transparent;
  border-right: 24px solid transparent;
  border-bottom: 48px solid #ff4757; /* Cinematic Red */
  /* Optically centering the triangle */
  margin-bottom: 8px; 
}

/* Hybrid Pyramid Icon */
.icon-pyramid {
  width: 0;
  height: 0;
  border-left: 24px solid transparent;
  border-right: 24px solid transparent;
  border-bottom: 48px solid #2f3542; /* Dark Slate for the merge */
  position: relative;
}

.icon-pyramid::after {
  content: '';
  position: absolute;
  top: 0;
  left: -24px;
  width: 0;
  height: 0;
  border-left: 24px solid transparent;
  border-bottom: 48px solid rgba(255, 255, 255, 0.2);
}