/* Modern CSS Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Media defaults */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Form element font inheritance */
input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

/* Avoid text overflows */
p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

/* Remove default heading styles */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: inherit;
  font-weight: inherit;
}

/* Remove default list styles if needed */
ul {
  list-style: none;
}

/*ol {
	list-style: decimal;
	padding-left: 18px;
}*/

/* Remove default disclosure triangle */
summary {
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

/* Clean links */
a {
  color: inherit;
  text-decoration: none;
}

:root {
  --line-height: 24px;
  --light-gray: #efefef;
  --blue: #0000ff;
  --white: white;
  --black: black;
}

@media (prefers-color-scheme: dark) {
  :root {
    --white: black;
    --black: #a6a6a6;
    --light-gray: #1a1a1a;
    --blue: white;
  }
}

html {
  padding: 7px calc(var(--line-height) / 2);
}

body {
  position: relative;
  font-family: "Times New Roman", serif;
  font-size: 18px;
  line-height: var(--line-height);
  color: var(--black);
  letter-spacing: -0.01rem;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-wrap: pretty;
  background-color: var(--white);
}

.blue {
  color: var(--blue);
}

.py-1 {
  padding: var(--line-height) 0;
}

.mb-24 {
  margin-bottom: var(--line-height);
}

.mb-48 {
  margin-bottom: calc(var(--line-height) * 2);
}

.gap-24 {
  gap: var(--line-height);
}

body.hide-baseline .baseline {
  display: none;
}

.baseline {
  position: absolute;
  top: -7px;
  right: 0;
  bottom: 0;
  left: 0;
  min-height: 100dvh;
  pointer-events: none;
  z-index: 10;
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(255, 0, 0, 0.3),
    rgba(255, 0, 0, 0.3) 1px,
    transparent 1px,
    transparent var(--line-height)
  );
}

details {
  position: relative;
}

summary {
  cursor: pointer;
  position: sticky;
  top: 0;
  background-color: var(--white);
  z-index: 9;
}

a {
  color: var(--blue);
}

.description {
  padding: var(--line-height) 0 18px 0;
}

.project-gallery {
  padding-bottom: 6px;
}

@media (min-width: 1001px) {
  a:hover {
    text-decoration: underline;
  }

  summary:hover {
    color: var(--blue);
  }
}

details:not([open]) > div {
  display: none;
}

.toggle-label {
  color: var(--blue);
}

.toggle-label::before {
  content: "See more";
}

details[open] .toggle-label::before {
  content: "Close";
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.two-columns {
  display: flex;
  flex-direction: row;
  gap: calc(var(--line-height) / 2);
  align-items: flex-start;
}

.two-columns > * {
  flex: 1;
  min-width: 0;
}

img,
video {
  background-color: var(--light-gray);
}

picture,
.media-frame {
  container-type: inline-size;
}

picture img,
.media-frame video {
  width: 100%;
  height: round(up, calc(100cqw / var(--ar)), var(--line-height));
  object-fit: cover;
  display: block;
}

.mobile-screen picture img,
.mobile-screen .media-frame video {
  height: 100%;
}

.browser-container picture img,
.browser-container .media-frame video {
  height: auto;
}

.browser-header {
  border-radius: 4px 4px 0 0;
  overflow: hidden;
  pointer-events: none;
}
.browser-body {
  border-radius: 0 0 4px 4px;
  overflow: hidden;
}

.browser-frame {
  container-type: inline-size;
}

.flex-col > .browser-frame {
  width: 100%;
  flex-grow: 0;
  flex-shrink: 0;
}

.browser-container {
  --browser-padding: calc(var(--line-height) * 5);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--browser-padding);
  background-color: var(--light-gray);
  height: round(
    up,
    calc(
      (100cqw - var(--browser-padding) * 2) *
      var(--content-ratio) +
      var(--browser-padding) *
      2
    ),
    var(--line-height)
  );
}

.mobile-frame {
  container-type: inline-size;
}

.flex-col > .mobile-frame {
  width: 100%;
  flex-grow: 0;
  flex-shrink: 0;
}

.mobile-container {
  position: relative;
  background-color: var(--light-gray);
  height: round(up, 100cqw, var(--line-height));
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.mobile-device {
  height: 82%;
  width: auto;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  overflow: hidden;
  pointer-events: none;
  z-index: 2;
  background-color: transparent;
}

.mobile-screen {
  height: 72.5%;
  width: auto;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-49.8%, -50.5%);
  z-index: 1;
  overflow: hidden;
  aspect-ratio: 750 / 1624;
  border-radius: 20px;
}

@media (max-width: 1000px) {
  .two-columns {
    flex-direction: column;
    gap: var(--line-height);
  }

  .two-columns > * {
    width: 100%;
    flex-grow: 0;
    flex-shrink: 0;
  }

  .two-columns > div:empty {
    display: none;
  }

  .mobile-container {
    width: 100%;
  }

  .mobile-screen {
    border-radius: 12px;
  }

  .browser-container {
    --browser-padding: calc(var(--line-height) * 2);
  }
}
