/* global identifier (i need to remember the star)*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {

    --bg: #0d1117;
    --surface: #161b22;

    --text: #f3f4f6;
    --muted: #9ca3af;

    --accent: #4f8cff;

    --border: #30363d;

}

html {
    scroll-behavior: smooth;
}

body {

    background: var(--bg);

    color: var(--text);


    line-height: 1.7;

}

body,
h1,
h2,
h3 {
    font-family: "Open Sans", sans-serif;
}


/* spacing so it doesnt go offscreen */

main {

    max-width: 1100px;

    margin: 0 auto;

    padding: 80px 40px;

}

section {

    margin-bottom: 120px;

}


/* header */

header {

    max-width: 900px;

    margin: 100px auto 80px;

    padding: 0 40px;

}

header h1 {

    

    font-size: 4rem;

    font-weight: 700;

    margin-bottom: 30px;

    line-height: 1.1;

}

header p {

    font-size: 1.2rem;

    color: var(--muted);

    max-width: 720px;

}


/* title */

h2 {


    font-size: 2rem;

    margin-bottom: 35px;

}

/* architecture */


.service {

    background: var(--surface);

    border: 1px solid var(--accent);

    padding: 22px;

    width: 220px;

    transition: .2s;

    transform: translateY(-4px);

}

.service h3 {

    margin-bottom: 10px;

    font-size: 1.1rem;

}

.service p {

    color: var(--muted);

    font-size: .95rem;

}



#contact {
    margin-top: 5rem;
}

#contact p {
    color: var(--muted);
    margin-bottom: 2rem;
}

#contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

#contact-form input,
#contact-form textarea {
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1rem;
    color: var(--text);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color .2s ease;
}

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

#contact-form textarea {
    resize: vertical;
    min-height: 180px;
}

#contact-form button {
    width: fit-content;
    padding: .9rem 1.6rem;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1rem;
    font-family: inherit;
    transition: opacity .2s ease;
}

#contact-form button:hover {
    opacity: .9;
}

#contact-status {
    margin-top: 1rem;
    color: var(--muted);
}

.architecture-grid{

    display:grid;

    grid-template-columns:1fr 1fr;

    gap:32px;

    max-width:900px;

    margin:auto;

}

.architecture-grid .service{

    width:100%;

}

.browser,
.cloudfront,
.s3,
.gateway,
.cloudwatch{

    grid-column:1 / span 2;

    justify-self:center;

    width:260px;

}

.visitor,
.dynamodb{

    justify-self:start;

}

.contact,
.ses{

    justify-self:end;

}

.line.vertical{

    width:2px;

    height:28px;

    background:var(--accent);

    justify-self:center;

}

.branch{

    grid-column:1 / span 2;

    height:2px;

    width:60%;

    background:var(--accent);

    justify-self:center;

}

.visitor-line,
.contact-line{

    width:2px;

    height:28px;

    background:var(--accent);

    justify-self:center;

}

.visitor-line{

    grid-column:1;

}

.contact-line{

    grid-column:2;

}

.cloudwatch-branch{

    grid-column:1 / span 2;

    width:60%;

    height:2px;

    background:var(--accent);

    justify-self:center;

}

@media(max-width:900px){

.architecture-grid{

    grid-template-columns:1fr;

}

.browser,
.cloudfront,
.s3,
.gateway,
.cloudwatch,
.visitor,
.contact,
.dynamodb,
.ses{

    grid-column:auto;

    justify-self:stretch;

}

.branch,
.cloudwatch-branch{

    display:none;

}

}

.service{

    display:flex;

    flex-direction:column;

    justify-content:center;

    min-height:120px;

}