/* ——————————————————————————————————————
   Humberto Corona — Personal Website
   Design inspired by Sam by Victoria Drake
   https://github.com/victoriadrake/hugo-theme-sam
   Sam is licensed under the MIT License.
   —————————————————————————————————————— */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #f0ebe1;
  --text: #2a2a2a;
  --text-subdued: rgba(42, 42, 42, 0.6);
  --links: rgba(42, 42, 42, 0.7);
  --links-hover: #2a2a2a;
  --border: rgba(42, 42, 42, 0.25);
  --font: "Didact Gothic", sans-serif;
}

html {
  background-color: var(--bg);
  font-family: var(--font);
  font-size: 16px;
}

body {
  font-size: 16px;
  font-family: var(--font);
  color: var(--text);
  line-height: 2rem;
  letter-spacing: 1.5px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  min-height: 100vh;
  opacity: 1;
}

/* Typography */

h1,
h2,
h3 {
  margin-bottom: 0.5em;
  font-family: var(--font);
  opacity: 0.6;
}

li {
  opacity: 0.8;
}

li a {
  opacity: 0.9;
}

ul {
  list-style-type: none;
}

p {
  display: inline;
}

a {
  color: var(--links);
  text-decoration: none;
  border-bottom: 2px solid var(--links);
  transition: 0.5s ease;
}

a:hover {
  color: var(--links-hover);
  border-bottom-color: var(--links-hover);
}

a:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

hr {
  margin: 1rem 0;
  background-color: transparent;
  width: 50%;
  border-style: solid;
  border-width: 1px;
  border-color: var(--border);
  opacity: 0.3;
}

/* Layout */

.wrap {
  margin: 0 auto;
  width: 45%;
  max-width: 64em;
}

@media screen and (max-width: 736px) {
  .wrap {
    width: 90%;
  }
}

/* Site Header — persistent across all pages */

.site-header {
  width: 45%;
  max-width: 64em;
  margin: 0 auto;
  padding: 3em 0 2em 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.5em;
}

.site-header .site-name {
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.site-header .site-name a {
  color: var(--text);
  border-bottom: none;
  opacity: 0.8;
}

.site-header .site-name a:hover {
  opacity: 1;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  list-style: none;
}

.site-nav a {
  font-size: 0.85rem;
  color: var(--links);
  border-bottom: none;
  letter-spacing: 1px;
  white-space: nowrap;
}

.site-nav a:hover {
  color: var(--links-hover);
}

.site-nav a[aria-current="page"] {
  color: var(--text);
  font-weight: 700;
  border-bottom: 2px solid var(--text);
}

@media screen and (max-width: 736px) {
  .site-header {
    width: 90%;
    padding: 2em 0 1.5em 0;
  }
}

/* Splash / Homepage */

#splash {
  min-height: calc(100vh - 6em);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.big-link {
  font-family: var(--font);
  font-size: 3rem;
  font-weight: 300;
  margin-bottom: 2rem;
  line-height: 1.5em;
}

.big-link a {
  border-bottom: none;
  color: var(--text);
  opacity: 0.7;
  transition: 0.5s ease;
}

.big-link a:hover {
  opacity: 1;
}

.splash-intro {
  margin-bottom: 3rem;
  max-width: 540px;
}

.splash-intro p {
  display: block;
  margin-bottom: 1em;
  line-height: 1.8;
  letter-spacing: 1.5px;
  opacity: 0.7;
  font-size: 0.95rem;
}

.splash-section-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  opacity: 0.4;
  margin-bottom: 1rem;
  margin-top: 2rem;
}

/* Article / Content Pages */

#title {
  margin-top: 3rem;
  font-family: var(--font);
  font-size: 2rem;
  line-height: 3rem;
  margin-bottom: 2rem;
}

article {
  width: 100%;
  line-height: 2em;
  letter-spacing: 2px;
}

article p {
  display: block;
  margin-bottom: 1em;
  line-height: 1.7;
  letter-spacing: 1.5px;
}

article h1,
article h2,
article h3 {
  margin: 1em 0em;
  text-align: left;
}

article h2 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  opacity: 0.5;
  margin-top: 2.5em;
}

article img {
  width: 100%;
  max-width: 100%;
  display: block;
  margin: 2rem auto;
  opacity: 1;
}

/* Link lists for content pages */

.content-list {
  list-style: none;
  margin-top: 0.5em;
}

.content-list li {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
  opacity: 1;
}

.content-list li:first-child {
  border-top: 1px solid var(--border);
}

.content-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: none;
  color: var(--text);
  opacity: 0.8;
  font-size: 0.95rem;
}

.content-list a:hover {
  opacity: 1;
}

.content-list .arrow {
  opacity: 0.4;
  flex-shrink: 0;
  margin-left: 1rem;
}

/* Publication list */

.pub-list {
  list-style: none;
  margin-top: 0.5em;
}

.pub-list li {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
  opacity: 1;
}

.pub-list li:last-child {
  border-bottom: none;
}

.pub-title {
  font-size: 0.95rem;
  font-weight: 400;
  margin-bottom: 0.25rem;
}

.pub-title a {
  border-bottom: 1px solid var(--border);
}

.pub-title a:hover {
  border-bottom-color: var(--text);
}

.pub-meta {
  font-size: 0.8rem;
  opacity: 0.5;
  line-height: 1.5;
}

/* Hack / project items */

.hack-item {
  margin-bottom: 1.5rem;
}

.hack-title {
  font-size: 0.95rem;
  font-weight: 400;
}

.hack-meta {
  font-size: 0.8rem;
  opacity: 0.5;
}

.hack-meta a {
  border-bottom: 1px solid var(--border);
  color: var(--links);
  font-size: 0.8rem;
}

.hack-meta a:hover {
  color: var(--links-hover);
  border-bottom-color: var(--text);
}

/* Artist list */

.artist-list {
  list-style: none;
  margin-top: 0.5em;
}

.artist-list li {
  padding: 0.4rem 0;
  font-size: 0.95rem;
  opacity: 0.8;
}

/* Image gallery — masonry layout */

.gallery {
  margin: 2em auto;
  column-count: 2;
  column-gap: 16px;
}

@media screen and (max-width: 736px) {
  .gallery {
    column-count: 1;
  }
}

.gallery > div {
  break-inside: avoid;
  margin-bottom: 16px;
}

.gallery > div > img,
.gallery > div > a > img {
  width: 100%;
  height: auto;
  display: block;
  opacity: 1;
}

.gallery > div > a {
  border-bottom: none;
}

/* Bottom menu navigation */

.bottom-menu {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin-top: 2rem;
}

.bottom-menu p {
  display: block;
}

.bottom-menu a {
  border-bottom: none;
  color: var(--links);
  font-size: 0.9rem;
}

.bottom-menu a:hover {
  color: var(--links-hover);
}

/* Footer */

.footer {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  background-color: transparent;
  position: relative;
  bottom: 0;
  padding: 2rem 1rem;
  font-family: var(--font);
  font-size: 0.85rem;
  line-height: 1em;
  opacity: 0.5;
}

.footer a {
  border-bottom: none;
  display: contents;
}

/* Back link */

.back-link {
  display: inline-block;
  font-size: 0.85rem;
  opacity: 0.5;
  border-bottom: none;
  margin-bottom: 1rem;
}

.back-link:hover {
  opacity: 0.8;
}
