:root {
  --font: "Times New Roman", Times, serif;
  --text: #a2a2a2;
  --heading: #787878;
  --accent: #49bf9d;
  --bg: #ffffff;
  --border: #efefef;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  font-family: var(--font);
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-size: 16pt;
  line-height: 1.75;
  -webkit-text-size-adjust: none;
}

/* reset */
h1,h2,h3,h4,h5,h6,p,ul,ol,blockquote,figure {
  margin: 0;
  padding: 0;
}

ul, ol { list-style: none; }

/* links */
a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px dotted;
  transition: 0.2s;
}
a:hover {
  border-bottom-color: transparent;
}

/* typography */
h1,h2,h3,h4,h5,h6 {
  color: var(--heading);
  font-weight: 400;
  margin-bottom: 1em;
}

p { margin-bottom: 2em; }

/* =========================
   LAYOUT
========================= */

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2em;
}

/* FIXED GRID */
.row {
  display: flex;
  flex-wrap: wrap;
  margin: -1.25em; /* replaces gap behavior properly */
}

/* IMPORTANT FIX: no flex:1 here */
[class^="col-"] {
  padding: 1.25em;
  flex: 0 0 auto;
}

/* column widths */
.col-1 { width: 8.333%; }
.col-2 { width: 16.666%; }
.col-3 { width: 25%; }
.col-4 { width: 33.333%; }
.col-5 { width: 41.666%; }
.col-6 { width: 50%; }
.col-7 { width: 58.333%; }
.col-8 { width: 66.666%; }
.col-9 { width: 75%; }
.col-10 { width: 83.333%; }
.col-11 { width: 91.666%; }
.col-12 { width: 100%; }

/* =========================
   HEADER / MAIN LAYOUT
========================= */

#header {
  position: fixed;
  left: 0;
  top: 0;
  width: 35%;
  height: 100%;
  padding: 8em 4em;
  background: #141c2c;
  color: rgba(255,255,255,0.5);
  text-align: right;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

#main {
  margin-left: 35%;
  padding: 8em 4em;
  max-width: 54em;
}

/* forms */
input, select, textarea {
  width: 100%;
  padding: 0.75em;
  border: 2px solid transparent;
  background: #f7f7f7;
  border-radius: 0.35em;
  font-family: inherit;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  outline: none;
}

/* buttons */
.button,
input[type="submit"] {
  display: inline-block;
  padding: 0.8em 1.5em;
  border: 2px solid var(--border);
  border-radius: 0.35em;
  background: transparent;
  cursor: pointer;
  transition: 0.2s;
}

.button:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.button.primary {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

/* images */
.image img {
  width: 150px;     
  border-radius: 0.35em;
  display: block;
  margin-left: auto;  
}

#main .image img {
  width: 100%;       
}

/* utilities */
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 2em; }

/* responsive */
/* responsive */
@media (max-width: 980px) {
  #header {
    position: relative;
    width: 100%;
    text-align: center;
  }

  /* Centers the small profile image on mobile */
  #header .image img {
    margin: 0 auto;
  }

  #main {
    margin: 0;
    width: 100%;
  }

  .row {
    flex-direction: column;
  }

  [class^="col-"] {
    width: 100%;
  }
}

@media (max-width: 736px) {
  html { font-size: 14pt; }
}

@media (max-width: 480px) {
  html { font-size: 13pt; }
}
