/*! normalize.css v8.0.0 | MIT License | github.com/necolas/normalize.css */
/* Document
	 ========================================================================== */
/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 */
html {
    line-height: 1.15; /* 1 */
    -webkit-text-size-adjust: 100%; /* 2 */
    background-color: #efeeed;
}

body {
    background-color: #efeeed;
}

/* Sections
	 ========================================================================== */
/**
 * Remove the margin in all browsers.
 */
body {
    margin: 0;
}

/**
 * Correct the font size and margin on `h1` elements within `section` and
 * `article` contexts in Chrome, Firefox, and Safari.
 */
h1 {
    font-size: 2em;
    margin: 0.67em 0;
}

/* Grouping content
	 ========================================================================== */
/**
 * 1. Add the correct box sizing in Firefox.
 * 2. Show the overflow in Edge and IE.
 */
hr {
    box-sizing: content-box; /* 1 */
    height: 0; /* 1 */
    overflow: visible; /* 2 */
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
pre {
    font-family: monospace, monospace; /* 1 */
    font-size: 1em; /* 2 */
}

/* Text-level semantics
	 ========================================================================== */
/**
 * Remove the gray background on active links in IE 10.
 */
a {
    background-color: transparent;
}

/**
 * 1. Remove the bottom border in Chrome 57-
 * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
 */
abbr[title] {
    border-bottom: none; /* 1 */
    text-decoration: underline; /* 2 */
    text-decoration: underline dotted; /* 2 */
}

/**
 * Add the correct font weight in Chrome, Edge, and Safari.
 */
b,
strong {
    font-weight: bolder;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
code,
kbd,
samp {
    font-family: monospace, monospace; /* 1 */
    font-size: 1em; /* 2 */
}

/**
 * Add the correct font size in all browsers.
 */
small {
    font-size: 80%;
}

/**
 * Prevent `sub` and `sup` elements from affecting the line height in
 * all browsers.
 */
sub,
sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
}

sub {
    bottom: -0.25em;
}

sup {
    top: -0.5em;
}

/* Embedded content
	 ========================================================================== */
/**
 * Remove the border on images inside links in IE 10.
 */
img {
    border-style: none;
}

/* Forms
	 ========================================================================== */
/**
 * 1. Change the font styles in all browsers.
 * 2. Remove the margin in Firefox and Safari.
 */
button,
input,
optgroup,
select,
textarea {
    font-family: inherit; /* 1 */
    font-size: 100%; /* 1 */
    line-height: 1.15; /* 1 */
    margin: 0; /* 2 */
}

/**
 * Show the overflow in IE.
 * 1. Show the overflow in Edge.
 */
button,
input {
    /* 1 */
    overflow: visible;
}

/**
 * Remove the inheritance of text transform in Edge, Firefox, and IE.
 * 1. Remove the inheritance of text transform in Firefox.
 */
button,
select {
    /* 1 */
    text-transform: none;
}

/**
 * Correct the inability to style clickable types in iOS and Safari.
 */
button,
[type="button"],
[type="reset"],
[type="submit"] {
    -webkit-appearance: button;
}

/**
 * Remove the inner border and padding in Firefox.
 */
button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
    border-style: none;
    padding: 0;
}

/**
 * Restore the focus styles unset by the previous rule.
 */
button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
    outline: 1px dotted ButtonText;
}

/**
 * Correct the padding in Firefox.
 */
fieldset {
    padding: 0.35em 0.75em 0.625em;
}

/**
 * 1. Correct the text wrapping in Edge and IE.
 * 2. Correct the color inheritance from `fieldset` elements in IE.
 * 3. Remove the padding so developers are not caught out when they zero out
 *		`fieldset` elements in all browsers.
 */
legend {
    box-sizing: border-box; /* 1 */
    color: inherit; /* 2 */
    display: table; /* 1 */
    max-width: 100%; /* 1 */
    padding: 0; /* 3 */
    white-space: normal; /* 1 */
}

/**
 * Add the correct vertical alignment in Chrome, Firefox, and Opera.
 */
progress {
    vertical-align: baseline;
}

/**
 * Remove the default vertical scrollbar in IE 10+.
 */
textarea {
    overflow: auto;
}

/**
 * 1. Add the correct box sizing in IE 10.
 * 2. Remove the padding in IE 10.
 */
[type="checkbox"],
[type="radio"] {
    box-sizing: border-box; /* 1 */
    padding: 0; /* 2 */
}

/**
 * Correct the cursor style of increment and decrement buttons in Chrome.
 */
[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
    height: auto;
}

/**
 * 1. Correct the odd appearance in Chrome and Safari.
 * 2. Correct the outline style in Safari.
 */
[type="search"] {
    -webkit-appearance: textfield; /* 1 */
    outline-offset: -2px; /* 2 */
}

/**
 * Remove the inner padding in Chrome and Safari on macOS.
 */
[type="search"]::-webkit-search-decoration {
    -webkit-appearance: none;
}

/**
 * 1. Correct the inability to style clickable types in iOS and Safari.
 * 2. Change font properties to `inherit` in Safari.
 */
::-webkit-file-upload-button {
    -webkit-appearance: button; /* 1 */
    font: inherit; /* 2 */
}

/* Interactive
	 ========================================================================== */
/*
 * Add the correct display in Edge, IE 10+, and Firefox.
 */
details {
    display: block;
}

/*
 * Add the correct display in all browsers.
 */
summary {
    display: list-item;
}

/* Misc
	 ========================================================================== */
/**
 * Add the correct display in IE 10+.
 */
template {
    display: none;
}

/**
 * Add the correct display in IE 10.
 */
[hidden] {
    display: none;
}

/* STYLES */

main {
    width: 700px;
    max-width: 90%;
    margin: 65px auto;
    padding: 0 20px;
    box-sizing: border-box;
    text-align: left;
}

/* Default font: Source Sans 3 */
body {
    font-family: "Source Sans 3", sans-serif;
}

p,
li {
    font-family: "Source Sans 3", sans-serif;
    font-weight: normal;
    font-style: normal;
}

/* EB Garamond for h1s (blog title, section headers, post titles) */
h1 {
    font-family: "EB Garamond", serif;
    font-weight: normal;
    font-style: normal;
}

h2,
h3,
h4 {
    font-family: "Source Sans 3", sans-serif;
    font-weight: normal;
    font-style: normal;
}

h1,
h2,
h3,
h4 {
    color: #bc1d1d;
}

hr {
    display: none;
}

.Post__List h3,
.Post__Date,
.Post__List__Tag span,
.Post__List__Date {
    font-family: "Source Sans 3", sans-serif;
    font-weight: 400;
    font-style: normal;
}

p,
li {
    font-size: 18px;
    line-height: 22px;
}

h1 {
    font-size: 80px;
    margin: 0;
    margin-bottom: 20px;
}

h2 {
    font-weight: normal;
    font-size: 25px;
    font-style: italic;
    margin: 0;
}

h3 {
    font-weight: 700;
    font-size: 18px;
}

h4 {
    text-transform: uppercase;
    font-weight: bold;
}

.Post__List {
    list-style: none;
    padding: 0;
    padding-top: 50px;
    display: block;
}

.Post__List_Title {
    font-weight: 600;
}

.Post__List li {
    padding: 10px 0;
}

.Post__List__Title {
    display: inline;
}
.Post__List__Tag {
    margin-left: 5px;
}

.Post__List__Tag span {
    background-color: gray;
    border-radius: 30px;
    padding: 2px 10px;
    font-size: 14px;
}

.Post__List__Tag .Tag--travel-log {
    background-color: #d8f2cd;
    color: #666666;
}

.Post__List__Tag .Tag--meta {
    background-color: #f2cde5;
    color: #666666;
}

.Post__List__Tag .Tag--assignment {
    background-color: #ceedfa;
    color: #666666;
}

.Post__List__Date {
    float: right;
    color: gray;
}
.Post__List-Preview {
    padding-top: 20px;
    padding-bottom: 10px;
    display: block;
    margin: 0;
}

.Post__List--Lg .Post__List-Preview {
    overflow: hidden;
}

.Post__List a {
    text-decoration: none;
    color: black;
}

.Post__List a:hover h3 {
    text-decoration: underline;
}

.Post h2 {
    font-family: "EB Garamond", serif;
    font-size: 60px;
    text-align: center;
}

.Post .Post__Summary {
    font-family: "Source Sans 3", sans-serif;
    font-size: 18px;
    text-align: center;
    opacity: 0.3;
    margin-top: 10px;
}

.Post p,
.Post li {
    font-family: "EB Garamond", serif;
    font-size: 23px;
    line-height: 33px;
    color: #1c1c1c;
}

.Post p a {
    color: black;
}

.Post img {
    width: 100%;
    height: auto;
    margin: 30px 0;
}

.Post blockquote {
    border-left: 3px solid gray;
    margin-left: 0;
    padding-left: 30px;
}

.Post__Date {
    font-size: 17px;
    padding-top: 20px;
    display: block;
    opacity: .3;
}

.Post__Backlink {
    text-decoration: none;
    padding: 5px;
    border-bottom: 1px solid #000;
    margin-top: 30px;
    display: inline-block;
    background-color: black;
    color: white;
}

.Post__Backlink:hover {
    background-color: gray;
}

.floatRight {
    float: right;
    margin-left: 20px;
    margin-left: 0;
    width: 50%;
}
.floatRight img {
    width: 100%;
    margin-bottom: 0;
}

.image-caption {
    text-align: center;
    font-size: 13px !important;
    color: gray;
    margin-top: 8px;
    margin-bottom: 20px;
}

/* Page Header */
.Page__Header {
    text-align: right;
}

.Page__Header h1 {
    color: #6c6c6c;
}
.Page__Header h2 {
    color: #666666;
    font-style: normal;
    font-weight: bold;
    font-size: 15px;
    margin: -30px 40px 0 0px;
    opacity: .5;
}

/* Section Titles */
.Section__Title {
    font-family: "EB Garamond", serif;
    font-size: 60px;
    font-weight: normal;
    font-style: normal;
    text-transform: lowercase;
    margin-top: 60px;
    margin-bottom: 5px;
    padding-bottom: 30px;
}

.Section__Subtitle {
    font-size: 16px;
    color: #666;
    margin: 0 0 20px 0;
    max-width: 70%;
    display: none;
}

/* Essays Section */
.Essays__Section {
    margin-top: 40px;
}

.Essays__Grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.Essay__Card {
    text-decoration: none;
    color: black;
    display: flex;
    align-items: center;
    gap: 30px;
}

.Essay__Card:hover .Essay__Title {
    color: #bc1d1d;
    text-decoration: underline;
}

.Essay__Thumbnail {
    width: 230px;
    min-width: 230px;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background-color: #f0f0f0;
    border-radius: 5px;
}

.Essay__Thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0%);
    mix-blend-mode: multiply;
}

.Essay__Thumbnail--Placeholder {
    width: 100%;
    height: 100%;
    background-color: #e0e0e0;
}

.Essay__Content {
    display: flex;
    flex-direction: column;
}

.Essay__Title {
    font-size: 20px;
    font-weight: normal;
    margin: 0;
    margin-bottom: 5px;
    font-family: "Source Sans 3", sans-serif;
    color: black;
}

.Essay__Summary {
    font-size: 17px;
    font-weight: normal;
    margin: 0;
    color: black;
    opacity: 0.5;
    line-height: 1.4;
}

.Essay__Year {
    font-size: 16px;
    font-weight: normal;
    margin: 5px 0 0 0;
    color: #666;
    opacity: 0.3;
    font-family: "Source Sans 3", sans-serif;
}

/* Entries Section */
.Entries__Section {
    margin-top: 40px;
}

.Entries__Year {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

.Entries__Year__Title {
    font-size: 16px;
    font-weight: bold;
    margin: 0;
    font-family: "Source Sans 3", sans-serif;
    color: #666666;
    opacity: 0.3;
}

.Entries__List {
    list-style: none;
    padding: 0;
    margin: 0;
}

.Entry__Item {
    padding: 0;
    margin-bottom: 25px;
}

.Entry__Item:last-child {
    margin-bottom: 0;
}

.Entry__Item a {
    text-decoration: none;
    color: black;
}

.Entry__Item a:hover .Entry__Title {
    color: #bc1d1d;
    text-decoration: underline;
}

.Entry__Title {
    font-weight: normal;
    font-size: 20px;
    font-family: "Source Sans 3", sans-serif;
    position: relative;
}

.Entry__Item--ImagePost .Entry__Title::before {
    content: '';
    position: absolute;
    left: -1.5em;
    top: 0.15em;
    width: 1em;
    height: 1em;
    opacity: 0.4;
    background-image: url('/public/assets/img/page-icon.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.Entry__Tag {
    margin-left: 8px;
    position: absolute;
    margin-top: -2px;
}

.Entry__Tag span {
    font-family: "Source Sans 3", sans-serif;
    border: 1px solid gray;
    border-radius: 5px;
    padding: 1px 8px;
    font-size: 12px;
    color: #666666;
}

.Entry__Tag .Tag--travel-log {
    color: #666666;
}

.Entry__Tag .Tag--meta {
    color: #666666;
}

.Entry__Tag .Tag--assignment {
    color: #666666;
}

.Entry__Summary {
    font-family: "Source Serif Pro", serif;
    font-style: italic;
    margin: 0;
    font-size: 21px;
    color: #666;
    line-height: 1.5;
}

.Blog__DividerLine {
    width: 100%;
    height: auto;
    padding-top: 100px;
}

/* Post Footer Transition */
.Post__Transition {
    height: 100vh;
    background: linear-gradient(to bottom, #efeeed 0%, #d4927a 40%, #6b2d5c 70%, #212731 100%);
    margin-top: 60px;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    position: relative;
}

.Post__Transition__Blur {
    position: absolute;
    top: 50px;
    left: 0;
    width: 100%;
    height: calc(100vh - 100px);
    background: linear-gradient(to bottom, #efeeed 0%, #d4927a 40%, #6b2d5c 70%, #212731 100%);
    filter: blur(30px);
}

.Post__Footer {
    background-color: #212731;
    padding-bottom: 60px;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    padding-left: calc(50vw - 50%);
    padding-right: calc(50vw - 50%);
    box-sizing: border-box;
    padding-top: 100px;
}

.Post__Footer .Essays__Section {
    margin-top: 0;
}

.Post__Footer .Essays__Section .Section__Title {
    margin-top: 0;
}

.Post__Footer .Section__Title {
    color: white;
}

.Post__Footer .Essay__Year {
    opacity: 1;
}

.Post__Footer .Entries__Year__Title {
    opacity: 1;
}

.Post__Footer .Essay__Title {
    color: white;
}

.Post__Footer .Entry__Title {
    color: white;
}

.Post__Footer .Essay__Summary {
    color: white;
    opacity: 0.5;
}

.Post__Footer .Entry__Summary {
    color: white;
    opacity: 0.5;
}

.Post__Footer .Essay__Card:hover .Essay__Title {
    color: white;
    text-decoration: underline;
}

.Post__Footer .Entry__Item a:hover .Entry__Title {
    color: white;
    text-decoration: underline;
}

.Post__Footer .Entry__Item--ImagePost .Entry__Title::before {
    filter: brightness(0) invert(1);
    opacity: 0.3;
}

/* Comments Accordion */
.Comments__Section {
    margin-top: 50px;
}

.Comments__Toggle {
    font-family: "Source Sans 3", sans-serif;
    font-size: 20px;
    font-weight: normal;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    color: black;
}

.Comments__Toggle:hover {
    opacity: 0.7;
}

.Comments__Arrow {
    display: inline-block;
    width: 0;
    height: 0;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 6px solid black;
    transition: transform 0.2s ease;
}

.Comments__Section.is-open .Comments__Arrow {
    transform: rotate(90deg);
}

.Comments__Content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.Comments__Section.is-open .Comments__Content {
    max-height: 2000px;
}

/* Image Post Styles */
.Post--ImagePost img {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s ease;
}

.Post--ImagePost img:nth-child(1),
.Post--ImagePost p img:nth-child(1) {
    transform: rotate(-0.8deg);
}

.Post--ImagePost img:nth-child(2),
.Post--ImagePost p img:nth-child(2) {
    transform: rotate(1deg);
}

.Post--ImagePost img:nth-child(3),
.Post--ImagePost p img:nth-child(3) {
    transform: rotate(-0.5deg);
}

.Post--ImagePost img:nth-child(4),
.Post--ImagePost p img:nth-child(4) {
    transform: rotate(0.7deg);
}

.Post--ImagePost img:nth-child(5),
.Post--ImagePost p img:nth-child(5) {
    transform: rotate(-1deg);
}

.Post--ImagePost img:hover {
    transform: rotate(0deg) scale(1.02);
}
